Class SqlJetSchema
java.lang.Object
org.tmatesoft.sqljet.core.internal.schema.SqlJetSchema
- All Implemented Interfaces:
ISqlJetSchema
- Author:
- TMate Software Ltd., Sergey Scherbina (sergey.scherbina@gmail.com), Dmitry Stadnik (dtrace@seznam.cz)
-
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) void
void
void
dropTrigger
(String triggerName) void
getBtree()
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) boolean
isNameReserved
(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:ISqlJetSchema
Get tables names.- Specified by:
getTableNames
in interfaceISqlJetSchema
- Returns:
- tables names.
- Throws:
SqlJetException
-
getTable
Description copied from interface:ISqlJetSchema
Get table definition by name.- Specified by:
getTable
in interfaceISqlJetSchema
- Parameters:
name
- table name- Returns:
- table definition
- Throws:
SqlJetException
-
getIndexNames
Description copied from interface:ISqlJetSchema
Get indices names.- Specified by:
getIndexNames
in interfaceISqlJetSchema
- Returns:
- indices names.
- Throws:
SqlJetException
-
getIndex
Description copied from interface:ISqlJetSchema
Get index definition by name.- Specified by:
getIndex
in interfaceISqlJetSchema
- Parameters:
name
- index name- Returns:
- index definition
- Throws:
SqlJetException
-
getIndexes
Description copied from interface:ISqlJetSchema
Get indices related with table.- Specified by:
getIndexes
in interfaceISqlJetSchema
- Parameters:
tableName
- table name- Returns:
- indices of table
- Throws:
SqlJetException
-
getVirtualTableNames
- Specified by:
getVirtualTableNames
in interfaceISqlJetSchema
- Returns:
- Set of virtual table names defined in this schema.
- Throws:
SqlJetException
-
getVirtualTable
- Specified by:
getVirtualTable
in interfaceISqlJetSchema
- Returns:
- definition of the virtual table
name
. - Throws:
SqlJetException
-
getView
Description copied from interface:ISqlJetSchema
Get view definition by name.- Specified by:
getView
in interfaceISqlJetSchema
- Parameters:
name
- view name- Returns:
- view definition
- Throws:
SqlJetException
-
getViewNames
- Specified by:
getViewNames
in interfaceISqlJetSchema
- Returns:
- Set of view names defined in this schema.
- Throws:
SqlJetException
-
getTrigger
Description copied from interface:ISqlJetSchema
Get trigger definition by name.- Specified by:
getTrigger
in interfaceISqlJetSchema
- Parameters:
name
- trigger name- Returns:
- trigger definition
- Throws:
SqlJetException
-
getTriggerNames
- Specified by:
getTriggerNames
in 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
-