|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.vinculumtech.platform.root.PersistenceSession
com.vinculumtech.platform.root.vendor.hibernate.HibernatePersistenceSession
| Field Summary | |
static java.lang.String |
MAPPING_FILE
|
| Fields inherited from class com.vinculumtech.platform.root.PersistenceSession |
REFERENCEABLE_NAME_FIELD |
| Constructor Summary | |
HibernatePersistenceSession()
|
|
| Method Summary | |
void |
beginSession(boolean readOnly)
Initialize the session for the current Thread. |
void |
commitSession()
Perform any necessary cleanup before the session is completed. |
java.lang.Object |
createInstanceOf(java.lang.Class type)
Create a new persistant instance of the given type. |
void |
deleteInstance(java.lang.Object object)
Delete an object. |
java.util.List |
findAllInstancesOf(java.lang.Class type,
boolean excludeSubclasses)
Return a List of all objects of the given type.If no object is found, an empty List is returned. |
java.lang.Object |
findInstanceOf(java.lang.Class type,
java.lang.Object objectId)
Return the existing object of the specified type with the given id. If no object is found, null is returned. |
java.lang.Object |
findInstanceOf(java.lang.Class type,
java.lang.String referenceableName)
Return the existing object of the specified type with the given referenceableName. Referenceable names are names that are more durable than the persistence tool object id, and are suitable for explicit referencing by remote applications. |
java.lang.Object |
getIdentityOf(java.lang.Object object)
|
static SessionFactory |
getSessionFactory()
|
void |
rollbackSession()
Rollback the current session. |
| Methods inherited from class com.vinculumtech.platform.root.PersistenceSession |
findAllInstancesOf, findInstanceOf, getReferenceableNameField, getReferenceableNameOf |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String MAPPING_FILE
| Constructor Detail |
public HibernatePersistenceSession()
| Method Detail |
public static SessionFactory getSessionFactory()
public void beginSession(boolean readOnly)
PersistenceSessionThread.
beginSession in class PersistenceSessionreadOnly - Specifies whether this session will make modifications to domain objects or notpublic void rollbackSession()
PersistenceSession
rollbackSession in class PersistenceSessionpublic void commitSession()
PersistenceSession
commitSession in class PersistenceSession
public java.lang.Object findInstanceOf(java.lang.Class type,
java.lang.Object objectId)
PersistenceSession
findInstanceOf in class PersistenceSessiontype - objectId -
public java.lang.Object findInstanceOf(java.lang.Class type,
java.lang.String referenceableName)
PersistenceSessionPersistenceSession.REFERENCEABLE_NAME_FIELD when searching
for the applicable object. Or it should use a custom naming scheme.
findInstanceOf in class PersistenceSessiontype - referenceableName -
public java.util.List findAllInstancesOf(java.lang.Class type,
boolean excludeSubclasses)
PersistenceSessionList of all objects of the given type.
findAllInstancesOf in class PersistenceSessiontype -
public java.lang.Object createInstanceOf(java.lang.Class type)
PersistenceSession
createInstanceOf in class PersistenceSessiontype -
public void deleteInstance(java.lang.Object object)
PersistenceSession
deleteInstance in class PersistenceSessionobject - public java.lang.Object getIdentityOf(java.lang.Object object)
getIdentityOf in class PersistenceSession
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||