org.eclipse.net4j.spi.db
Class DBSchema
java.lang.Object
org.eclipse.net4j.internal.db.ddl.DBSchemaElement
org.eclipse.net4j.spi.db.DBSchema
- All Implemented Interfaces:
- IDBSchema, IDBSchemaElement
public class DBSchema
- extends org.eclipse.net4j.internal.db.ddl.DBSchemaElement
- implements IDBSchema
Constructor Summary |
DBSchema(java.lang.String name)
|
Methods inherited from class org.eclipse.net4j.internal.db.ddl.DBSchemaElement |
getProperties, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DBSchema
public DBSchema(java.lang.String name)
getFullName
public java.lang.String getFullName()
- Specified by:
getFullName
in interface IDBSchemaElement
getSchema
public IDBSchema getSchema()
- Specified by:
getSchema
in interface IDBSchemaElement
getName
public java.lang.String getName()
- Specified by:
getName
in interface IDBSchemaElement
addTable
public org.eclipse.net4j.internal.db.ddl.DBTable addTable(java.lang.String name)
throws DBException
- Specified by:
addTable
in interface IDBSchema
- Throws:
DBException
getTable
public org.eclipse.net4j.internal.db.ddl.DBTable getTable(java.lang.String name)
- Specified by:
getTable
in interface IDBSchema
getTables
public org.eclipse.net4j.internal.db.ddl.DBTable[] getTables()
- Specified by:
getTables
in interface IDBSchema
isLocked
public boolean isLocked()
lock
public boolean lock()
create
public java.util.Set<IDBTable> create(IDBAdapter dbAdapter,
java.sql.Connection connection)
throws DBException
- Specified by:
create
in interface IDBSchema
- Throws:
DBException
create
public java.util.Set<IDBTable> create(IDBAdapter dbAdapter,
javax.sql.DataSource dataSource)
throws DBException
- Specified by:
create
in interface IDBSchema
- Throws:
DBException
create
public java.util.Set<IDBTable> create(IDBAdapter dbAdapter,
IDBConnectionProvider connectionProvider)
throws DBException
- Specified by:
create
in interface IDBSchema
- Throws:
DBException
drop
public void drop(IDBAdapter dbAdapter,
java.sql.Connection connection)
throws DBException
- Specified by:
drop
in interface IDBSchema
- Throws:
DBException
drop
public void drop(IDBAdapter dbAdapter,
javax.sql.DataSource dataSource)
throws DBException
- Specified by:
drop
in interface IDBSchema
- Throws:
DBException
drop
public void drop(IDBAdapter dbAdapter,
IDBConnectionProvider connectionProvider)
throws DBException
- Specified by:
drop
in interface IDBSchema
- Throws:
DBException
export
public void export(java.sql.Connection connection,
java.io.PrintStream out)
throws DBException
- Specified by:
export
in interface IDBSchema
- Throws:
DBException
export
public void export(javax.sql.DataSource dataSource,
java.io.PrintStream out)
throws DBException
- Specified by:
export
in interface IDBSchema
- Throws:
DBException
export
public void export(IDBConnectionProvider connectionProvider,
java.io.PrintStream out)
throws DBException
- Specified by:
export
in interface IDBSchema
- Throws:
DBException
assertUnlocked
public void assertUnlocked()
throws DBException
- Throws:
DBException