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 TypeMethodDescriptiongetColumn
(java.lang.String name) Returns column definition with a given name or null if there is no such definition.int
getColumnNumber
(java.lang.String name) Returns position of the specified column within the table definition.java.util.List<ISqlJetColumnDef>
Definitions of table columns.java.util.List<ISqlJetTableConstraint>
Returns all table constraints.java.lang.String
getName()
Returns table name.java.lang.String
java.lang.String
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.java.lang.String
toSQL()
-
Method Details
-
getName
java.lang.String getName()Returns table name. -
getQuotedName
java.lang.String getQuotedName() -
isTemporary
boolean isTemporary()True if table was created temporarily. -
getColumns
java.util.List<ISqlJetColumnDef> getColumns()Definitions of table columns. -
getColumn
Returns column definition with a given name or null if there is no such definition. -
getColumnNumber
int getColumnNumber(java.lang.String name) Returns position of the specified column within the table definition. -
getConstraints
java.util.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
java.lang.String getPrimaryKeyIndexName()- Returns:
- name of the primary key index.
-
toSQL
java.lang.String toSQL()- Returns:
- SQL representation of this table schema definition.
-