|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
beginTransaction()
Begin a transaction. |
void |
close()
Close the connection. |
void |
commit()
Commit the transaction. |
void |
create(Object anObject)
Create a new object. |
void |
create(Object anObject,
boolean isDeepCreate)
Create a new object. |
Collection |
getObjects(ObjectQuery aQuery)
Get all objects for the given query object. |
Collection |
getObjects(String aQueryString)
Get all objects for the given query string. |
ObjectQuery |
getQuery(String anOQLQueryString)
Gets the query object for a given query. |
boolean |
isPersistent(Object anObject)
Is this object recognized by the current transaction. |
Object |
load(Class type,
Object identity)
Load the specified instance. |
void |
remove(Object anObject)
Remove the object. |
void |
rollback()
Rollback the transaction. |
void |
setDefaultDeepOrShallow(boolean isDeep)
Specifies if upcoming transactions will perform deep or shallow updates and creates. |
void |
update(Object anObject)
Update the object state. |
void |
update(Object anObject,
boolean isDeepUpdate)
Update the object state. |
boolean |
validateTransaction()
|
Method Detail |
public void update(Object anObject, boolean isDeepUpdate) throws PersistenceException
isDeepUpdate
- If true then navigate the object graph and mark the root and all
children to be updated. Otherwise, update only the root object.
PersistenceException
public void create(Object anObject, boolean isDeepCreate) throws PersistenceException
isDeepCreate
- If true then navigate the object graph and mark the root and all
children to be created. Otherwise, create only the root object.
PersistenceException
public void setDefaultDeepOrShallow(boolean isDeep) throws PersistenceException
PersistenceException
public void update(Object anObject) throws PersistenceException
PersistenceException
public void create(Object anObject) throws PersistenceException
PersistenceException
public boolean isPersistent(Object anObject) throws PersistenceException
PersistenceException
public Object load(Class type, Object identity) throws PersistenceException
type
- the class type to populate and returnidentity
- the primary key used to identify the instance (note that complex
primary keys will be supported in a future release)
PersistenceException
public void close() throws PersistenceException
PersistenceException
public void remove(Object anObject) throws PersistenceException
PersistenceException
public Collection getObjects(String aQueryString) throws PersistenceException
PersistenceException
public Collection getObjects(ObjectQuery aQuery) throws PersistenceException
aQuery
- The query object to use for the query.
PersistenceException
public void beginTransaction() throws PersistenceException
PersistenceException
public void commit() throws PersistenceException
PersistenceException
public void rollback() throws PersistenceException
PersistenceException
public ObjectQuery getQuery(String anOQLQueryString) throws PersistenceException
PersistenceException
public boolean validateTransaction() throws PersistenceException
PersistenceException
|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |