|
Oracle Application Server TopLink API Reference 10g Release 2 (10.1.2) B15903-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.toplink.queryframework.DatabaseQuery
oracle.toplink.queryframework.DoesExistQuery
Purpose: This should only be used by the descriptor, this should not be executed directly. Used to determine if an object resides on the database. DoesExistQuery is normally used to determine whether to make an update or insert statement when writing an object.
Responsibilities: Verify the existence of an object. Used only by a write object query.
Field Summary |
Fields inherited from class oracle.toplink.queryframework.DatabaseQuery |
CascadeAggregateDelete, CascadeAllParts, CascadeDependentParts, CascadePrivateParts, NoCascading, QUERY_PREPARE |
Constructor Summary | |
DoesExistQuery() PUBLIC: Initialize the state of the query . |
|
DoesExistQuery(java.lang.Object object) PUBLIC: Create a query to check if the object exists. |
Method Summary | |
void |
assumeExistenceForDoesExist() PUBLIC: Assume that if the objects primary key does not include null then it must exist. |
void |
assumeNonExistenceForDoesExist() PUBLIC: Assume that the object does not exist. |
void |
checkCacheForDoesExist() PUBLIC: Assume that if the objects primary key does not include null and it is in the cache, then is must exist. |
void |
checkDatabaseForDoesExist() PUBLIC: Perform does exist check on the database through slecting the primary key. |
java.lang.Object |
getObject() PUBLIC: Return the object. |
java.lang.Class |
getReferenceClass() Return the domain class associated with this query. |
void |
setObject(java.lang.Object object) PUBLIC: Set the object. |
boolean |
shouldAssumeExistenceForDoesExist() PUBLIC: Returns true if the does exist check should be based only on whether the primary key of the object is set |
boolean |
shouldAssumeNonExistenceForDoesExist() PUBLIC: Returns true if the does exist check should assume non existence. |
boolean |
shouldCheckCacheForDoesExist() PUBLIC: Returns true if the does exist check should be based only on a cache check. |
boolean |
shouldCheckDatabaseForDoesExist() PUBLIC: Returns true if the does exist check should query the database. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DoesExistQuery()
public DoesExistQuery(java.lang.Object object)
Method Detail |
public void assumeExistenceForDoesExist()
public void assumeNonExistenceForDoesExist()
public void checkCacheForDoesExist()
public void checkDatabaseForDoesExist()
public java.lang.Object getObject()
public java.lang.Class getReferenceClass()
getReferenceClass
in class DatabaseQuery
public void setObject(java.lang.Object object)
public boolean shouldAssumeExistenceForDoesExist()
public boolean shouldAssumeNonExistenceForDoesExist()
public boolean shouldCheckCacheForDoesExist()
public boolean shouldCheckDatabaseForDoesExist()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |