public class RowIdSupport
extends java.lang.Object
Constructor and Description |
---|
RowIdSupport(DataModel dataModel,
DBMS configuration,
boolean useRowIds,
boolean useRowIdsOnlyForTablesWithoutPK)
Constructor.
|
RowIdSupport(DataModel dataModel,
DBMS configuration,
ExecutionContext executionContext)
Constructor.
|
RowIdSupport(DataModel dataModel,
DBMS configuration,
java.lang.String rowIdType,
boolean useRowIds,
boolean useRowIdsOnlyForTablesWithoutPK)
Constructor.
|
RowIdSupport(DataModel dataModel,
DBMS configuration,
java.lang.String rowIdType,
ExecutionContext executionContext)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Column> |
getColumns(Table table,
Session session)
Gets the columns with additional rowid-column of a table
|
java.util.List<Column> |
getColumns(Table table,
Session session,
boolean exact)
Gets the columns with additional rowid-column of a table
|
PrimaryKey |
getPrimaryKey(Table table)
Gets the primary key of a table.
|
PrimaryKey |
getPrimaryKey(Table table,
Session session)
Gets the primary key of a table.
|
PrimaryKey |
getPrimaryKey(Table table,
Session session,
boolean exact)
Gets the primary key of a table.
|
PrimaryKey |
getUniversalPrimaryKey()
Gets the universal primary key.
|
PrimaryKey |
getUniversalPrimaryKey(Session session)
Gets the universal primary key.
|
boolean |
isRowIdColumn(Column column) |
void |
setUseRowIdsOnlyForTablesWithoutPK(boolean useRowIdsOnlyForTablesWithoutPK) |
public RowIdSupport(DataModel dataModel, DBMS configuration, java.lang.String rowIdType, boolean useRowIds, boolean useRowIdsOnlyForTablesWithoutPK)
dataModel
- the data modelconfiguration
- DBMS configurationrowIdType
- type of rowid-columnsuseRowIds
- true
iff rowid column is used instead of primary keyspublic RowIdSupport(DataModel dataModel, DBMS configuration, boolean useRowIds, boolean useRowIdsOnlyForTablesWithoutPK)
dataModel
- the data modelconfiguration
- DBMS configurationuseRowIds
- true
iff rowid column is used instead of primary keyspublic RowIdSupport(DataModel dataModel, DBMS configuration, java.lang.String rowIdType, ExecutionContext executionContext)
dataModel
- the data modelrowIdType
- type of rowid-columnsconfiguration
- DBMS configurationpublic RowIdSupport(DataModel dataModel, DBMS configuration, ExecutionContext executionContext)
dataModel
- the data modelconfiguration
- DBMS configurationpublic PrimaryKey getPrimaryKey(Table table, Session session, boolean exact)
table
- the tableexact
- public PrimaryKey getPrimaryKey(Table table, Session session)
table
- the tablepublic PrimaryKey getPrimaryKey(Table table)
table
- the tablepublic PrimaryKey getUniversalPrimaryKey(Session session)
session
- for null value guessingpublic PrimaryKey getUniversalPrimaryKey()
public void setUseRowIdsOnlyForTablesWithoutPK(boolean useRowIdsOnlyForTablesWithoutPK)
useRowIdsOnlyForTablesWithoutPK
- the useRowIdsOnlyForTablesWithoutPK to setpublic java.util.List<Column> getColumns(Table table, Session session)
table
- the tablepublic java.util.List<Column> getColumns(Table table, Session session, boolean exact)
table
- the tableexact
- public boolean isRowIdColumn(Column column)