public class PrimaryKeyFactory
extends java.lang.Object
PrimaryKeys. Builds the universal primary key as a
super-set of all created primary key.| Constructor and Description |
|---|
PrimaryKeyFactory(ExecutionContext executionContext)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
PrimaryKey |
createPrimaryKey(java.util.List<Column> columns,
java.lang.String tableName)
Constructs a new primary-key.
|
static void |
createUPKScope(java.lang.String extractionModelFile,
ExecutionContext executionContext) |
PrimaryKey |
getUniversalPrimaryKey(Session session)
Gets the primary-key to be used for the entity-table and closes the
factory.
|
public PrimaryKeyFactory(ExecutionContext executionContext)
executionContext - ExecutionContext (optional)public PrimaryKey createPrimaryKey(java.util.List<Column> columns, java.lang.String tableName)
java.lang.IllegalStateException - if factory is closedpublic PrimaryKey getUniversalPrimaryKey(Session session)
session - for guessing null-values of columnspublic static void createUPKScope(java.lang.String extractionModelFile,
ExecutionContext executionContext)
throws java.net.MalformedURLException,
java.io.IOException
java.net.MalformedURLExceptionjava.io.IOException