org.nakedobjects.plugins.sql.objectstore
Class SqlObjectStore

java.lang.Object
  extended by org.nakedobjects.plugins.sql.objectstore.SqlObjectStore
All Implemented Interfaces:
Component, NamedComponent, SessionScopedComponent, DebugInfo, ObjectStore, ObjectStorePersistence, ObjectStoreTransactionManagement

public final class SqlObjectStore
extends java.lang.Object
implements ObjectStore


Field Summary
static java.lang.String BASE_NAME
           
 
Constructor Summary
SqlObjectStore()
           
 
Method Summary
 void abortTransaction()
           
 void close()
           
 CreateObjectCommand createCreateObjectCommand(NakedObject object)
           
 DestroyObjectCommand createDestroyObjectCommand(NakedObject object)
           
 SaveObjectCommand createSaveObjectCommand(NakedObject object)
           
 void debugData(DebugString debug)
           
 java.lang.String debugTitle()
           
 void endTransaction()
           
 void execute(java.util.List<PersistenceCommand> commands)
           
 boolean flush(PersistenceCommand[] commands)
           
 NakedObject[] getInstances(PersistenceQuery query)
           
 NakedObject getObject(Oid oid, NakedObjectSpecification hint)
           
 Oid getOidForService(java.lang.String name)
           
 boolean hasInstances(NakedObjectSpecification spec)
           
 boolean isFixturesInstalled()
           
 java.lang.String name()
           
 void open()
           
 void registerService(java.lang.String name, Oid oid)
           
 void reset()
           
 void resolveField(NakedObject object, NakedObjectAssociation field)
           
 void resolveImmediately(NakedObject object)
           
 void setConnectionPool(DatabaseConnectorPool connectionPool)
           
 void setMapperLookup(ObjectMappingLookup mapperLookup)
           
 void startTransaction()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASE_NAME

public static final java.lang.String BASE_NAME
See Also:
Constant Field Values
Constructor Detail

SqlObjectStore

public SqlObjectStore()
Method Detail

abortTransaction

public void abortTransaction()
Specified by:
abortTransaction in interface ObjectStoreTransactionManagement

createCreateObjectCommand

public CreateObjectCommand createCreateObjectCommand(NakedObject object)
Specified by:
createCreateObjectCommand in interface ObjectStorePersistence

createDestroyObjectCommand

public DestroyObjectCommand createDestroyObjectCommand(NakedObject object)
Specified by:
createDestroyObjectCommand in interface ObjectStorePersistence

createSaveObjectCommand

public SaveObjectCommand createSaveObjectCommand(NakedObject object)
Specified by:
createSaveObjectCommand in interface ObjectStorePersistence

debugData

public void debugData(DebugString debug)
Specified by:
debugData in interface DebugInfo

debugTitle

public java.lang.String debugTitle()
Specified by:
debugTitle in interface DebugInfo

endTransaction

public void endTransaction()
Specified by:
endTransaction in interface ObjectStoreTransactionManagement

execute

public void execute(java.util.List<PersistenceCommand> commands)
Specified by:
execute in interface ObjectStorePersistence
Specified by:
execute in interface ObjectStoreTransactionManagement

flush

public boolean flush(PersistenceCommand[] commands)

getInstances

public NakedObject[] getInstances(PersistenceQuery query)
Specified by:
getInstances in interface ObjectStorePersistence

getObject

public NakedObject getObject(Oid oid,
                             NakedObjectSpecification hint)
Specified by:
getObject in interface ObjectStorePersistence

getOidForService

public Oid getOidForService(java.lang.String name)
Specified by:
getOidForService in interface ObjectStorePersistence

hasInstances

public boolean hasInstances(NakedObjectSpecification spec)
Specified by:
hasInstances in interface ObjectStorePersistence

isFixturesInstalled

public boolean isFixturesInstalled()
Specified by:
isFixturesInstalled in interface ObjectStorePersistence

open

public void open()
Specified by:
open in interface SessionScopedComponent

name

public java.lang.String name()
Specified by:
name in interface NamedComponent

registerService

public void registerService(java.lang.String name,
                            Oid oid)
Specified by:
registerService in interface ObjectStorePersistence

reset

public void reset()
Specified by:
reset in interface ObjectStorePersistence

resolveField

public void resolveField(NakedObject object,
                         NakedObjectAssociation field)
Specified by:
resolveField in interface ObjectStorePersistence

resolveImmediately

public void resolveImmediately(NakedObject object)
Specified by:
resolveImmediately in interface ObjectStorePersistence

setConnectionPool

public void setConnectionPool(DatabaseConnectorPool connectionPool)

setMapperLookup

public void setMapperLookup(ObjectMappingLookup mapperLookup)

close

public void close()
Specified by:
close in interface SessionScopedComponent

startTransaction

public void startTransaction()
Specified by:
startTransaction in interface ObjectStoreTransactionManagement


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.