|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.sdsc.inca.depot.persistent.DAO edu.sdsc.inca.depot.persistent.InstanceInfoDAO
public class InstanceInfoDAO
This class transfers InstanceInfo objects between memory and the DB.
Field Summary |
---|
Fields inherited from class edu.sdsc.inca.depot.persistent.DAO |
---|
logger |
Constructor Summary | |
---|---|
InstanceInfoDAO()
|
Method Summary | |
---|---|
static InstanceInfo |
load(java.lang.Long id)
Returns an InstanceInfo object from the DB with the id specified, null if no such object appears in the DB. |
static InstanceInfo |
loadOrSave(InstanceInfo ii)
Returns an InstanceInfo object from the DB with the same field values as one specified, or the saved version of the specified object if no such object appears in the DB. |
static InstanceInfo |
update(InstanceInfo ii)
A wrapper around DAO.update that handles the necessary casting. |
Methods inherited from class edu.sdsc.inca.depot.persistent.DAO |
---|
save, selectMultiple, selectUnique, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InstanceInfoDAO()
Method Detail |
---|
public static InstanceInfo load(java.lang.Long id) throws PersistenceException
id
- the id of the object to be retrieved
PersistenceException
- on errpublic static InstanceInfo loadOrSave(InstanceInfo ii) throws PersistenceException
ii
- an object that contains field values used in the retrieval
PersistenceException
- on errpublic static InstanceInfo update(InstanceInfo ii) throws PersistenceException
ii
- the object to update
PersistenceException
- on error
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |