Package org.tmatesoft.sqljet.core.schema
Interface ISqlJetTableDef
- All Known Implementing Classes:
SqlJetTableDef
public interface ISqlJetTableDef
Table Definition.
- Author:
- TMate Software Ltd., Dmitry Stadnik (dtrace@seznam.cz)
-
Method Summary
Modifier and TypeMethodDescriptionReturns column definition with a given name or null if there is no such definition.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.boolean
Returns true if primary key has 'autoincrement' keyword.boolean
Returns true if primary key definition allows rowid to be used as primary key column.boolean
True if table was created temporarily.toSQL()
-
Method Details
-
getName
String getName()Returns table name. -
getQuotedName
String getQuotedName() -
isTemporary
boolean isTemporary()True if table was created temporarily. -
getColumns
List<ISqlJetColumnDef> getColumns()Definitions of table columns. -
getColumn
Returns column definition with a given name or null if there is no such definition. -
getColumnNumber
Returns position of the specified column within the table definition. -
getConstraints
List<ISqlJetTableConstraint> getConstraints()Returns all table constraints. -
isRowIdPrimaryKey
boolean isRowIdPrimaryKey()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'. -
isAutoincremented
boolean isAutoincremented()Returns true if primary key has 'autoincrement' keyword. -
getPrimaryKeyIndexName
String getPrimaryKeyIndexName()- Returns:
- name of the primary key index.
-
toSQL
String toSQL()- Returns:
- SQL representation of this table schema definition.
-