org.eclipse.net4j.db
Interface IDBDatabase

All Superinterfaces:
Closeable, IContainer<IDBConnection>, IDBConnectionProvider, INotifier

public interface IDBDatabase
extends IContainer<IDBConnection>, IDBConnectionProvider, Closeable

Since:
4.2
No Implement
This interface is not intended to be implemented by clients.
No Extend
This interface is not intended to be extended by clients.

Nested Class Summary
static interface IDBDatabase.RunnableWithSchema
           
static interface IDBDatabase.SchemaChangedEvent
           
 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.container.IContainer
IContainer.Modifiable<E>
 
Field Summary
static int DEFAULT_STATEMENT_CACHE_CAPACITY
           
 
Method Summary
 IDBAdapter getAdapter()
           
 IDBConnection getConnection()
          Returns a connection.
 IDBConnection[] getConnections()
           
 IDBSchema getSchema()
           
 IDBSchemaTransaction getSchemaTransaction()
           
 int getStatementCacheCapacity()
           
 IDBSchemaTransaction openSchemaTransaction()
           
 void setStatementCacheCapacity(int statementCacheCapacity)
           
 void updateSchema(IDBDatabase.RunnableWithSchema runnable)
           
 
Methods inherited from interface org.eclipse.net4j.util.container.IContainer
getElements, isEmpty
 
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
 
Methods inherited from interface org.eclipse.net4j.util.collection.Closeable
close, isClosed
 

Field Detail

DEFAULT_STATEMENT_CACHE_CAPACITY

static final int DEFAULT_STATEMENT_CACHE_CAPACITY
See Also:
Constant Field Values
Method Detail

getAdapter

IDBAdapter getAdapter()

getSchema

IDBSchema getSchema()

openSchemaTransaction

IDBSchemaTransaction openSchemaTransaction()

getSchemaTransaction

IDBSchemaTransaction getSchemaTransaction()

updateSchema

void updateSchema(IDBDatabase.RunnableWithSchema runnable)

getConnection

IDBConnection getConnection()
Description copied from interface: IDBConnectionProvider
Returns a connection.

Specified by:
getConnection in interface IDBConnectionProvider

getConnections

IDBConnection[] getConnections()

getStatementCacheCapacity

int getStatementCacheCapacity()

setStatementCacheCapacity

void setStatementCacheCapacity(int statementCacheCapacity)


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