/**
* ISqlJetSchema.java
* Copyright (C) 2009-2013 TMate Software Ltd
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* For information on how to redistribute this software under
* the terms of a license other than GNU General Public License
* contact TMate Software at support@sqljet.com
*/
package org.tmatesoft.sqljet.core.schema;
import java.util.Set;
import org.tmatesoft.sqljet.core.SqlJetException;
/**
* Database schema interface.
*
* @author TMate Software Ltd.
* @author Sergey Scherbina (sergey.scherbina@gmail.com)
*/
public interface ISqlJetSchema {
/**
* Get tables names.
*
* @return tables names.
* @throws SqlJetException
*/
Set getTableNames() throws SqlJetException;
/**
* Get table definition by name.
*
* @param name
* table name
* @return table definition
* @throws SqlJetException
*/
ISqlJetTableDef getTable(String name) throws SqlJetException;
/**
* Get indices names.
*
* @return indices names.
* @throws SqlJetException
*/
Set getIndexNames() throws SqlJetException;
/**
* Get index definition by name.
*
* @param name
* index name
* @return index definition
* @throws SqlJetException
*/
ISqlJetIndexDef getIndex(String name) throws SqlJetException;
/**
* Get indices related with table.
*
* @param tableName
* table name
* @return indices of table
* @throws SqlJetException
*/
Set getIndexes(String tableName) throws SqlJetException;
/**
* @return Set of virtual table names defined in this schema.
*
* @throws SqlJetException
*/
Set getVirtualTableNames() throws SqlJetException;
/**
* @param name
* @return definition of the virtual table name.
*
* @throws SqlJetException
*/
ISqlJetVirtualTableDef getVirtualTable(String name) throws SqlJetException;
/**
* Get view definition by name.
*
* @param name
* view name
* @return view definition
* @throws SqlJetException
*/
ISqlJetViewDef getView(String name) throws SqlJetException;
/**
* @return Set of view names defined in this schema.
*
* @throws SqlJetException
*/
Set getViewNames() throws SqlJetException;
/**
* Get trigger definition by name.
*
* @param name
* trigger name
* @return trigger definition
* @throws SqlJetException
*/
ISqlJetTriggerDef getTrigger(String name) throws SqlJetException;
/**
* @return Set of trigger names defined in this schema.
*
* @throws SqlJetException
*/
Set getTriggerNames() throws SqlJetException;
}
Ads help maintain this website.