|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.batch.AbstractBatchSpec
This class specifies the contract for processing multiple row update
and delete operations.
Supported API: true
Extendable: false
Field Summary | |
private boolean |
chunkingEnabled
|
private static String |
CLASSNAME
|
static boolean |
DEBUG
|
static long |
EXTERNALIZATION_VERSION_UID
|
private static String |
ID_UPDATE_COUNT_SELECT_LIST
|
private static DebugWriter |
LOG
|
private static String |
OID_COLUMN_ALIAS
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private ClassTableExpression |
target
|
private static String |
UPDATE_COUNT_COLUMN_ALIAS
|
private WhereExpression |
where
|
Constructor Summary | |
AbstractBatchSpec()
This constructor initializes the instance. |
|
AbstractBatchSpec(ClassTableExpression a_target,
WhereExpression a_where)
This constructor initializes the instance. |
Method Summary | |
void |
appendWhere(WhereExpression a_where,
LogicalOperator a_logicalOperator)
Appends the WhereExpression to the WHERE clause. |
void |
appendWhere(WTCollection a_objects,
boolean a_checkUpdateCount,
LogicalOperator a_logicalOperator)
This method appends a WhereEpression to include the specified objects by object ID. |
private static QuerySpec |
buildIdUpdateCountQuerySpec(Class a_targetClass,
WTCollection a_targetObjects,
boolean a_useColumnList)
|
private static SubSelectExpression |
buildIdUpdateCountSubSelectExpression(WTCollection a_targetObjects,
boolean a_useColumnList)
|
private static ArrayTableExpression |
buildIdUpdateCountTableExpression(WTCollection a_targetObjects,
long[] a_idValues)
|
private static WhereExpression |
buildIdUpdateCountWhereExpression(Class a_targetClass,
Persistable a_targetObject)
|
ClassTableExpression |
getTarget()
Gets the value of the attribute: target; The target of the operation. |
WhereExpression |
getWhere()
Gets the value of the attribute: where; Criteria to use for the operation. |
boolean |
isChunkingEnabled()
Gets the value of the attribute: chunkingEnabled. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(AbstractBatchSpec thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setChunkingEnabled(boolean a_ChunkingEnabled)
Sets the value of the attribute: chunkingEnabled. |
void |
setTarget(ClassTableExpression a_Target)
Sets the value of the attribute: target; The target of the operation. |
void |
setWhere(WhereExpression a_Where)
Sets the value of the attribute: where; Criteria to use for the operation. |
private void |
targetValidate(ClassTableExpression a_Target)
|
private void |
validate(WhereExpression a_where)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private ClassTableExpression target
private WhereExpression where
private boolean chunkingEnabled
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
public static final boolean DEBUG
private static final DebugWriter LOG
private static final String OID_COLUMN_ALIAS
private static final String UPDATE_COUNT_COLUMN_ALIAS
private static final String ID_UPDATE_COUNT_SELECT_LIST
Constructor Detail |
public AbstractBatchSpec()
public AbstractBatchSpec(ClassTableExpression a_target, WhereExpression a_where) throws WTPropertyVetoException
a_target
- Target of the operation.a_where
- Criteria to use for the operation.
WTPropertyVetoException
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(AbstractBatchSpec thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public ClassTableExpression getTarget()
public void setTarget(ClassTableExpression a_Target) throws WTPropertyVetoException
a_Target
-
WTPropertyVetoException
private void targetValidate(ClassTableExpression a_Target) throws WTPropertyVetoException
a_Target
-
WTPropertyVetoException
public WhereExpression getWhere()
public void setWhere(WhereExpression a_Where) throws WTPropertyVetoException
a_Where
-
WTPropertyVetoException
public boolean isChunkingEnabled()
public void setChunkingEnabled(boolean a_ChunkingEnabled)
a_ChunkingEnabled
- public void appendWhere(WhereExpression a_where, LogicalOperator a_logicalOperator) throws WTPropertyVetoException
a_where
- The WhereExpression to append.a_logicalOperator
- The logical operator to use when appending, if there is an existing Where expression.
WTPropertyVetoException
public void appendWhere(WTCollection a_objects, boolean a_checkUpdateCount, LogicalOperator a_logicalOperator) throws WTException, WTPropertyVetoException
a_objects
- Objects to build expression fora_checkUpdateCount
- If true, then the update counts of the objects are included in the criteria.a_logicalOperator
- The logical operator to use when appending, if there is an existing Where expression.
WTException
WTPropertyVetoException
private static SubSelectExpression buildIdUpdateCountSubSelectExpression(WTCollection a_targetObjects, boolean a_useColumnList) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
private static QuerySpec buildIdUpdateCountQuerySpec(Class a_targetClass, WTCollection a_targetObjects, boolean a_useColumnList) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
private static ArrayTableExpression buildIdUpdateCountTableExpression(WTCollection a_targetObjects, long[] a_idValues) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
private static WhereExpression buildIdUpdateCountWhereExpression(Class a_targetClass, Persistable a_targetObject) throws WTException
WTException
private void validate(WhereExpression a_where) throws WTPropertyVetoException
WTPropertyVetoException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |