wt.dataops.objectcol.resolution
Class AttrQueryProcessor

java.lang.Object
  extended bywt.dataops.objectcol.resolution.AbsResolutionProcessor
      extended bywt.dataops.objectcol.resolution.BaseQueryProcessor
          extended bywt.dataops.objectcol.resolution.AttrQueryProcessor
All Implemented Interfaces:
CollectionQueryProcessor, Externalizable, ResolutionProcessor, Serializable
Direct Known Subclasses:
CreatedBetweenDatesAttrDelegate, VersionAtMaturityAttrQueryDelegate

public class AttrQueryProcessor
extends BaseQueryProcessor
implements Externalizable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private  String attrName
           
private static String CLASSNAME
           
static long EXTERNALIZATION_VERSION_UID
           
protected static long OLD_FORMAT_VERSION_UID
           
private  String operator
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
private  List values
           
 
Fields inherited from class wt.dataops.objectcol.resolution.AbsResolutionProcessor
 
Constructor Summary
AttrQueryProcessor()
           
 
Method Summary
protected  QuerySpec appendAttrSearchCondition(QuerySpec spec, LogicalOperator operator)
           
private  void attrNameValidate(String a_AttrName)
           
protected  SearchCondition[][] createAttrSearchCondition(List classes)
           
protected  SearchCondition[][] createAttrSearchCondition(List classes, Persistable[] pvalues)
           
protected  SearchCondition[][] createAttrSearchCondition(List classes, String[] strvalues)
           
protected  SearchCondition createSearchConditionWithCorrectType(Class clz, String attrName, Class attrType, String attrValue)
           
 String getAttrName()
          Gets the value of the attribute: attrName.
 String getOperator()
          Gets the value of the attribute: operator.
protected  Class getTypeOfAttr(Class clz, String attrName)
           
 List getValues()
          Gets the value of the attribute: values.
 void initialize(String attrName, String operator, List values)
          

Supported API: false
private  void operatorValidate(String a_Operator)
           
 StatementSpecHolder[] process(StatementSpecHolder[] specs, LogicalOperator operator)
          

Supported API: false
 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(AttrQueryProcessor thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void setAttrName(String a_AttrName)
          Sets the value of the attribute: attrName.
 void setOperator(String a_Operator)
          Sets the value of the attribute: operator.
 void setValues(List a_Values)
          Sets the value of the attribute: values.
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class wt.dataops.objectcol.resolution.BaseQueryProcessor
initialize, readVersion
 
Methods inherited from class wt.dataops.objectcol.resolution.AbsResolutionProcessor
getInputMap, getInputs, readVersion, setInputMap, setInputs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface wt.dataops.objectcol.resolution.ResolutionProcessor
getInputMap, setInputMap
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

attrName

private String attrName

operator

private String operator

values

private List values

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values
Constructor Detail

AttrQueryProcessor

public AttrQueryProcessor()
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class BaseQueryProcessor
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class BaseQueryProcessor
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(AttrQueryProcessor thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

getAttrName

public String getAttrName()
Gets the value of the attribute: attrName.

Supported API: false

Returns:
String

setAttrName

public void setAttrName(String a_AttrName)
                 throws WTPropertyVetoException
Sets the value of the attribute: attrName.

Supported API: false

Parameters:
a_AttrName -
Throws:
WTPropertyVetoException

attrNameValidate

private void attrNameValidate(String a_AttrName)
                       throws WTPropertyVetoException
Parameters:
a_AttrName -
Throws:
WTPropertyVetoException

getOperator

public String getOperator()
Gets the value of the attribute: operator.

Supported API: false

Returns:
String

setOperator

public void setOperator(String a_Operator)
                 throws WTPropertyVetoException
Sets the value of the attribute: operator.

Supported API: false

Parameters:
a_Operator -
Throws:
WTPropertyVetoException

operatorValidate

private void operatorValidate(String a_Operator)
                       throws WTPropertyVetoException
Parameters:
a_Operator -
Throws:
WTPropertyVetoException

getValues

public List getValues()
Gets the value of the attribute: values.

Supported API: false

Returns:
List

setValues

public void setValues(List a_Values)
               throws WTPropertyVetoException
Sets the value of the attribute: values.

Supported API: false

Parameters:
a_Values -
Throws:
WTPropertyVetoException

initialize

public void initialize(String attrName,
                       String operator,
                       List values)
                throws WTException


Supported API: false

Parameters:
attrName -
operator -
values -
Throws:
WTException

process

public StatementSpecHolder[] process(StatementSpecHolder[] specs,
                                     LogicalOperator operator)
                              throws WTException,
                                     QueryException
Description copied from class: BaseQueryProcessor


Supported API: false

Specified by:
process in interface CollectionQueryProcessor
Overrides:
process in class BaseQueryProcessor
Parameters:
specs -
operator -
Returns:
StatementSpecHolder[]
Throws:
QueryException
WTException

appendAttrSearchCondition

protected QuerySpec appendAttrSearchCondition(QuerySpec spec,
                                              LogicalOperator operator)
                                       throws WTException
Throws:
WTException

createAttrSearchCondition

protected SearchCondition[][] createAttrSearchCondition(List classes)
                                                 throws WTException
Throws:
WTException

createAttrSearchCondition

protected SearchCondition[][] createAttrSearchCondition(List classes,
                                                        String[] strvalues)
                                                 throws WTException
Throws:
WTException

createAttrSearchCondition

protected SearchCondition[][] createAttrSearchCondition(List classes,
                                                        Persistable[] pvalues)
                                                 throws WTException
Throws:
WTException

getTypeOfAttr

protected Class getTypeOfAttr(Class clz,
                              String attrName)

createSearchConditionWithCorrectType

protected SearchCondition createSearchConditionWithCorrectType(Class clz,
                                                               String attrName,
                                                               Class attrType,
                                                               String attrValue)
                                                        throws WTException
Throws:
WTException