|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-03 |
||||||||
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
public class 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 | |
---|---|
static int |
AssumeExistence
|
static int |
AssumeNonExistence
|
static int |
CheckCache
|
boolean |
checkCacheFirst
Flag to get checkearlyreturn to override assume(non)existence and database checks with a cache check |
static int |
CheckDatabase
|
Fields inherited from class oracle.toplink.queryframework.DatabaseQuery |
---|
CascadeAggregateDelete, CascadeAllParts, CascadeByMapping, CascadeDependentParts, CascadePrivateParts, NoCascading |
Constructor Summary | |
---|---|
DoesExistQuery()
Initialize the state of the query . |
|
DoesExistQuery(Call call)
Create a query to check if the object exists. |
|
DoesExistQuery(java.lang.Object object)
Create a query to check if the object exists. |
Method Summary | |
---|---|
void |
assumeExistenceForDoesExist()
Assume that if the objects primary key does not include null then it must exist. |
void |
assumeNonExistenceForDoesExist()
Assume that the object does not exist. |
void |
checkCacheForDoesExist()
Assume that if the objects primary key does not include null and it is in the cache, then is must exist. |
void |
checkDatabaseForDoesExist()
Perform does exist check on the database through selecting the primary key. |
java.lang.Object |
getObject()
Return the object. |
java.lang.Class |
getReferenceClass()
Return the domain class associated with this query. |
void |
setObject(java.lang.Object object)
Set the object. |
boolean |
shouldAssumeExistenceForDoesExist()
Returns true if the does exist check should be based only on whether the primary key of the object is set |
boolean |
shouldAssumeNonExistenceForDoesExist()
Returns true if the does exist check should assume non existence. |
boolean |
shouldCheckCacheForDoesExist()
Returns true if the does exist check should be based only on a cache check. |
boolean |
shouldCheckDatabaseForDoesExist()
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 |
Field Detail |
---|
public static final int AssumeNonExistence
public static final int AssumeExistence
public static final int CheckCache
public static final int CheckDatabase
public boolean checkCacheFirst
DoesExistQuery
Constructor Detail |
---|
public DoesExistQuery()
public DoesExistQuery(java.lang.Object object)
public DoesExistQuery(Call call)
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 |