|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.pds.AttributeItemBuilder
This class provides the functionality for building a single attribute object from a result set.
The internal implementation uses the getObject() method of the ResultSet
class. If the selectOnly attribute is true, then the attribute is selected,
but the build() method does nothing.
Supported API: false
Extendable: false
Field Summary | |
private int[] |
classIndicies
|
private static String |
CLASSNAME
|
private boolean |
columnAliasEnabled
|
private ColumnExpression[] |
columns
|
static long |
EXTERNALIZATION_VERSION_UID
|
private Boolean |
isTimestamp
|
protected ObjectTable |
objectTable
|
private int |
offset
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
private ResultSet |
resultSet
|
private boolean |
selectOnly
|
(package private) static long |
serialVersionUID
|
private static ConstantExpression |
TIMESTAMP_FORMAT_EXPRESSION
|
private boolean |
timestampProcessingEnabled
|
Fields inherited from interface wt.pds.ItemBuilder |
ACCESS_CONTROLLED_FROM_INDICIES, COLUMNS, DESCENDANT_QUERY_TYPE_COMPATIBLE, FROM_INDICIES, ITEM_COUNT |
Constructor Summary | |
AttributeItemBuilder()
Supported API: false |
|
AttributeItemBuilder(ColumnExpression[] a_columns,
int[] a_classIndicies,
boolean a_selectOnly)
Supported API: false |
|
AttributeItemBuilder(ColumnExpression a_column1,
ColumnExpression a_column2,
int a_classIndex)
Supported API: false |
|
AttributeItemBuilder(int a_classIndex,
ColumnExpression a_column,
boolean a_selectOnly)
Supported API: false |
Method Summary | |
Object |
build()
Builds an object from the current row in the result set. |
static String[] |
buildAliases(Vector a_tableInfos,
Vector a_aliases,
int[] a_classIndicies,
ColumnExpression[] a_columns)
|
int |
buildEmptyAggregateColumn(AttributeMapInfo a_attributeMapInfo,
StringBuffer a_select)
Builds the select columns for building an object. |
int |
buildSelect(Vector a_tableInfos,
Vector a_aliases,
AttributeMapInfo a_attributeMapInfo,
StringBuffer a_select)
Builds the select columns for building an object. |
int |
createPersistentRetrieve(ResultSet a_resultSet,
ObjectTable a_objectTable,
int a_resultOffset,
AttributeMapInfo a_attributeMapInfo)
Creates the persistent retrieve object for this item. |
int[] |
getAccessControlledFromIndicies()
Gets the value of the attribute: accessControlledFromIndicies; Array of index values for items in the FromClause. |
ColumnExpression[] |
getColumns()
Gets the value of the attribute: columns; The columns that make up this item. |
int[] |
getFromIndicies()
Gets the value of the attribute: fromIndicies; Array of index values for items in the FromClause. |
int |
getItemCount()
Gets the value of the attribute: itemCount; Number of items that are built. |
protected String |
getJavaType()
|
protected int |
getOffset()
Gets the value of the attribute: offset; Offset of the item in the result set Supported API: false |
Class |
getPrimaryClass(Vector a_classInfos)
Returns the primary class for this Item. |
protected ResultSet |
getResultSet()
Gets the value of the attribute: resultSet. |
static Object |
getResultSetObject(ResultSet a_resultSet,
int a_index,
String a_javaType)
|
boolean |
isColumnAliasEnabled()
Gets the value of the attribute: columnAliasEnabled; Indicates if the column alias should be used (if present) Supported API: false |
boolean |
isDescendantQueryTypeCompatible()
Gets the value of the attribute: descendantQueryTypeCompatible; Indicates whether descendant query results will be guranteed to be type compatible (i.e. |
boolean |
isSelectOnly()
Gets the value of the attribute: selectOnly; Indicates if the item should be selected only and not built. |
boolean |
isTimestampProcessingEnabled()
Gets the value of the attribute: timestampProcessingEnabled; Indicates if the Timestamp processing should be enabled (only applicable to Timestamp attributes) Supported API: false |
static void |
processClassAttributes(Vector a_tableInfos,
Vector a_aliases,
int[] a_classIndicies,
ColumnExpression a_columnExpression)
|
protected boolean |
processTimestamp()
|
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(AttributeItemBuilder 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 |
setColumnAliasEnabled(boolean a_ColumnAliasEnabled)
Sets the value of the attribute: columnAliasEnabled; Indicates if the column alias should be used (if present) Supported API: false |
void |
setSelectOnly(boolean a_SelectOnly)
Sets the value of the attribute: selectOnly; Indicates if the item should be selected only and not built. |
void |
setTimeStampAttributeTimestampDisabled()
Set the DateExpression in the ItemBuilder to the TimstampEnabled to false Supported API: false |
void |
setTimestampProcessingEnabled(boolean a_TimestampProcessingEnabled)
Sets the value of the attribute: timestampProcessingEnabled; Indicates if the Timestamp processing should be enabled (only applicable to Timestamp attributes) Supported API: false |
String |
toString()
|
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, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private transient ResultSet resultSet
private boolean selectOnly
private ColumnExpression[] columns
private int[] classIndicies
private transient int offset
private boolean columnAliasEnabled
private boolean timestampProcessingEnabled
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final ConstantExpression TIMESTAMP_FORMAT_EXPRESSION
protected transient ObjectTable objectTable
private transient Boolean isTimestamp
Constructor Detail |
public AttributeItemBuilder()
public AttributeItemBuilder(int a_classIndex, ColumnExpression a_column, boolean a_selectOnly) throws WTPropertyVetoException
a_classIndex
- a_column
- a_selectOnly
-
WTPropertyVetoException
public AttributeItemBuilder(ColumnExpression[] a_columns, int[] a_classIndicies, boolean a_selectOnly) throws WTPropertyVetoException
a_columns
- a_classIndicies
- a_selectOnly
-
WTPropertyVetoException
public AttributeItemBuilder(ColumnExpression a_column1, ColumnExpression a_column2, int a_classIndex) throws WTPropertyVetoException
a_column1
- a_column2
- a_classIndex
-
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(AttributeItemBuilder 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
protected ResultSet getResultSet()
public boolean isSelectOnly()
public void setSelectOnly(boolean a_SelectOnly) throws WTPropertyVetoException
a_SelectOnly
-
WTPropertyVetoException
public ColumnExpression[] getColumns() throws WTException
getColumns
in interface ItemBuilder
WTException
protected int getOffset()
public boolean isColumnAliasEnabled()
public void setColumnAliasEnabled(boolean a_ColumnAliasEnabled) throws WTPropertyVetoException
a_ColumnAliasEnabled
-
WTPropertyVetoException
public boolean isTimestampProcessingEnabled()
public void setTimestampProcessingEnabled(boolean a_TimestampProcessingEnabled) throws WTPropertyVetoException
a_TimestampProcessingEnabled
-
WTPropertyVetoException
public int getItemCount()
getItemCount
in interface ItemBuilder
public boolean isDescendantQueryTypeCompatible()
isDescendantQueryTypeCompatible
in interface ItemBuilder
public int[] getAccessControlledFromIndicies()
getAccessControlledFromIndicies
in interface ItemBuilder
public int[] getFromIndicies()
getFromIndicies
in interface ItemBuilder
public int buildSelect(Vector a_tableInfos, Vector a_aliases, AttributeMapInfo a_attributeMapInfo, StringBuffer a_select) throws PersistenceException
buildSelect
in interface ItemBuilder
a_tableInfos
- a_aliases
- a_attributeMapInfo
- a_select
-
PersistenceException
public Object build() throws PersistenceException
build
in interface ItemBuilder
PersistenceException
public int createPersistentRetrieve(ResultSet a_resultSet, ObjectTable a_objectTable, int a_resultOffset, AttributeMapInfo a_attributeMapInfo) throws PersistenceException
createPersistentRetrieve
in interface ItemBuilder
a_resultSet
- a_objectTable
- a_resultOffset
- a_attributeMapInfo
-
PersistenceException
public Class getPrimaryClass(Vector a_classInfos)
getPrimaryClass
in interface ItemBuilder
a_classInfos
-
public void reset()
reset
in interface ItemBuilder
public int buildEmptyAggregateColumn(AttributeMapInfo a_attributeMapInfo, StringBuffer a_select) throws PersistenceException
buildEmptyAggregateColumn
in interface ItemBuilder
a_attributeMapInfo
- a_select
-
PersistenceException
public void setTimeStampAttributeTimestampDisabled() throws WTException
setTimeStampAttributeTimestampDisabled
in interface ItemBuilder
WTException
protected String getJavaType() throws WTException
WTException
public static Object getResultSetObject(ResultSet a_resultSet, int a_index, String a_javaType) throws SQLException
SQLException
public static void processClassAttributes(Vector a_tableInfos, Vector a_aliases, int[] a_classIndicies, ColumnExpression a_columnExpression)
public static String[] buildAliases(Vector a_tableInfos, Vector a_aliases, int[] a_classIndicies, ColumnExpression[] a_columns)
protected boolean processTimestamp() throws WTException
WTException
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |