wt.pds
Class CompoundResultBuilder

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

public class CompoundResultBuilder
extends AbstractCompoundResultBuilder
implements Externalizable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private  int currentIndex
           
static long EXTERNALIZATION_VERSION_UID
           
private static int INDEX_OFFSET
           
private  int itemStartOffset
           
protected static long OLD_FORMAT_VERSION_UID
           
private static String RESOURCE
           
private  ResultBuilder resultBuilder
           
(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
CompoundResultBuilder()
           
 
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 getCurrentIndex()
          Gets the value of the attribute: currentIndex.
 int getItemStartOffset()
          Gets the value of the attribute: itemStartOffset.
 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(CompoundResultBuilder 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 setCurrentIndex(int a_CurrentIndex)
          Sets the value of the attribute: currentIndex.
 void setItemStartOffset(int a_ItemStartOffset)
          Sets the value of the attribute: itemStartOffset.
 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, getCurrentResultBuilder, getItemBuilders, getItemPrimaryClass, getObjectTable, isDescendantQueryTypeCompatible, readVersion, setAccessControllerProcessor, setAttributeMapInfo, setCurrentResultBuilder, setCurrentResultBuilder, setNonEmptyComponentIndex, 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

itemStartOffset

private transient int itemStartOffset

currentIndex

private transient int currentIndex

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

INDEX_OFFSET

private static final int INDEX_OFFSET
See Also:
Constant Field Values

resultBuilder

private transient ResultBuilder resultBuilder
Constructor Detail

CompoundResultBuilder

public CompoundResultBuilder()
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(CompoundResultBuilder 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

getItemStartOffset

public int getItemStartOffset()
Gets the value of the attribute: itemStartOffset.

Supported API: false

Returns:
int

setItemStartOffset

public void setItemStartOffset(int a_ItemStartOffset)
Sets the value of the attribute: itemStartOffset.

Supported API: false

Specified by:
setItemStartOffset in interface ResultBuilder
Overrides:
setItemStartOffset in class AbstractCompoundResultBuilder
Parameters:
a_ItemStartOffset -

getCurrentIndex

public int getCurrentIndex()
Gets the value of the attribute: currentIndex.

Supported API: false

Overrides:
getCurrentIndex in class AbstractCompoundResultBuilder
Returns:
int

setCurrentIndex

public void setCurrentIndex(int a_CurrentIndex)
Sets the value of the attribute: currentIndex.

Supported API: false

Overrides:
setCurrentIndex in class AbstractCompoundResultBuilder
Parameters:
a_CurrentIndex -

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