wt.pds
Class ColumnAccessControlItemBuilder

java.lang.Object
  extended bywt.pds.AbstractColumnAccessControlItemBuilder
      extended bywt.pds.ColumnAccessControlItemBuilder
All Implemented Interfaces:
Externalizable, ItemBuilder, Serializable
Direct Known Subclasses:
ViewColumnAccessControlItemBuilder

public class ColumnAccessControlItemBuilder
extends AbstractColumnAccessControlItemBuilder
implements Externalizable

This class provides the functionality for building an Access Control surrogate object to represent an object associated with a non-Persistable item.

Columns associated with the represented Item's class are used to build the Surrogate item.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private  Class accessControlClass
           
private  ClassInfo classInfo
           
private static String CLASSNAME
           
static long EXTERNALIZATION_VERSION_UID
           
private  int fromIndex
           
protected static long OLD_FORMAT_VERSION_UID
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
private static HashMap SQL_MAP
           
 
Fields inherited from class wt.pds.AbstractColumnAccessControlItemBuilder
 
Fields inherited from interface wt.pds.ItemBuilder
ACCESS_CONTROLLED_FROM_INDICIES, COLUMNS, DESCENDANT_QUERY_TYPE_COMPATIBLE, FROM_INDICIES, ITEM_COUNT
 
Constructor Summary
ColumnAccessControlItemBuilder()
          

Supported API: false
ColumnAccessControlItemBuilder(Class a_accessControlClass, int a_fromIndex)
          

Supported API: false
ColumnAccessControlItemBuilder(Class a_accessControlClass, int a_fromIndex, ClassInfo a_classInfo)
          

Supported API: false
 
Method Summary
protected  void appendColumn(ColumnBuilder column, StringBuffer buffer, String alias)
          

Supported API: false
protected  Class getAccessControlClass()
          

Supported API: false
protected  String getAlias(Vector aliases)
          

Supported API: false
protected  ClassInfo getClassInfo(Vector classInfos)
          

Supported API: false
protected  int getFromIndex()
          

Supported API: false
protected  Map getSQLMap()
          

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(ColumnAccessControlItemBuilder thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class wt.pds.AbstractColumnAccessControlItemBuilder
build, buildEmptyAggregateColumn, buildSelect, createPersistentRetrieve, getAccessControlledFromIndicies, getColumns, getFromIndicies, getItemCount, getPrimaryClass, isDescendantQueryTypeCompatible, readVersion, reset, setTimeStampAttributeTimestampDisabled
 
Methods inherited from class java.lang.Object
clone, 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

accessControlClass

private Class accessControlClass

fromIndex

private int fromIndex

classInfo

private ClassInfo classInfo

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

SQL_MAP

private static final HashMap SQL_MAP
Constructor Detail

ColumnAccessControlItemBuilder

public ColumnAccessControlItemBuilder()


Supported API: false


ColumnAccessControlItemBuilder

public ColumnAccessControlItemBuilder(Class a_accessControlClass,
                                      int a_fromIndex)


Supported API: false

Parameters:
a_accessControlClass -
a_fromIndex -

ColumnAccessControlItemBuilder

public ColumnAccessControlItemBuilder(Class a_accessControlClass,
                                      int a_fromIndex,
                                      ClassInfo a_classInfo)


Supported API: false

Parameters:
a_accessControlClass -
a_fromIndex -
a_classInfo -
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 AbstractColumnAccessControlItemBuilder
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 AbstractColumnAccessControlItemBuilder
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

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

getAccessControlClass

protected Class getAccessControlClass()


Supported API: false

Specified by:
getAccessControlClass in class AbstractColumnAccessControlItemBuilder
Returns:
Class

getFromIndex

protected int getFromIndex()


Supported API: false

Specified by:
getFromIndex in class AbstractColumnAccessControlItemBuilder
Returns:
int

appendColumn

protected void appendColumn(ColumnBuilder column,
                            StringBuffer buffer,
                            String alias)
                     throws PersistenceException,
                            WTException


Supported API: false

Specified by:
appendColumn in class AbstractColumnAccessControlItemBuilder
Parameters:
column -
buffer -
alias -
Throws:
PersistenceException
WTException

getClassInfo

protected ClassInfo getClassInfo(Vector classInfos)
                          throws PersistenceException


Supported API: false

Specified by:
getClassInfo in class AbstractColumnAccessControlItemBuilder
Parameters:
classInfos -
Returns:
ClassInfo
Throws:
PersistenceException

getAlias

protected String getAlias(Vector aliases)


Supported API: false

Specified by:
getAlias in class AbstractColumnAccessControlItemBuilder
Parameters:
aliases -
Returns:
String

getSQLMap

protected Map getSQLMap()


Supported API: false

Specified by:
getSQLMap in class AbstractColumnAccessControlItemBuilder
Returns:
Map