org.eclipse.net4j.spi.db
Class DBSchema

java.lang.Object
  extended by org.eclipse.net4j.util.event.Notifier
      extended by org.eclipse.net4j.internal.db.ddl.DBElement
          extended by org.eclipse.net4j.internal.db.ddl.DBNamedElement
              extended by org.eclipse.net4j.internal.db.ddl.DBSchemaElement
                  extended by org.eclipse.net4j.internal.db.ddl.DBSchema
                      extended by org.eclipse.net4j.spi.db.DBSchema
All Implemented Interfaces:
Serializable, Comparable<IDBSchemaElement>, IDBElement, IDBNamedElement, IDBSchema, IDBSchemaElement, InternalDBElement, InternalDBNamedElement, InternalDBSchema, InternalDBSchemaElement, IContainer<IDBSchemaElement>, INotifier

Deprecated. As of 4.2 call DBUtil.createSchema(String), DBUtil.readSchema(IDBAdapter, Connection, IDBSchema), DBUtil.readSchema(IDBAdapter, Connection, String) or DBUtil.copySchema(IDBSchema).

@Deprecated
public class DBSchema
  
extends org.eclipse.net4j.internal.db.ddl.DBSchema

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.net4j.db.ddl.IDBSchemaElement
IDBSchemaElement.SchemaElementType
 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.container.IContainer
IContainer.Modifiable<E>
 
Field Summary
 
Fields inherited from interface org.eclipse.net4j.spi.db.ddl.InternalDBSchema
NO_TABLES
 
Constructor Summary
protected DBSchema()
          Deprecated. Constructor for deserialization.
  DBSchema(IDBSchema source)
          Deprecated.  
  DBSchema(String name)
          Deprecated.  
 
Method Summary
 void addListener(IListener listener)
          Deprecated.  
 IDBTable addTable(String name)
          Deprecated.  
 void assertUnlocked()
          Deprecated.  
 Set<IDBTable> create(IDBAdapter dbAdapter, Connection connection)
          Deprecated.  
 Set<IDBTable> create(IDBAdapter dbAdapter, DataSource dataSource)
          Deprecated.  
 Set<IDBTable> create(IDBAdapter dbAdapter, IDBConnectionProvider connectionProvider)
          Deprecated.  
 void drop(IDBAdapter dbAdapter, Connection connection)
          Deprecated.  
 void drop(IDBAdapter dbAdapter, DataSource dataSource)
          Deprecated.  
 void drop(IDBAdapter dbAdapter, IDBConnectionProvider connectionProvider)
          Deprecated.  
 void export(Connection connection, PrintStream out)
          Deprecated.  
 void export(DataSource dataSource, PrintStream out)
          Deprecated.  
 void export(IDBConnectionProvider connectionProvider, PrintStream out)
          Deprecated.  
protected  void finalize()
          Deprecated.  
 void fireEvent()
          Deprecated.  
 void fireEvent(IEvent event)
          Deprecated.  
 void fireEvent(IEvent event, IListener[] listeners)
          Deprecated.  
protected  void fireThrowable(Throwable throwable)
          Deprecated.  
protected  void firstListenerAdded()
          Deprecated.  
 String getFullName()
          Deprecated.  
 IListener[] getListeners()
          Deprecated.  
 String getName()
          Deprecated.  
protected  ExecutorService getNotificationService()
          Deprecated.  
 IDBSchema getSchema()
          Deprecated.  
 IDBTable getTable(String name)
          Deprecated.  
 IDBTable[] getTables()
          Deprecated.  
 boolean hasListeners()
          Deprecated.  
 boolean isLocked()
          Deprecated.  
protected  void lastListenerRemoved()
          Deprecated.  
 boolean lock()
          Deprecated.  
 void removeListener(IListener listener)
          Deprecated.  
 IDBTable removeTable(String name)
          Deprecated.  
 String toString()
          Deprecated.  
 
Methods inherited from class org.eclipse.net4j.internal.db.ddl.DBSchema
collectElements, compare, createIndexName, doAccept, findElement, getParent, getSchemaElementType, getTableSafe, getWrapper, remove, unlock
 
Methods inherited from class org.eclipse.net4j.internal.db.ddl.DBSchemaElement
accept, compareTo, dump, dumpAdditionalProperties, equals, getElement, getElements, hashCode, isEmpty, resetElements, setWrapper
 
Methods inherited from class org.eclipse.net4j.internal.db.ddl.DBNamedElement
dump, dumpToString, findElement, name, setName
 
Methods inherited from class org.eclipse.net4j.internal.db.ddl.DBElement
getProperties
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.net4j.spi.db.ddl.InternalDBSchemaElement
setWrapper
 
Methods inherited from interface org.eclipse.net4j.db.ddl.IDBSchemaElement
accept, getElement, setName
 
Methods inherited from interface org.eclipse.net4j.util.container.IContainer
getElements, isEmpty
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.eclipse.net4j.spi.db.ddl.InternalDBNamedElement
dump, dump, dumpToString, setName
 
Methods inherited from interface org.eclipse.net4j.db.ddl.IDBElement
getProperties
 

Constructor Detail

DBSchema

public DBSchema(String name)
Deprecated. 

DBSchema

public DBSchema(IDBSchema source)
Deprecated. 
Since:
4.2

DBSchema

protected DBSchema()
Deprecated. 
Constructor for deserialization.

Since:
4.2
Method Detail

getSchema

public IDBSchema getSchema()
Deprecated. 
Specified by:
getSchema in interface IDBSchemaElement
Overrides:
getSchema in class org.eclipse.net4j.internal.db.ddl.DBSchema

getFullName

public String getFullName()
Deprecated. 
Specified by:
getFullName in interface IDBSchemaElement
Overrides:
getFullName in class org.eclipse.net4j.internal.db.ddl.DBSchema

addTable

public IDBTable addTable(String name)
                  throws DBException
Deprecated. 
Specified by:
addTable in interface IDBSchema
Specified by:
addTable in interface InternalDBSchema
Overrides:
addTable in class org.eclipse.net4j.internal.db.ddl.DBSchema
Throws:
DBException

removeTable

public IDBTable removeTable(String name)
Deprecated. 
Specified by:
removeTable in interface IDBSchema
Specified by:
removeTable in interface InternalDBSchema
Overrides:
removeTable in class org.eclipse.net4j.internal.db.ddl.DBSchema

getTable

public IDBTable getTable(String name)
Deprecated. 
Specified by:
getTable in interface IDBSchema
Overrides:
getTable in class org.eclipse.net4j.internal.db.ddl.DBSchema

getTables

public IDBTable[] getTables()
Deprecated. 
Specified by:
getTables in interface IDBSchema
Overrides:
getTables in class org.eclipse.net4j.internal.db.ddl.DBSchema

isLocked

public boolean isLocked()
Deprecated. 
Specified by:
isLocked in interface IDBSchema
Overrides:
isLocked in class org.eclipse.net4j.internal.db.ddl.DBSchema

lock

public boolean lock()
Deprecated. 
Specified by:
lock in interface InternalDBSchema
Overrides:
lock in class org.eclipse.net4j.internal.db.ddl.DBSchema

assertUnlocked

public void assertUnlocked()
                    throws DBException
Deprecated. 
Specified by:
assertUnlocked in interface InternalDBSchema
Overrides:
assertUnlocked in class org.eclipse.net4j.internal.db.ddl.DBSchema
Throws:
DBException

create

public Set<IDBTable> create(IDBAdapter dbAdapter,
                            Connection connection)
                     throws DBException
Deprecated. 
Specified by:
create in interface IDBSchema
Overrides:
create in class org.eclipse.net4j.internal.db.ddl.DBSchema
Throws:
DBException

create

public Set<IDBTable> create(IDBAdapter dbAdapter,
                            DataSource dataSource)
                     throws DBException
Deprecated. 
Specified by:
create in interface IDBSchema
Overrides:
create in class org.eclipse.net4j.internal.db.ddl.DBSchema
Throws:
DBException

create

public Set<IDBTable> create(IDBAdapter dbAdapter,
                            IDBConnectionProvider connectionProvider)
                     throws DBException
Deprecated. 
Specified by:
create in interface IDBSchema
Overrides:
create in class org.eclipse.net4j.internal.db.ddl.DBSchema
Throws:
DBException

drop

public void drop(IDBAdapter dbAdapter,
                 Connection connection)
          throws DBException
Deprecated. 
Specified by:
drop in interface IDBSchema
Overrides:
drop in class org.eclipse.net4j.internal.db.ddl.DBSchema
Throws:
DBException

drop

public void drop(IDBAdapter dbAdapter,
                 DataSource dataSource)
          throws DBException
Deprecated. 
Specified by:
drop in interface IDBSchema
Overrides:
drop in class org.eclipse.net4j.internal.db.ddl.DBSchema
Throws:
DBException

drop

public void drop(IDBAdapter dbAdapter,
                 IDBConnectionProvider connectionProvider)
          throws DBException
Deprecated. 
Specified by:
drop in interface IDBSchema
Overrides:
drop in class org.eclipse.net4j.internal.db.ddl.DBSchema
Throws:
DBException

export

public void export(Connection connection,
                   PrintStream out)
            throws DBException
Deprecated. 
Specified by:
export in interface IDBSchema
Overrides:
export in class org.eclipse.net4j.internal.db.ddl.DBSchema
Throws:
DBException

export

public void export(DataSource dataSource,
                   PrintStream out)
            throws DBException
Deprecated. 
Specified by:
export in interface IDBSchema
Overrides:
export in class org.eclipse.net4j.internal.db.ddl.DBSchema
Throws:
DBException

export

public void export(IDBConnectionProvider connectionProvider,
                   PrintStream out)
            throws DBException
Deprecated. 
Specified by:
export in interface IDBSchema
Overrides:
export in class org.eclipse.net4j.internal.db.ddl.DBSchema
Throws:
DBException

getName

public String getName()
Deprecated. 
Specified by:
getName in interface IDBNamedElement
Overrides:
getName in class org.eclipse.net4j.internal.db.ddl.DBNamedElement

toString

public String toString()
Deprecated. 
Overrides:
toString in class org.eclipse.net4j.internal.db.ddl.DBNamedElement

addListener

public void addListener(IListener listener)
Deprecated. 
Specified by:
addListener in interface INotifier
Overrides:
addListener in class Notifier

removeListener

public void removeListener(IListener listener)
Deprecated. 
Specified by:
removeListener in interface INotifier
Overrides:
removeListener in class Notifier

hasListeners

public boolean hasListeners()
Deprecated. 
Specified by:
hasListeners in interface INotifier
Overrides:
hasListeners in class Notifier

getListeners

public IListener[] getListeners()
Deprecated. 
Specified by:
getListeners in interface INotifier
Overrides:
getListeners in class Notifier

fireEvent

public void fireEvent()
Deprecated. 
Overrides:
fireEvent in class Notifier

fireEvent

public void fireEvent(IEvent event)
Deprecated. 
Overrides:
fireEvent in class Notifier

fireEvent

public void fireEvent(IEvent event,
                      IListener[] listeners)
Deprecated. 
Overrides:
fireEvent in class Notifier

fireThrowable

protected void fireThrowable(Throwable throwable)
Deprecated. 
Overrides:
fireThrowable in class Notifier

getNotificationService

protected ExecutorService getNotificationService()
Deprecated. 
Overrides:
getNotificationService in class Notifier

firstListenerAdded

protected void firstListenerAdded()
Deprecated. 
Overrides:
firstListenerAdded in class Notifier

lastListenerRemoved

protected void lastListenerRemoved()
Deprecated. 
Overrides:
lastListenerRemoved in class Notifier

finalize

protected void finalize()
                 throws Throwable
Deprecated. 
Overrides:
finalize in class Object
Throws:
Throwable


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