| java.lang.Object org.h2.engine.DbObjectBase org.h2.schema.Schema
Schema | public class Schema extends DbObjectBase (Code) | | A schema as created by the SQL statement
CREATE SCHEMA
|
Method Summary | |
public void | add(SchemaObject obj) | public boolean | canDrop() | public void | checkRename() | public TableData | createTable(String tableName, int id, ObjectArray columns, boolean persistent, boolean clustered) Add a
TableData to the schema. | public TableLink | createTableLink(int id, String tableName, String driver, String url, String user, String password, String originalTable, boolean emitUpdates, boolean force) Add a
TableLink to the schema. | public Constant | findConstant(String constantName) | public Constraint | findConstraint(String constraintName) | public Index | findIndex(String name) | public Sequence | findSequence(String sequenceName) | public Table | findTableOrView(Session session, String name) | public TriggerObject | findTrigger(String name) | public void | freeUniqueName(String name) | public ObjectArray | getAll(int type) | public Constant | getConstant(Session session, String constantName) | public Constraint | getConstraint(String name) | public String | getCreateSQL() | public String | getCreateSQLForCopy(Table table, String quotedName) | public String | getDropSQL() | public Index | getIndex(String name) | public User | getOwner() | public Sequence | getSequence(String sequenceName) | public Table | getTableOrView(Session session, String name) | public int | getType() | public String | getUniqueConstraintName(DbObject obj) | public String | getUniqueIndexName(DbObject obj, String prefix) | public void | remove(Session session, SchemaObject obj) | public void | removeChildrenAndResources(Session session) | public void | rename(SchemaObject obj, String newName) |
canDrop | public boolean canDrop()(Code) | | |
createTable | public TableData createTable(String tableName, int id, ObjectArray columns, boolean persistent, boolean clustered) throws SQLException(Code) | | Add a
TableData to the schema.
Parameters: tableName - the table name Parameters: id - the object id Parameters: columns - the column list Parameters: persistent - if the table should be persistent Parameters: clustered - if a clustered table should be created the created TableData object |
createTableLink | public TableLink createTableLink(int id, String tableName, String driver, String url, String user, String password, String originalTable, boolean emitUpdates, boolean force) throws SQLException(Code) | | Add a
TableLink to the schema.
Parameters: id - the object id Parameters: tableName - the table name of the alias Parameters: driver - the driver class name Parameters: url - the database URL Parameters: user - the user name Parameters: password - the password Parameters: originalTable - the table name of the target table Parameters: emitUpdates - if updates should be emitted instead of delete/insert Parameters: force - create the object even if the database can not be accessed the TableLink object |
getType | public int getType()(Code) | | |
|
|