|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.archiviststoolkit.mydomain.DomainAccessObjectImpl
org.archiviststoolkit.mydomain.DigitalObjectDAO
public class DigitalObjectDAO
Field Summary | |
---|---|
static int |
a
|
Constructor Summary | |
---|---|
DigitalObjectDAO()
Constructor which builds a DAO for this class. |
Method Summary | |
---|---|
java.util.Collection |
findAll(org.hibernate.LockMode lockmode,
java.lang.String... sortFields)
Method that finds all the parent digital objects |
java.util.Collection |
findAllCommon(org.hibernate.LockMode lockmode,
org.hibernate.Session session,
boolean closeSession,
org.hibernate.criterion.Criterion criterion,
java.lang.String... sortFields)
Method finds all parent digital object and accepts an additional criterion for searching |
java.util.Collection |
findAllLongSession(org.hibernate.LockMode lockmode,
java.lang.String... sortFields)
Method that finds all the parent digital objects using a long session |
java.util.Collection |
findAllUnlinked(org.hibernate.LockMode lockmode,
java.lang.String... sortFields)
Method that finds all parent digital objects that are not linked to any resource record |
DigitalObjects |
findByMetsIdentifier(DigitalObjects digitalObject)
Method to find a parent digital object by the METS identifier |
DigitalObjects |
findByMetsIdentifierCommon(DigitalObjects digitalObject,
boolean closeSession,
org.hibernate.Session session)
Method to find a parent digital object by the METS identifier |
DigitalObjects |
findByMetsIdentifierLongSession(DigitalObjects digitalObject)
Method to find a parent digital object by the METS identifier using a long seesion |
Resources |
findResourceByDigitalObject(ArchDescriptionDigitalInstances instance)
|
java.util.List |
lookupDigitalObjectByParent(DigitalObjects digitalObject)
|
java.util.List |
lookupDigitalObjectByParent(DigitalObjects digitalObject,
org.hibernate.Session session)
|
void |
updateFromDrop(java.lang.Long resourceComponentId,
java.lang.Long resourceParentId,
java.lang.Long resourceComponentParentId,
java.lang.Double componentOrder)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int a
Constructor Detail |
---|
public DigitalObjectDAO()
Method Detail |
---|
public java.util.List lookupDigitalObjectByParent(DigitalObjects digitalObject)
public java.util.List lookupDigitalObjectByParent(DigitalObjects digitalObject, org.hibernate.Session session)
public void updateFromDrop(java.lang.Long resourceComponentId, java.lang.Long resourceParentId, java.lang.Long resourceComponentParentId, java.lang.Double componentOrder)
public Resources findResourceByDigitalObject(ArchDescriptionDigitalInstances instance)
public DigitalObjects findByMetsIdentifier(DigitalObjects digitalObject) throws LookupException
digitalObject
- The digital object whose identifer to use to do the look up
LookupException
- Throws this exception is there was a problem finding the digital objectpublic DigitalObjects findByMetsIdentifierLongSession(DigitalObjects digitalObject) throws LookupException
digitalObject
- The digital object whose identifer to use to do the look up
LookupException
- Throws this exception is there was a problem finding the digital objectpublic DigitalObjects findByMetsIdentifierCommon(DigitalObjects digitalObject, boolean closeSession, org.hibernate.Session session) throws LookupException
digitalObject
- The digital object whose identifer to use to do the look upsession
- The session to use to find the digital objectcloseSession
- Whether to close the session after using it
LookupException
- Throws this exception is there was a problem finding the digital objectpublic java.util.Collection findAll(org.hibernate.LockMode lockmode, java.lang.String... sortFields) throws LookupException
findAll
in interface DomainAccessObject
findAll
in class DomainAccessObjectImpl
lockmode
- The lock mode to usesortFields
- fields to sort by
LookupException
- If there is a problem finding the digital objectspublic java.util.Collection findAllLongSession(org.hibernate.LockMode lockmode, java.lang.String... sortFields) throws LookupException
lockmode
- sortFields
-
LookupException
public java.util.Collection findAllUnlinked(org.hibernate.LockMode lockmode, java.lang.String... sortFields) throws LookupException
lockmode
- sortFields
-
LookupException
public java.util.Collection findAllCommon(org.hibernate.LockMode lockmode, org.hibernate.Session session, boolean closeSession, org.hibernate.criterion.Criterion criterion, java.lang.String... sortFields) throws LookupException
lockmode
- The lock modesession
- The sessioncloseSession
- Whether to close the session after seaching is donecriterion
- the additional criterion to addsortFields
- te field to sort by
LookupException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |