Class SqlJetSchema
java.lang.Object
org.tmatesoft.sqljet.core.internal.schema.SqlJetSchema
- All Implemented Interfaces:
ISqlJetSchema
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Set<SqlJetBtreeTableCreateFlags> static final Set<SqlJetBtreeTableCreateFlags> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalterTable(String sql) createIndex(String sql) createIndexForVirtualTable(String virtualTableName, String indexName) createTable(String sql) createTrigger(String sql) createView(String sql) createVirtualTable(String sql, int page) voidvoidvoiddropTrigger(String triggerName) voidgetBtree()getDb()Get index definition by name.getIndexes(String tableName) Get indices related with table.Get indices names.Get table definition by name.Get tables names.getTrigger(String name) Get trigger definition by name.Get view definition by name.getVirtualTable(String name) booleanisNameReserved(String name) Returns true if name is reserved for internal use.toString()
-
Field Details
-
BTREE_CREATE_TABLE_FLAGS
-
BTREE_CREATE_INDEX_FLAGS
-
-
Constructor Details
-
SqlJetSchema
- Throws:
SqlJetException
-
-
Method Details
-
getDb
-
getBtree
-
getTableNames
Description copied from interface:ISqlJetSchemaGet tables names.- Specified by:
getTableNamesin interfaceISqlJetSchema- Returns:
- tables names.
- Throws:
SqlJetException
-
getTable
Description copied from interface:ISqlJetSchemaGet table definition by name.- Specified by:
getTablein interfaceISqlJetSchema- Parameters:
name- table name- Returns:
- table definition
- Throws:
SqlJetException
-
getIndexNames
Description copied from interface:ISqlJetSchemaGet indices names.- Specified by:
getIndexNamesin interfaceISqlJetSchema- Returns:
- indices names.
- Throws:
SqlJetException
-
getIndex
Description copied from interface:ISqlJetSchemaGet index definition by name.- Specified by:
getIndexin interfaceISqlJetSchema- Parameters:
name- index name- Returns:
- index definition
- Throws:
SqlJetException
-
getIndexes
Description copied from interface:ISqlJetSchemaGet indices related with table.- Specified by:
getIndexesin interfaceISqlJetSchema- Parameters:
tableName- table name- Returns:
- indices of table
- Throws:
SqlJetException
-
getVirtualTableNames
- Specified by:
getVirtualTableNamesin interfaceISqlJetSchema- Returns:
- Set of virtual table names defined in this schema.
- Throws:
SqlJetException
-
getVirtualTable
- Specified by:
getVirtualTablein interfaceISqlJetSchema- Parameters:
name-- Returns:
- definition of the virtual table
name. - Throws:
SqlJetException
-
getView
Description copied from interface:ISqlJetSchemaGet view definition by name.- Specified by:
getViewin interfaceISqlJetSchema- Parameters:
name- view name- Returns:
- view definition
- Throws:
SqlJetException
-
getViewNames
- Specified by:
getViewNamesin interfaceISqlJetSchema- Returns:
- Set of view names defined in this schema.
- Throws:
SqlJetException
-
getTrigger
Description copied from interface:ISqlJetSchemaGet trigger definition by name.- Specified by:
getTriggerin interfaceISqlJetSchema- Parameters:
name- trigger name- Returns:
- trigger definition
- Throws:
SqlJetException
-
getTriggerNames
- Specified by:
getTriggerNamesin interfaceISqlJetSchema- Returns:
- Set of trigger names defined in this schema.
- Throws:
SqlJetException
-
toString
-
createTable
- Throws:
SqlJetException
-
openSequenceTable
- Throws:
SqlJetException
-
createIndex
- Throws:
SqlJetException
-
dropTable
- Throws:
SqlJetException
-
dropIndex
- Throws:
SqlJetException
-
alterTable
- Throws:
SqlJetException
-
createVirtualTable
- Throws:
SqlJetException
-
createView
- Throws:
SqlJetException
-
isNameReserved
Returns true if name is reserved for internal use.- Parameters:
name-- Returns:
- true if name is reserved
-
createIndexForVirtualTable
public ISqlJetIndexDef createIndexForVirtualTable(String virtualTableName, String indexName) throws SqlJetException - Throws:
SqlJetException
-
dropView
- Throws:
SqlJetException
-
dropTrigger
- Throws:
SqlJetException
-
createTrigger
- Throws:
SqlJetException
-