|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.pds.PersistableItemBuilder
wt.pds.PersistableViewItemBuilder
This class provides the functionality for building a "full" Persistable
object from a result set. All of the attributes in the object are included
in the result set. The Persistable that is returned is specified by
the view class attribute. Sub-classes that are queried return only the
columns from the view class and instances are of the view class type.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private static HashMap |
SQL_MAP
|
private Class |
viewClass
|
private ClassInfo |
viewClassInfo
|
private String |
viewTableAlias
|
Fields inherited from class wt.pds.PersistableItemBuilder |
DMLGENERATOR |
Fields inherited from interface wt.pds.ItemBuilder |
ACCESS_CONTROLLED_FROM_INDICIES, COLUMNS, DESCENDANT_QUERY_TYPE_COMPATIBLE, FROM_INDICIES, ITEM_COUNT |
Constructor Summary | |
PersistableViewItemBuilder()
Supported API: false |
|
PersistableViewItemBuilder(int a_classIndex,
Class a_viewClass)
Supported API: false |
|
PersistableViewItemBuilder(int a_classIndex,
Class a_viewClass,
String a_viewTableAlias)
Supported API: false |
Method Summary | |
protected void |
buildClassnameSelect(String a_alias,
String a_columnName,
ClassInfo a_classInfo,
StringBuffer a_select)
Builds a select Classname column for the object. |
protected void |
buildSQLSelect(ColumnDescriptor[] columns,
ClassInfo a_classInfo,
String a_alias,
StringBuffer a_select)
|
protected void |
buildTimestampSelect(String a_alias,
String a_columnName,
StringBuffer a_select)
Builds a select Timestamp column for the object. |
protected String |
getAlias(Vector a_aliases)
|
protected ClassInfo |
getClassInfo(Vector a_classInfos)
Supported API: false |
protected Map |
getSQLMap()
|
Class |
getViewClass()
Gets the value of the attribute: viewClass; Persistable class for this view Supported API: false |
String |
getViewTableAlias()
Gets the value of the attribute: viewTableAlias. |
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(PersistableViewItemBuilder thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setViewClass(Class a_ViewClass)
Sets the value of the attribute: viewClass; Persistable class for this view Supported API: false |
private void |
viewClassValidate(Class a_ViewClass)
|
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 Class viewClass
private String viewTableAlias
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private transient ClassInfo viewClassInfo
private static final HashMap SQL_MAP
Constructor Detail |
public PersistableViewItemBuilder()
public PersistableViewItemBuilder(int a_classIndex, Class a_viewClass) throws WTPropertyVetoException
a_classIndex
- a_viewClass
-
WTPropertyVetoException
public PersistableViewItemBuilder(int a_classIndex, Class a_viewClass, String a_viewTableAlias) throws WTPropertyVetoException
a_classIndex
- a_viewClass
- a_viewTableAlias
-
WTPropertyVetoException
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class PersistableItemBuilder
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class PersistableItemBuilder
input
-
IOException
ClassNotFoundException
protected boolean readVersion(PersistableViewItemBuilder 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 Class getViewClass()
public void setViewClass(Class a_ViewClass) throws WTPropertyVetoException
a_ViewClass
-
WTPropertyVetoException
private void viewClassValidate(Class a_ViewClass) throws WTPropertyVetoException
a_ViewClass
-
WTPropertyVetoException
public String getViewTableAlias()
protected ClassInfo getClassInfo(Vector a_classInfos) throws WTException
getClassInfo
in class PersistableItemBuilder
a_classInfos
-
WTException
protected void buildTimestampSelect(String a_alias, String a_columnName, StringBuffer a_select) throws PersistenceException
buildTimestampSelect
in class PersistableItemBuilder
a_alias
- a_columnName
- a_select
-
PersistenceException
protected void buildClassnameSelect(String a_alias, String a_columnName, ClassInfo a_classInfo, StringBuffer a_select) throws PersistenceException
buildClassnameSelect
in class PersistableItemBuilder
a_alias
- a_columnName
- a_classInfo
- a_select
-
PersistenceException
protected Map getSQLMap()
getSQLMap
in class PersistableItemBuilder
protected void buildSQLSelect(ColumnDescriptor[] columns, ClassInfo a_classInfo, String a_alias, StringBuffer a_select) throws PersistenceException
buildSQLSelect
in class PersistableItemBuilder
PersistenceException
protected String getAlias(Vector a_aliases)
getAlias
in class PersistableItemBuilder
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |