public interface IDBSchema extends IDBSchemaElement
DB tables
that can be created in or dropped from a database through a
DB adapter
.IDBSchemaElement.SchemaElementType
IContainer.Modifiable<E>, IContainer.Persistable<E>, IContainer.Persistence<E>
Modifier and Type | Method and Description |
---|---|
IDBTable |
addTable(String name) |
IDBSchemaDelta |
compare(IDBSchema oldSchema) |
Set<IDBTable> |
create(IDBAdapter dbAdapter,
Connection connection) |
Set<IDBTable> |
create(IDBAdapter dbAdapter,
DataSource dataSource) |
Set<IDBTable> |
create(IDBAdapter dbAdapter,
IDBConnectionProvider connectionProvider) |
void |
drop(IDBAdapter dbAdapter,
Connection connection) |
void |
drop(IDBAdapter dbAdapter,
DataSource dataSource) |
void |
drop(IDBAdapter dbAdapter,
IDBConnectionProvider connectionProvider) |
void |
export(Connection connection,
PrintStream out) |
void |
export(DataSource dataSource,
PrintStream out) |
void |
export(IDBConnectionProvider connectionProvider,
PrintStream out) |
<T extends IDBSchemaElement> |
findElement(IDBSchemaElement prototype) |
IDBTable |
getTable(String name) |
IDBTable[] |
getTables() |
IDBTable |
getTableSafe(String name) |
boolean |
isLocked() |
IDBTable |
removeTable(String name) |
accept, getElement, getFullName, getParent, getSchema, getSchemaElementType, remove, setName
getName
getProperties
addListener, getListeners, hasListeners, removeListener
getElements, isEmpty
compareTo
boolean isLocked()
<T extends IDBSchemaElement> T findElement(IDBSchemaElement prototype)
IDBTable addTable(String name) throws DBException
DBException
IDBTable removeTable(String name) throws DBException
DBException
IDBTable getTableSafe(String name) throws SchemaElementNotFoundException
SchemaElementNotFoundException
IDBTable[] getTables()
Set<IDBTable> create(IDBAdapter dbAdapter, Connection connection) throws DBException
DBException
Set<IDBTable> create(IDBAdapter dbAdapter, DataSource dataSource) throws DBException
DBException
Set<IDBTable> create(IDBAdapter dbAdapter, IDBConnectionProvider connectionProvider) throws DBException
DBException
void drop(IDBAdapter dbAdapter, Connection connection) throws DBException
DBException
void drop(IDBAdapter dbAdapter, DataSource dataSource) throws DBException
DBException
void drop(IDBAdapter dbAdapter, IDBConnectionProvider connectionProvider) throws DBException
DBException
void export(Connection connection, PrintStream out) throws DBException
DBException
void export(DataSource dataSource, PrintStream out) throws DBException
DBException
void export(IDBConnectionProvider connectionProvider, PrintStream out) throws DBException
DBException
IDBSchemaDelta compare(IDBSchema oldSchema)
Copyright (c) 2011-2014 Eike Stepper (Berlin, Germany) and others.