public abstract class DatabaseQuery extends Object implements Cloneable, Serializable, FalseUndefinedTrue
Purpose: Abstract class for all database query objects. DatabaseQuery is a visible class to the TopLink user. Users create an appropriate query by creating an instance of a concrete subclasses of DatabaseQuery.
Responsibilities:
Modifier and Type | Field and Description |
---|---|
protected Accessor |
accessor
Connection to use for database access, required for server session connection pooling.
|
protected Vector |
arguments
Arguments can be given and specified to predefined queries to allow reuse.
|
protected Vector |
argumentTypeNames
Used to build a list of argumentTypes by name pre-initialization
|
protected Vector |
argumentTypes
Needed to differentiate queries with the same name.
|
protected Vector |
argumentValues
Arguments values can be given and specified to predefined queries to allow reuse.
|
static int |
CascadeAggregateDelete |
static int |
CascadeAllParts |
static int |
CascadeByMapping |
static int |
CascadeDependentParts |
protected int |
cascadePolicy
Policy that determines how the query will cascade to its object's parts.
|
static int |
CascadePrivateParts |
protected ClassDescriptor |
descriptor
The descriptor cached on the prepare for object level queries.
|
protected Boolean |
flushOnExecute |
protected boolean |
isPrepared
Queries prepare common stated in themselves.
|
protected boolean |
isUserDefined
Internal flag used to bypass user define queries when executing one for custom sql/query support.
|
protected String |
name
Queries can be given a name and registered with a descriptor to allow common queries to be reused.
|
static int |
NoCascading |
protected Hashtable |
properties
Internallay used by the mappings as a temporary store.
|
protected DatabaseQueryMechanism |
queryMechanism
The query mechanism determines the mechanism on how the database will be accessed.
|
protected AbstractSession |
session
Only used after the query is prepared to store the session under which the query was executed.
|
protected String |
sessionName
Used to override the default session in the session broker.
|
protected int |
shouldBindAllParameters
Bind all arguments to the SQL statement.
|
protected int |
shouldCacheStatement
Cache the prepared statement, this requires full parameter binding as well.
|
protected boolean |
shouldCloneCall
Used to indicate whether or not the call needs to be cloned.
|
protected boolean |
shouldMaintainCache
Flag used for a query to bypass the identitymap and unit of work.
|
protected boolean |
shouldPrepare
Allow for the prepare of queries to be turned off, this allow for dynamic non-pre SQL generated queries.
|
protected boolean |
shouldUseWrapperPolicy
Use the WrapperPolicy for the objects returned by the query
|
protected AbstractRecord |
translationRow
Mappings and the descriptor use parameterized mechanisms that will be translated with the data from the row.
|
False, True, Undefined
Constructor and Description |
---|
DatabaseQuery()
PUBLIC:
Initialize the state of the query
|
Modifier and Type | Method and Description |
---|---|
void |
addArgument(String argumentName)
PUBLIC:
Add the argument named argumentName.
|
void |
addArgument(String argumentName,
Class type)
PUBLIC:
Add the argument named argumentName and its class type.
|
void |
addArgument(String argumentName,
String typeAsString)
PUBLIC:
Add the argument named argumentName and its class type.
|
void |
addArgumentByTypeName(String argumentName,
String typeAsString)
INTERNAL:
Add an argument to the query, but do not resovle the class yet.
|
void |
addArgumentValue(Object argumentValue)
PUBLIC:
Add the argumentValue.
|
void |
addArgumentValues(Vector theArgumentValues)
PUBLIC:
Add the argumentValues to the query.
|
void |
addCall(Call call)
PUBLIC:
Used to define a store procedure or SQL query.
|
void |
addStatement(SQLStatement statement)
PUBLIC:
Used to define a statement level query.
|
void |
bindAllParameters()
PUBLIC:
Bind all arguments to any SQL statement.
|
protected void |
buildSelectionCriteria(AbstractSession session)
INTERNAL:
In the case of EJBQL, an expression needs to be generated.
|
void |
cacheStatement()
PUBLIC:
Cache the prepared statements, this requires full parameter binding as well.
|
void |
cascadeAllParts()
PUBLIC:
Cascade the query and its properties on the queries object(s) and all objects related to the queries object(s).
|
void |
cascadeByMapping()
PUBLIC:
Cascade the query and its properties on the queries object(s) and all related objects where the mapping has
been set to cascade the merge.
|
void |
cascadeOnlyDependentParts()
INTERNAL:
Used by unit of work, only cascades constraint dependecies.
|
void |
cascadePrivateParts()
PUBLIC:
Cascade the query and its properties on the queries object(s)
and all privately owned objects related to the queries object(s).
|
void |
checkDescriptor(AbstractSession session)
INTERNAL:
Ensure that the descriptor has been set.
|
Object |
checkEarlyReturn(AbstractSession session,
AbstractRecord translationRow)
INTERNAL:
Check to see if this query already knows the return vale without preforming any further work.
|
protected DatabaseQuery |
checkForCustomQuery(AbstractSession session,
AbstractRecord translationRow)
INTERNAL:
Check to see if a custom query should be used for this query.
|
void |
checkPrepare(AbstractSession session,
AbstractRecord translationRow)
INTERNAL:
Check to see if this query needs to be prepare and prepare it.
|
Object |
clone()
INTERNAL:
Clone the query
|
protected void |
clonedQueryExecutionComplete(DatabaseQuery query,
AbstractSession session)
INTERNAL
Used to give the subclasses oportunity to copy aspects of the cloned query
to the original query.
|
void |
convertClassNamesToClasses(ClassLoader classLoader)
INTERNAL:
Convert all the class-name-based settings in this query to actual class-based
settings
This method is implemented by subclasses as necessary.
|
void |
deploymentSetShouldMaintainCache(int maintainCache)
INTERNAL:
Added for backwards compatibility.
|
int |
deploymentShouldMaintainCache()
INTERNAL:
Added for backwards compatibility.
|
void |
dontBindAllParameters()
PUBLIC:
Do not Bind all arguments to any SQL statement.
|
void |
dontCacheStatement()
PUBLIC:
Dont cache the prepared statements, this requires full parameter binding as well.
|
void |
dontCascadeParts()
PUBLIC:
Do not cascade the query and its properties on the queries object(s) relationships.
|
void |
dontMaintainCache()
PUBLIC:
Set for the identity map (cache) to be ignored completely.
|
Object |
execute(AbstractSession session,
AbstractRecord translationRow)
INTERNAL:
Execute the query.
|
abstract Object |
executeDatabaseQuery()
INTERNAL:
Execute the query
|
Object |
executeInUnitOfWork(UnitOfWorkImpl unitOfWork,
AbstractRecord translationRow)
INTERNAL:
Override query execution where Session is a UnitOfWork.
|
Accessor |
getAccessor()
INTERNAL:
Return the accessor.
|
Vector |
getArguments()
INTERNAL:
Return the arguments for use with the pre-defined query option
|
Vector |
getArgumentTypeNames()
INTERNAL:
Return the argumentTypeNames for use with the pre-defined query option
These are used pre-initialization to construct the argumentTypes list.
|
Vector |
getArgumentTypes()
INTERNAL:
Return the argumentTypes for use with the pre-defined query option
|
Vector |
getArgumentValues()
INTERNAL:
Return the argumentValues for use with the
pre-defined query option
|
DatabaseCall |
getCall()
INTERNAL:
Return the call for this query.
|
int |
getCascadePolicy()
INTERNAL:
Return the cascade policy.
|
Call |
getDatasourceCall()
ADVANCED:
Return the call for this query.
|
List |
getDatasourceCalls()
ADVANCED:
Return the calls for this query.
|
ClassDescriptor |
getDescriptor()
INTERNAL:
Return the descriptor assigned with the reference class
|
String |
getEJBQLString()
PUBLIC:
Return the SQL string of the query.
|
Boolean |
getFlushOnExecute()
PUBLIC:
If executed against a RepeatableWriteUnitOfWork if this attribute is true
TopLink will write changes to the database before executing the query.
|
String |
getName()
PUBLIC:
Return the name of the query
|
Hashtable |
getProperties()
INTERNAL:
Property support for use by mappings.
|
Object |
getProperty(Object property)
INTERNAL:
Property support used by mappings to stach temporary stuff in the query.
|
DatabaseQueryMechanism |
getQueryMechanism()
INTERNAL:
Return the mechanism assigned to the query
|
Class |
getReferenceClass()
PUBLIC:
Return the domain class associated with this query.
|
String |
getReferenceClassName()
INTERNAL:
return the name of the reference class.
|
Expression |
getSelectionCriteria()
PUBLIC:
Return the selection criteria of the query.
|
AbstractSession |
getSession()
INTERNAL:
Return the current session.
|
String |
getSessionName()
PUBLIC:
Return the name of the session that the query should be executed under.
|
int |
getShouldBindAllParameters()
INTERNAL:
Returns the internal tri-state calue of shouldBindParameters
used far cascading these settings
|
SQLStatement |
getSQLStatement()
PUBLIC:
Return the SQL statement of the query.
|
String |
getSQLString()
PUBLIC:
Return the SQL string of the query.
|
List |
getSQLStrings()
PUBLIC:
Return the SQL strings of the query.
|
String |
getTranslatedSQLString(Session session,
Record translationRow)
ADVANCED:
This can be used to access a queries translated SQL if they have been prepared, (i.e.
|
List |
getTranslatedSQLStrings(Session session,
Record translationRow)
ADVANCED:
This can be used to access a queries translated SQL if they have been prepared, (i.e.
|
AbstractRecord |
getTranslationRow()
INTERNAL:
Return the row for translation
|
boolean |
hasAccessor()
INTERNAL:
returns true if the accessor has already been set.
|
boolean |
hasProperties()
INTERNAL:
Return if any properties exist in the query.
|
boolean |
hasQueryMechanism()
INTERNAL:
Check if the mechanism has been set yet, used for lazy init.
|
boolean |
hasSessionName()
PUBLIC:
Return if a name of the session that the query should be executed under has been specified.
|
void |
ignoreBindAllParameters()
PUBLIC:
Session's shouldBindAllParameters() defines whether to bind or not
(default setting)
|
void |
ignoreCacheStatement()
PUBLIC:
Session's shouldCacheAllStatements() defines whether to cache or not
(default setting)
|
boolean |
isCallQuery()
PUBLIC:
Return true if this query uses an SQL or stored procedure, or SDK call.
|
boolean |
isCascadeOfAggregateDelete()
INTERNAL:
Returns true if this query has been created as the result of cascading a delete of an aggregate collection
in a UnitOfWork
CR 2811
|
boolean |
isDataModifyQuery()
PUBLIC:
Return if this is a data modify query.
|
boolean |
isDataReadQuery()
PUBLIC:
Return if this is a data read query.
|
boolean |
isDeleteAllQuery()
PUBLIC:
Return if this is a delete all query.
|
boolean |
isDeleteObjectQuery()
PUBLIC:
Return if this is a delete object query.
|
boolean |
isExpressionQuery()
PUBLIC:
Return true if this query uses an expression query mechanism
|
boolean |
isInsertObjectQuery()
PUBLIC:
Return true if this is an insert object query.
|
boolean |
isModifyAllQuery()
PUBLIC:
Return true if this is a modify all query.
|
boolean |
isModifyQuery()
PUBLIC:
Return true if this is a modify query.
|
boolean |
isObjectBuildingQuery()
PUBLIC:
Return if this is an object building query.
|
boolean |
isObjectLevelModifyQuery()
PUBLIC:
Return true if this is an object level modify query.
|
boolean |
isObjectLevelReadQuery()
PUBLIC:
Return true if this is an object level read query.
|
boolean |
isPrepared()
INTERNAL:
Queries are prepared when they are executed and then do not need to be
prepared on subsequent executions.
|
boolean |
isReadAllQuery()
PUBLIC:
Return true if this is a read all query.
|
boolean |
isReadObjectQuery()
PUBLIC:
Return ture if this is a read object query.
|
boolean |
isReadQuery()
PUBLIC:
Return true if this is a read query.
|
boolean |
isReportQuery()
PUBLIC:
Return true if this is a report query.
|
boolean |
isSQLCallQuery()
PUBLIC:
Return true if this query uses an SQL query mechanism .
|
boolean |
isUpdateAllQuery()
PUBLIC:
Return true if this is an update all query.
|
boolean |
isUpdateObjectQuery()
PUBLIC:
Return true if this is an update object query.
|
boolean |
isUserDefined()
INTERNAL:
Return true if the query is a custom user defined query.
|
boolean |
isWriteObjectQuery()
PUBLIC:
Return true if this is a write object query.
|
void |
maintainCache()
PUBLIC:
Set for the identity map (cache) to be maintained.
|
protected void |
prepare()
INTERNAL:
This is different from 'prepareForExecution' in that this is called on the original query,
and the other is called on the copy of the query.
|
void |
prepareCall(Session session,
Record translationRow)
ADVANCED:
Pre-generate the call/SQL for the query.
|
protected void |
prepareCustomQuery(DatabaseQuery customQuery)
INTERNAL:
Set the properties needed to be cascaded into the custom query.
|
void |
prepareForExecution()
INTERNAL:
Prepare the receiver for execution in a session.
|
protected void |
prepareForRemoteExecution() |
void |
removeProperty(Object property)
INTERNAL:
Property support used by mappings.
|
AbstractRecord |
rowFromArguments(Vector argumentValues)
INTERNAL:
Translate argumentValues into a database row.
|
void |
setAccessor(Accessor accessor)
INTERNAL:
Set the accessor, the query must always use the same accessor for database access.
|
void |
setArguments(Vector arguments)
INTERNAL:
Set the arguments for use with the pre-defined query option.
|
void |
setArgumentTypeNames(Vector argumentTypeNames)
INTERNAL:
Set the argumentTypes for use with the pre-defined query option
|
void |
setArgumentTypes(Vector argumentTypes)
INTERNAL:
Set the argumentTypes for use with the pre-defined query option
|
void |
setArgumentValues(Vector theArgumentValues)
INTERNAL:
Return the argumentValues for use with the
pre-defined query option
|
void |
setCall(Call call)
PUBLIC:
Used to define a store procedure or SQL query.
|
void |
setCascadePolicy(int policyConstant)
INTERNAL:
Set the cascade policy.
|
void |
setDatasourceCall(Call call)
PUBLIC:
Used to define a store procedure or SQL query.
|
void |
setDescriptor(ClassDescriptor descriptor)
INTERNAL:
Set the descriptor for the query.
|
void |
setEJBQLString(String ejbqlString)
PUBLIC:
To any user of this object.
|
void |
setFlushOnExecute(Boolean flushMode)
PUBLIC:
If executed against a RepeatableWriteUnitOfWork if this attribute is true
TopLink will write changes to the database before executing the query.
|
void |
setIsPrepared(boolean isPrepared)
INTERNAL:
If changes are made to the query that affect the derived SQL or Call
parameters the query needs to be prepared again.
|
void |
setIsUserDefined(boolean isUserDefined)
INTERNAL:
Set if the query is a custom user defined query.
|
void |
setName(String queryName)
PUBLIC:
Set the query's name.
|
void |
setProperties(Hashtable properties)
INTERNAL:
Property support used by mappings.
|
void |
setProperty(Object property,
Object value)
INTERNAL:
Property support used by mappings to stache temporary stuff.
|
protected void |
setQueryMechanism(DatabaseQueryMechanism queryMechanism)
Set the query mechanism for the query.
|
void |
setSelectionCriteria(Expression expression)
PUBLIC:
To any user of this object.
|
void |
setSession(AbstractSession session)
INTERNAL:
Set the session for the query
|
void |
setSessionName(String sessionName)
PUBLIC:
Set the name of the session that the query should be executed under.
|
void |
setShouldBindAllParameters(boolean shouldBindAllParameters)
PUBLIC:
Bind all arguments to any SQL statement.
|
void |
setShouldBindAllParameters(int bindAllParams)
INTERNAL:
Sets the internal tri-state value of shouldBindAllParams
Used to cascade this value to alther queries
|
void |
setShouldCacheStatement(boolean shouldCacheStatement)
PUBLIC:
Cache the prepared statements, this requires full parameter binding as well.
|
void |
setShouldMaintainCache(boolean shouldMaintainCache)
PUBLIC:
Set if the identity map (cache) should be used or not.
|
void |
setShouldPrepare(boolean shouldPrepare)
PUBLIC:
Set if the query should be prepared.
|
void |
setShouldUseWrapperPolicy(boolean shouldUseWrapperPolicy)
ADVANCED:
The wrapper policy can be enable on a query.
|
void |
setSQLStatement(SQLStatement sqlStatement)
PUBLIC:
To any user of this object.
|
void |
setSQLString(String sqlString)
PUBLIC:
To any user of this object.
|
void |
setTranslationRow(AbstractRecord translationRow)
INTERNAL:
Set the row for translation
|
boolean |
shouldBindAllParameters()
PUBLIC:
Bind all arguments to any SQL statement.
|
boolean |
shouldCacheStatement()
PUBLIC:
Cache the prepared statements, this requires full parameter binding as well.
|
boolean |
shouldCascadeAllParts()
PUBLIC:
Flag used to determine if all parts should be cascaded
|
boolean |
shouldCascadeByMapping()
PUBLIC:
Mappings should be checked to determined if the current operation should be
cascaded to the objects referenced.
|
boolean |
shouldCascadeOnlyDependentParts()
INTERNAL:
Flag used for unit of works cascade policy.
|
boolean |
shouldCascadeParts()
PUBLIC:
Flag used to determine if any parts should be cascaded
|
boolean |
shouldCascadePrivateParts()
PUBLIC:
Flag used to determine if any private parts should be cascaded
|
boolean |
shouldCloneCall()
INTERNAL:
Flag used to determine if the call needs to be cloned.
|
boolean |
shouldIgnoreBindAllParameters()
PUBLIC:
Local shouldBindAllParameters() should be ignored,
Session's shouldBindAllParameters() should be used.
|
boolean |
shouldIgnoreCacheStatement()
PUBLIC:
Local shouldCacheStatement() should be ignored,
Session's shouldCacheAllStatements() should be used.
|
boolean |
shouldMaintainCache()
PUBLIC:
Return if the identity map (cache) should be used or not.
|
boolean |
shouldPrepare()
PUBLIC:
Return if the query should be prepared.
|
boolean |
shouldUseWrapperPolicy()
ADVANCED:
The wrapper policy can be enabled on a query.
|
String |
toString() |
protected String name
protected Vector arguments
protected Vector argumentValues
protected Vector argumentTypes
protected Vector argumentTypeNames
protected transient ClassDescriptor descriptor
protected DatabaseQueryMechanism queryMechanism
protected boolean shouldMaintainCache
protected Hashtable properties
protected transient AbstractSession session
protected transient Accessor accessor
protected AbstractRecord translationRow
protected boolean isUserDefined
protected int cascadePolicy
protected String sessionName
protected boolean isPrepared
protected boolean shouldCloneCall
protected boolean shouldPrepare
protected int shouldBindAllParameters
protected int shouldCacheStatement
protected boolean shouldUseWrapperPolicy
public static final int NoCascading
public static final int CascadePrivateParts
public static final int CascadeAllParts
public static final int CascadeDependentParts
public static final int CascadeAggregateDelete
public static final int CascadeByMapping
protected Boolean flushOnExecute
public void addArgument(String argumentName)
public void addArgument(String argumentName, Class type)
public void addArgument(String argumentName, String typeAsString)
public void addArgumentByTypeName(String argumentName, String typeAsString)
public void addArgumentValue(Object argumentValue)
public void addArgumentValues(Vector theArgumentValues)
public void addCall(Call call)
public void addStatement(SQLStatement statement)
public void bindAllParameters()
protected void buildSelectionCriteria(AbstractSession session)
public void cacheStatement()
public void cascadeAllParts()
public void cascadeByMapping()
public void cascadeOnlyDependentParts()
public void cascadePrivateParts()
public void checkDescriptor(AbstractSession session) throws QueryException
QueryException
public Object checkEarlyReturn(AbstractSession session, AbstractRecord translationRow)
protected DatabaseQuery checkForCustomQuery(AbstractSession session, AbstractRecord translationRow)
public void checkPrepare(AbstractSession session, AbstractRecord translationRow)
protected void clonedQueryExecutionComplete(DatabaseQuery query, AbstractSession session)
public void convertClassNamesToClasses(ClassLoader classLoader)
classLoader
- public void deploymentSetShouldMaintainCache(int maintainCache)
public int deploymentShouldMaintainCache()
public void dontBindAllParameters()
public void dontCacheStatement()
public void dontCascadeParts()
public void dontMaintainCache()
public abstract Object executeDatabaseQuery() throws DatabaseException, OptimisticLockException
DatabaseException
- - an error has occurred on the database.OptimisticLockException
- - an error has occurred using the optimistic lock feature.public Object executeInUnitOfWork(UnitOfWorkImpl unitOfWork, AbstractRecord translationRow) throws DatabaseException, OptimisticLockException
If there are objects in the cache return the results of the cache lookup.
unitOfWork
- - the session in which the receiver will be executed.translationRow
- - the argumentsDatabaseException
- - an error has occurred on the database.OptimisticLockException
- - an error has occurred using the optimistic lock feature.public Object execute(AbstractSession session, AbstractRecord translationRow) throws DatabaseException, OptimisticLockException
session
- - the session in which the receiver will be executed.DatabaseException
- - an error has occurred on the database.OptimisticLockException
- - an error has occurred using the optimistic lock feature.public Accessor getAccessor()
public Vector getArguments()
public Vector getArgumentTypes()
public Vector getArgumentTypeNames()
public void setArgumentTypes(Vector argumentTypes)
public void setArgumentTypeNames(Vector argumentTypeNames)
public void setArguments(Vector arguments)
public Vector getArgumentValues()
public void setArgumentValues(Vector theArgumentValues)
public DatabaseCall getCall()
getDatasourceCall()
public Call getDatasourceCall()
#prepareCall(Session, DatabaseRow);
public List getDatasourceCalls()
#prepareCall(Session, DatabaseRow);
public int getCascadePolicy()
public ClassDescriptor getDescriptor()
public String getName()
public Hashtable getProperties()
public Object getProperty(Object property)
public DatabaseQueryMechanism getQueryMechanism()
public boolean hasQueryMechanism()
public Class getReferenceClass()
public String getReferenceClassName()
public Expression getSelectionCriteria()
public AbstractSession getSession()
public String getSessionName()
public SQLStatement getSQLStatement()
public String getEJBQLString()
#prepareCall(Session, DatabaseRow)
public String getSQLString()
#prepareCall(Session, DatabaseRow)
public List getSQLStrings()
#prepareCall(Session, DatabaseRow)
public int getShouldBindAllParameters()
public String getTranslatedSQLString(Session session, Record translationRow)
public List getTranslatedSQLStrings(Session session, Record translationRow)
#prepareCall(Session, DatabaseRow)
public AbstractRecord getTranslationRow()
public boolean hasAccessor()
public boolean hasProperties()
public boolean hasSessionName()
public void ignoreBindAllParameters()
public void ignoreCacheStatement()
public boolean isCallQuery()
public boolean isCascadeOfAggregateDelete()
public boolean isDataModifyQuery()
public boolean isDataReadQuery()
public boolean isDeleteAllQuery()
public boolean isDeleteObjectQuery()
public boolean isExpressionQuery()
public boolean isModifyAllQuery()
public boolean isModifyQuery()
public boolean isUpdateAllQuery()
public boolean isUpdateObjectQuery()
public Boolean getFlushOnExecute()
public boolean isInsertObjectQuery()
public boolean isObjectLevelModifyQuery()
public boolean isObjectLevelReadQuery()
public boolean isObjectBuildingQuery()
public boolean isPrepared()
public boolean isReadAllQuery()
public boolean isReadObjectQuery()
public boolean isReadQuery()
public boolean isReportQuery()
public boolean isSQLCallQuery()
public boolean isUserDefined()
public boolean isWriteObjectQuery()
public void maintainCache()
protected void prepare() throws QueryException
QueryException
public void prepareCall(Session session, Record translationRow) throws QueryException
protected void prepareCustomQuery(DatabaseQuery customQuery)
public void prepareForExecution() throws QueryException
QueryException
protected void prepareForRemoteExecution()
public void removeProperty(Object property)
public AbstractRecord rowFromArguments(Vector argumentValues) throws QueryException
QueryException
public void setAccessor(Accessor accessor)
public void setDatasourceCall(Call call)
public void setCall(Call call)
public void setCascadePolicy(int policyConstant)
public void setDescriptor(ClassDescriptor descriptor)
public void setEJBQLString(String ejbqlString)
public void setFlushOnExecute(Boolean flushMode)
public void setIsPrepared(boolean isPrepared)
Automatically called internally.
public void setIsUserDefined(boolean isUserDefined)
public void setName(String queryName)
public void setProperties(Hashtable properties)
public void setProperty(Object property, Object value)
protected void setQueryMechanism(DatabaseQueryMechanism queryMechanism)
public void setSelectionCriteria(Expression expression)
public void setSession(AbstractSession session)
public void setSessionName(String sessionName)
public void setShouldBindAllParameters(boolean shouldBindAllParameters)
public void setShouldBindAllParameters(int bindAllParams)
public void setShouldCacheStatement(boolean shouldCacheStatement)
public void setShouldMaintainCache(boolean shouldMaintainCache)
public void setShouldPrepare(boolean shouldPrepare)
These queries include:
public void setShouldUseWrapperPolicy(boolean shouldUseWrapperPolicy)
public void setSQLStatement(SQLStatement sqlStatement)
public void setSQLString(String sqlString)
public void setTranslationRow(AbstractRecord translationRow)
public boolean shouldBindAllParameters()
public boolean shouldCacheStatement()
public boolean shouldCascadeAllParts()
public boolean shouldCascadeByMapping()
public boolean shouldCascadeOnlyDependentParts()
public boolean shouldCascadeParts()
public boolean shouldCascadePrivateParts()
public boolean shouldCloneCall()
public boolean shouldIgnoreBindAllParameters()
public boolean shouldIgnoreCacheStatement()
public boolean shouldMaintainCache()
public boolean shouldPrepare()
These queries include:
public boolean shouldUseWrapperPolicy()
Copyright © 2023. All rights reserved.