Class SqlJetTableDef
java.lang.Object
org.tmatesoft.sqljet.core.internal.schema.SqlJetTableDef
- All Implemented Interfaces:
ISqlJetTableDef
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns column definition with a given name or null if there is no such definition.getColumnIndexConstraint(String indexName) intgetColumnNumber(String name) Returns position of the specified column within the table definition.Definitions of table columns.Returns all table constraints.getName()Returns table name.intgetPage()Returns name of the primary key index.longgetRowId()intgetTableIndexConstraint(String indexName) booleanReturns true if primary key has 'autoincrement' keyword.booleanbooleanReturns true if primary key definition allows rowid to be used as primary key column.booleanTrue if table was created temporarily.voidsetPage(int page) voidsetRowId(long rowId) toSQL()toSQL(boolean schemaStrict) toString()
-
Constructor Details
-
SqlJetTableDef
- Throws:
SqlJetException
-
-
Method Details
-
getName
Description copied from interface:ISqlJetTableDefReturns table name.- Specified by:
getNamein interfaceISqlJetTableDef
-
getQuotedName
- Specified by:
getQuotedNamein interfaceISqlJetTableDef
-
getDatabaseName
-
isTemporary
public boolean isTemporary()Description copied from interface:ISqlJetTableDefTrue if table was created temporarily.- Specified by:
isTemporaryin interfaceISqlJetTableDef
-
isKeepExisting
public boolean isKeepExisting() -
getColumns
Description copied from interface:ISqlJetTableDefDefinitions of table columns.- Specified by:
getColumnsin interfaceISqlJetTableDef
-
getColumn
Description copied from interface:ISqlJetTableDefReturns column definition with a given name or null if there is no such definition.- Specified by:
getColumnin interfaceISqlJetTableDef
-
getColumnNumber
Description copied from interface:ISqlJetTableDefReturns position of the specified column within the table definition.- Specified by:
getColumnNumberin interfaceISqlJetTableDef
-
getConstraints
Description copied from interface:ISqlJetTableDefReturns all table constraints.- Specified by:
getConstraintsin interfaceISqlJetTableDef
-
isRowIdPrimaryKey
public boolean isRowIdPrimaryKey()Description copied from interface:ISqlJetTableDefReturns true if primary key definition allows rowid to be used as primary key column. In practice this means that the table has primary key that is based in a single column of type 'integer'.- Specified by:
isRowIdPrimaryKeyin interfaceISqlJetTableDef
-
isAutoincremented
public boolean isAutoincremented()Description copied from interface:ISqlJetTableDefReturns true if primary key has 'autoincrement' keyword.- Specified by:
isAutoincrementedin interfaceISqlJetTableDef
-
getPage
public int getPage() -
setPage
public void setPage(int page) -
getRowId
public long getRowId() -
setRowId
public void setRowId(long rowId) -
getPrimaryKeyIndexName
Returns name of the primary key index.- Specified by:
getPrimaryKeyIndexNamein interfaceISqlJetTableDef- Returns:
- name of the primary key index.
-
getRowIdPrimaryKeyColumnName
-
getRowIdPrimaryKeyColumnIndex
public int getRowIdPrimaryKeyColumnIndex() -
getPrimaryKeyColumnNames
-
getColumnIndexConstraint
-
getTableIndexConstraint
-
getNotNullColumns
- Returns:
- the notNullColumnsCache
-
toString
-
toSQL
- Specified by:
toSQLin interfaceISqlJetTableDef- Returns:
- SQL representation of this table schema definition.
-
toSQL
-