org.nakedobjects.persistence.sql
Class DatabaseAccess

java.lang.Object
  extended byorg.nakedobjects.persistence.sql.DatabaseAccess
Direct Known Subclasses:
AutoSqlCollectionMapper, DatabaseInitialisation, DirectOneToManySqlCollectionMapper, IndirectOneToManySqlCollectionMapper, SimpleSqlObjectMapper, SqlSerialNumbers

public abstract class DatabaseAccess
extends java.lang.Object


Field Summary
protected  SqlObjectStore store
           
 
Constructor Summary
DatabaseAccess(SqlObjectStore store)
           
 
Method Summary
 long createKey()
           
protected  boolean databaseContainsTable(java.lang.String table)
           
 java.sql.Connection getConnection()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

store

protected final SqlObjectStore store
Constructor Detail

DatabaseAccess

public DatabaseAccess(SqlObjectStore store)
Method Detail

getConnection

public java.sql.Connection getConnection()
                                  throws SqlObjectStoreException
Throws:
SqlObjectStoreException

createKey

public long createKey()
               throws ObjectStoreException
Throws:
ObjectStoreException

databaseContainsTable

protected boolean databaseContainsTable(java.lang.String table)
                                 throws ObjectStoreException
Throws:
ObjectStoreException