wt.pds
Class HomogeneousCompoundResultBuilder

java.lang.Object
  extended bywt.pds.AbstractCompoundResultBuilder
      extended bywt.pds.HomogeneousCompoundResultBuilder
All Implemented Interfaces:
Cloneable, Externalizable, ResultBuilder, Serializable

public class HomogeneousCompoundResultBuilder
extends AbstractCompoundResultBuilder
implements Externalizable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
static long EXTERNALIZATION_VERSION_UID
           
private  int nonEmptyComponentIndex
           
protected static long OLD_FORMAT_VERSION_UID
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
 
Fields inherited from class wt.pds.AbstractCompoundResultBuilder
 
Fields inherited from interface wt.pds.ResultBuilder
ACCESS_CONTROLLER_PROCESSOR, ATTRIBUTE_MAP_INFO, DESCENDANT_QUERY_TYPE_COMPATIBLE, ITEM_BUILDERS, OBJECT_TABLE
 
Constructor Summary
HomogeneousCompoundResultBuilder()
           
 
Method Summary
 Object[] build(ResultSet a_resultSet, StatementBuilder a_statementBuilder)
          Builds object from the result set.
 String buildSelect(Vector a_tableInfos, Vector a_aliases)
          Builds the select columns for the results.
 Object clone()
          Create a deep-copy of this object.
 int getNonEmptyComponentIndex()
          Gets the value of the attribute: nonEmptyComponentIndex.
 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(HomogeneousCompoundResultBuilder thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void reset()
          Resets the instance so that it can be re-used to process a new result.
 void setNonEmptyComponentIndex(int a_NonEmptyComponentIndex)
          Sets the value of the attribute: nonEmptyComponentIndex.
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class wt.pds.AbstractCompoundResultBuilder
addItemBuilder, getAccessControllerProcessor, getAttributeMapInfo, getCurrentIndex, getCurrentResultBuilder, getItemBuilders, getItemPrimaryClass, getObjectTable, isDescendantQueryTypeCompatible, readVersion, setAccessControllerProcessor, setAttributeMapInfo, setCurrentIndex, setCurrentResultBuilder, setCurrentResultBuilder, setItemStartOffset, setObjectTable
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

nonEmptyComponentIndex

private transient int nonEmptyComponentIndex

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

HomogeneousCompoundResultBuilder

public HomogeneousCompoundResultBuilder()
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 AbstractCompoundResultBuilder
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 AbstractCompoundResultBuilder
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(HomogeneousCompoundResultBuilder 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

getNonEmptyComponentIndex

public int getNonEmptyComponentIndex()
Gets the value of the attribute: nonEmptyComponentIndex.

Supported API: false

Returns:
int

setNonEmptyComponentIndex

public void setNonEmptyComponentIndex(int a_NonEmptyComponentIndex)
Sets the value of the attribute: nonEmptyComponentIndex.

Supported API: false

Specified by:
setNonEmptyComponentIndex in interface ResultBuilder
Overrides:
setNonEmptyComponentIndex in class AbstractCompoundResultBuilder
Parameters:
a_NonEmptyComponentIndex -

reset

public void reset()
Resets the instance so that it can be re-used to process a new result.

Supported API: false

Specified by:
reset in interface ResultBuilder
Overrides:
reset in class AbstractCompoundResultBuilder

buildSelect

public String buildSelect(Vector a_tableInfos,
                          Vector a_aliases)
                   throws PersistenceException
Builds the select columns for the results.

Supported API: false

Specified by:
buildSelect in interface ResultBuilder
Specified by:
buildSelect in class AbstractCompoundResultBuilder
Parameters:
a_tableInfos - Vector of TableExpression instances to use for building the Select statement
a_aliases - Vector of String aliases to use for building the Select statement
Returns:
String
Throws:
PersistenceException

build

public Object[] build(ResultSet a_resultSet,
                      StatementBuilder a_statementBuilder)
               throws PersistenceException
Builds object from the result set.

Supported API: false

Specified by:
build in interface ResultBuilder
Specified by:
build in class AbstractCompoundResultBuilder
Parameters:
a_resultSet -
a_statementBuilder -
Returns:
Object[]
Throws:
PersistenceException

clone

public Object clone()
Description copied from interface: ResultBuilder
Create a deep-copy of this object.

Specified by:
clone in interface ResultBuilder
Specified by:
clone in class AbstractCompoundResultBuilder