SQLJet Home

org.tmatesoft.sqljet.core.schema
Interface ISqlJetSchema


public interface ISqlJetSchema

Database schema interface.

Author:
TMate Software Ltd., Sergey Scherbina (sergey.scherbina@gmail.com)

Method Summary
 ISqlJetIndexDef getIndex(java.lang.String name)
          Get index definition by name.
 java.util.Set<ISqlJetIndexDef> getIndexes(java.lang.String tableName)
          Get indices related with table.
 java.util.Set<java.lang.String> getIndexNames()
          Get indices names.
 ISqlJetTableDef getTable(java.lang.String name)
          Get table definition by name.
 java.util.Set<java.lang.String> getTableNames()
          Get tables names.
 ISqlJetVirtualTableDef getVirtualTable(java.lang.String name)
           
 java.util.Set<java.lang.String> getVirtualTableNames()
           
 

Method Detail

getTableNames

java.util.Set<java.lang.String> getTableNames()
                                              throws SqlJetException
Get tables names.

Returns:
tables names.
Throws:
SqlJetException

getTable

ISqlJetTableDef getTable(java.lang.String name)
                         throws SqlJetException
Get table definition by name.

Parameters:
name - table name
Returns:
table definition
Throws:
SqlJetException

getIndexNames

java.util.Set<java.lang.String> getIndexNames()
                                              throws SqlJetException
Get indices names.

Returns:
indices names.
Throws:
SqlJetException

getIndex

ISqlJetIndexDef getIndex(java.lang.String name)
                         throws SqlJetException
Get index definition by name.

Parameters:
name - index name
Returns:
index definition
Throws:
SqlJetException

getIndexes

java.util.Set<ISqlJetIndexDef> getIndexes(java.lang.String tableName)
                                          throws SqlJetException
Get indices related with table.

Parameters:
tableName - table name
Returns:
indices of table
Throws:
SqlJetException

getVirtualTableNames

java.util.Set<java.lang.String> getVirtualTableNames()
                                                     throws SqlJetException
Returns:
Set of virtual table names defined in this schema.
Throws:
SqlJetException

getVirtualTable

ISqlJetVirtualTableDef getVirtualTable(java.lang.String name)
                                       throws SqlJetException
Parameters:
name -
Returns:
definition of the virtual table name.
Throws:
SqlJetException

SQLJet Home

Copyright © 2009-2010 TMate Software Ltd. All Rights Reserved.