org.eclipse.net4j.db.ddl
Interface IDBSchema

All Superinterfaces:
IDBSchemaElement
All Known Implementing Classes:
DBSchema

public interface IDBSchema
extends IDBSchemaElement

Specifies a number of DB tables that can be created in or dropped from a database through a DB adapter.


Method Summary
 IDBTable addTable(String name)
           
 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)
           
 IDBTable getTable(String name)
           
 IDBTable[] getTables()
           
 IDBTable removeTable(String name)
           
 
Methods inherited from interface org.eclipse.net4j.db.ddl.IDBSchemaElement
getFullName, getName, getProperties, getSchema
 

Method Detail

addTable

IDBTable addTable(String name)
                  throws DBException
Throws:
DBException

removeTable

IDBTable removeTable(String name)
                     throws DBException
Throws:
DBException
Since:
4.0

getTable

IDBTable getTable(String name)

getTables

IDBTable[] getTables()

create

Set<IDBTable> create(IDBAdapter dbAdapter,
                     Connection connection)
                     throws DBException
Throws:
DBException

create

Set<IDBTable> create(IDBAdapter dbAdapter,
                     DataSource dataSource)
                     throws DBException
Throws:
DBException

create

Set<IDBTable> create(IDBAdapter dbAdapter,
                     IDBConnectionProvider connectionProvider)
                     throws DBException
Throws:
DBException

drop

void drop(IDBAdapter dbAdapter,
          Connection connection)
          throws DBException
Throws:
DBException

drop

void drop(IDBAdapter dbAdapter,
          DataSource dataSource)
          throws DBException
Throws:
DBException

drop

void drop(IDBAdapter dbAdapter,
          IDBConnectionProvider connectionProvider)
          throws DBException
Throws:
DBException

export

void export(Connection connection,
            PrintStream out)
            throws DBException
Throws:
DBException

export

void export(DataSource dataSource,
            PrintStream out)
            throws DBException
Throws:
DBException

export

void export(IDBConnectionProvider connectionProvider,
            PrintStream out)
            throws DBException
Throws:
DBException


Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.