Class SqlJetTableDef
java.lang.Object
org.tmatesoft.sqljet.core.internal.schema.SqlJetTableDef
- All Implemented Interfaces:
ISqlJetTableDef
- Author:
- TMate Software Ltd., Dmitry Stadnik (dtrace@seznam.cz)
-
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) int
getColumnNumber
(String name) Returns position of the specified column within the table definition.Definitions of table columns.Returns all table constraints.getName()
Returns table name.int
getPage()
Returns name of the primary key index.long
getRowId()
int
getTableIndexConstraint
(String indexName) boolean
Returns true if primary key has 'autoincrement' keyword.boolean
boolean
Returns true if primary key definition allows rowid to be used as primary key column.boolean
True if table was created temporarily.void
setPage
(int page) void
setRowId
(long rowId) toSQL()
toSQL
(boolean schemaStrict) toString()
-
Constructor Details
-
SqlJetTableDef
- Throws:
SqlJetException
-
-
Method Details
-
getName
Description copied from interface:ISqlJetTableDef
Returns table name.- Specified by:
getName
in interfaceISqlJetTableDef
-
getQuotedName
- Specified by:
getQuotedName
in interfaceISqlJetTableDef
-
getDatabaseName
-
isTemporary
public boolean isTemporary()Description copied from interface:ISqlJetTableDef
True if table was created temporarily.- Specified by:
isTemporary
in interfaceISqlJetTableDef
-
isKeepExisting
public boolean isKeepExisting() -
getColumns
Description copied from interface:ISqlJetTableDef
Definitions of table columns.- Specified by:
getColumns
in interfaceISqlJetTableDef
-
getColumn
Description copied from interface:ISqlJetTableDef
Returns column definition with a given name or null if there is no such definition.- Specified by:
getColumn
in interfaceISqlJetTableDef
-
getColumnNumber
Description copied from interface:ISqlJetTableDef
Returns position of the specified column within the table definition.- Specified by:
getColumnNumber
in interfaceISqlJetTableDef
-
getConstraints
Description copied from interface:ISqlJetTableDef
Returns all table constraints.- Specified by:
getConstraints
in interfaceISqlJetTableDef
-
isRowIdPrimaryKey
public boolean isRowIdPrimaryKey()Description copied from interface:ISqlJetTableDef
Returns 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:
isRowIdPrimaryKey
in interfaceISqlJetTableDef
-
isAutoincremented
public boolean isAutoincremented()Description copied from interface:ISqlJetTableDef
Returns true if primary key has 'autoincrement' keyword.- Specified by:
isAutoincremented
in 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:
getPrimaryKeyIndexName
in interfaceISqlJetTableDef
- Returns:
- name of the primary key index.
-
getRowIdPrimaryKeyColumnName
-
getRowIdPrimaryKeyColumnIndex
public int getRowIdPrimaryKeyColumnIndex() -
getPrimaryKeyColumnNames
-
getColumnIndexConstraint
-
getTableIndexConstraint
-
getNotNullColumns
- Returns:
- the notNullColumnsCache
-
toString
-
toSQL
- Specified by:
toSQL
in interfaceISqlJetTableDef
- Returns:
- SQL representation of this table schema definition.
-
toSQL
-