pt.ist.fenixframework.backend.ogm
Class OgmBackEnd

Package class diagram package OgmBackEnd
java.lang.Object
  extended by pt.ist.fenixframework.backend.ogm.OgmBackEnd
All Implemented Interfaces:
BackEnd

public class OgmBackEnd
extends Object
implements BackEnd


Field Summary
static String BACKEND_NAME
           
protected  OgmTransactionManager transactionManager
           
 
Method Summary
protected  void configOgm(OgmConfig config)
           
<T extends DomainObject>
T
fromOid(Object oid)
          Backend-specific method to get a DomainObject given its OID.
<T extends DomainObject>
T
getDomainObject(String externalId)
           
 DomainRoot getDomainRoot()
           
static OgmBackEnd getInstance()
           
 String getName()
          Get the unique name of this BackEnd.
 OgmTransactionManager getTransactionManager()
           
 void save(AbstractDomainObject obj)
           
 void shutdown()
          Perform any required operations for a successful shutdown of the BackEnd.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BACKEND_NAME

public static final String BACKEND_NAME
See Also:
Constant Field Values

transactionManager

protected final OgmTransactionManager transactionManager
Method Detail

getInstance

public static OgmBackEnd getInstance()

getName

public String getName()
Description copied from interface: BackEnd
Get the unique name of this BackEnd. The String returned by this method should contain only valid characters in a filename (because it can be used for configuration by convention

Specified by:
getName in interface BackEnd
See Also:
FenixFramework

getDomainRoot

public DomainRoot getDomainRoot()
Specified by:
getDomainRoot in interface BackEnd
See Also:
FenixFramework.getDomainRoot()

getDomainObject

public <T extends DomainObject> T getDomainObject(String externalId)
Specified by:
getDomainObject in interface BackEnd
See Also:
FenixFramework.getDomainObject(String)

getTransactionManager

public OgmTransactionManager getTransactionManager()
Specified by:
getTransactionManager in interface BackEnd
See Also:
FenixFramework.getTransactionManager()

fromOid

public <T extends DomainObject> T fromOid(Object oid)
Description copied from interface: BackEnd
Backend-specific method to get a DomainObject given its OID. Callers of this method are responsible for providing a valid OID.

Specified by:
fromOid in interface BackEnd
Parameters:
oid - The backend-specific identifier of the object to get

shutdown

public void shutdown()
Description copied from interface: BackEnd
Perform any required operations for a successful shutdown of the BackEnd. After invoking this method there is no guarantee that the Fenix Framework is able to provide any more services.

Specified by:
shutdown in interface BackEnd

configOgm

protected void configOgm(OgmConfig config)

save

public void save(AbstractDomainObject obj)


Copyright © 2013. All Rights Reserved.