|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.pds.AttributeMapInfo
This class provides common access to the attribute column information associated with a class. Introspecion is used to build the information which is then cached for performance reasons.
An instance of this class is PDS specific. PDS specific calls are used
when building attribute information. Each PDS class should contain a
static instance of this class.
Supported API: false
Extendable: false
Field Summary | |
private static int |
ACCESS_CONTROL_INDEX
|
protected static boolean |
ACCESS_ENFORCE
|
private static Hashtable |
ACCESSCONTROL_ATTRIBUTEALIAS
|
private static String |
CLASSNAME
|
private static int |
CONTAIN_SEQUENCE_COLUMN_INDEX
|
private static DMLGenerator |
DMLGENERATOR
|
private static int |
INFO_SIZE
|
private static int |
INSERT_MAP_INDEX
|
private static int |
INSERT_STATEMENT_INDEX
|
private Hashtable |
map
|
private SQLDatabasePds |
pds
|
private static String |
RESOURCE
|
private static int |
SELECT_COLUMN_INDEX
|
private static int |
SELECT_MAP_INDEX
|
private static int |
UPDATE_MAP_INDEX
|
private static int |
UPDATE_STATEMENT_INDEX
|
private static int |
UPDATE_STATEMENT_N0_MODIFYSTAMP_INDEX
|
Constructor Summary | |
AttributeMapInfo()
|
Method Summary | |
private void |
buildAccessControlMap(ClassInfo a_classInfo,
Object[] a_info)
|
private void |
buildInsertUpdateMap(ClassInfo a_classInfo,
Object[] a_info)
|
private void |
buildSelectMap(ClassInfo a_classInfo,
Object[] a_info)
|
boolean |
containSequenceColumn(ClassInfo a_classInfo)
Supported API: false |
ColumnBuilder[] |
getAccessControlColumnBuilders(ClassInfo a_classInfo)
Return the Access Control ColumnBuilders for the specified class. |
private Object[] |
getAccessControlInfo(ClassInfo a_classInfo)
|
Map |
getAttributeIndexMap(Class a_class)
Return a Map of column names to indexes for a given class. |
Map |
getAttributeIndexMap(ClassInfo a_classInfo)
Return a Map of column names to indexes for a given class. |
ColumnDescriptor[] |
getColumnDescriptors(Class a_class)
Return the column descriptors for a given class. |
ColumnDescriptor[] |
getColumnDescriptors(ClassInfo a_classInfo)
Return the column descriptors for a given class. |
private Object[] |
getInfo(ClassInfo a_classInfo)
|
Map |
getInsertAttributeIndexMap(ClassInfo a_classInfo)
Return a Map of column names to indexes for a given class. |
String |
getInsertStatement(ClassInfo a_classInfo)
Return a SQL insert statement for the given class. |
private Object[] |
getInsertUpdateInfo(ClassInfo a_classInfo)
|
SQLDatabasePds |
getPds()
Gets the value of the attribute: pds. |
private Object[] |
getSelectInfo(ClassInfo a_classInfo)
|
Map |
getUpdateAttributeIndexMap(ClassInfo a_classInfo)
Return a Map of column names to indexes for a given class. |
String |
getUpdateStatement(ClassInfo a_classInfo,
boolean a_changeModifyStamp)
Return a SQL update statement for the given class. |
private void |
processAccessControlSurrogate(Class a_accessControlSurrogate,
Map a_selectMap,
ColumnDescriptor[] a_selectColumns,
Object[] a_info)
|
void |
setPds(SQLDatabasePds a_Pds)
Sets the value of the attribute: pds. |
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 Hashtable map
private SQLDatabasePds pds
private static final int SELECT_MAP_INDEX
private static final int SELECT_COLUMN_INDEX
private static final int UPDATE_MAP_INDEX
private static final int INSERT_MAP_INDEX
private static final int ACCESS_CONTROL_INDEX
private static final int INSERT_STATEMENT_INDEX
private static final int UPDATE_STATEMENT_INDEX
private static final int UPDATE_STATEMENT_N0_MODIFYSTAMP_INDEX
private static final int CONTAIN_SEQUENCE_COLUMN_INDEX
private static final int INFO_SIZE
protected static boolean ACCESS_ENFORCE
private static Hashtable ACCESSCONTROL_ATTRIBUTEALIAS
private static final DMLGenerator DMLGENERATOR
Constructor Detail |
public AttributeMapInfo()
Method Detail |
public SQLDatabasePds getPds()
public void setPds(SQLDatabasePds a_Pds) throws WTPropertyVetoException
a_Pds
-
WTPropertyVetoException
public ColumnDescriptor[] getColumnDescriptors(ClassInfo a_classInfo) throws PersistenceException
a_classInfo
-
PersistenceException
public ColumnDescriptor[] getColumnDescriptors(Class a_class) throws PersistenceException
a_class
-
PersistenceException
public Map getAttributeIndexMap(ClassInfo a_classInfo) throws PersistenceException
a_classInfo
-
PersistenceException
public Map getAttributeIndexMap(Class a_class) throws PersistenceException
a_class
-
PersistenceException
public Map getUpdateAttributeIndexMap(ClassInfo a_classInfo) throws PersistenceException
a_classInfo
-
PersistenceException
public ColumnBuilder[] getAccessControlColumnBuilders(ClassInfo a_classInfo) throws PersistenceException
a_classInfo
-
PersistenceException
public Map getInsertAttributeIndexMap(ClassInfo a_classInfo) throws PersistenceException
a_classInfo
-
PersistenceException
public String getInsertStatement(ClassInfo a_classInfo) throws PersistenceException
a_classInfo
-
PersistenceException
public String getUpdateStatement(ClassInfo a_classInfo, boolean a_changeModifyStamp) throws PersistenceException
a_classInfo
- a_changeModifyStamp
- Indicates if the UPDATE statement should support changing the modify timestamp.
PersistenceException
public boolean containSequenceColumn(ClassInfo a_classInfo) throws PersistenceException
a_classInfo
-
PersistenceException
private Object[] getInfo(ClassInfo a_classInfo) throws PersistenceException
PersistenceException
private Object[] getSelectInfo(ClassInfo a_classInfo) throws PersistenceException
PersistenceException
private Object[] getInsertUpdateInfo(ClassInfo a_classInfo) throws PersistenceException
PersistenceException
private Object[] getAccessControlInfo(ClassInfo a_classInfo) throws PersistenceException
PersistenceException
private void buildSelectMap(ClassInfo a_classInfo, Object[] a_info) throws PersistenceException
PersistenceException
private void buildInsertUpdateMap(ClassInfo a_classInfo, Object[] a_info) throws PersistenceException
PersistenceException
private void buildAccessControlMap(ClassInfo a_classInfo, Object[] a_info) throws PersistenceException
PersistenceException
private void processAccessControlSurrogate(Class a_accessControlSurrogate, Map a_selectMap, ColumnDescriptor[] a_selectColumns, Object[] a_info) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |