public abstract class AttributeDefHelper extends PropertiesHelper implements AttributeDef, java.io.Serializable
| Modifier and Type | Field and Description | 
|---|---|
| static int | HISTORY_TYPE_RESERVED_IDS | 
mPropertiesATTR_ASSOCIATED_ROW, ATTR_ASSOCIATED_ROWITERATOR, ATTR_DYNAMIC, ATTR_ENTITY_DERIVED, ATTR_HIDDEN, ATTR_PERSISTENT, ATTR_ROWSET, ATTR_SQL_DERIVED, ATTR_TRANSIENT, ATTR_VARIABLE, READONLY, UPDATEABLE, UPDATEABLE_WHILE_NEW| Modifier | Constructor and Description | 
|---|---|
| protected  | AttributeDefHelper() | 
| protected  | AttributeDefHelper(java.lang.String nm,
                  java.lang.String cnm,
                  java.lang.String cnmForQuery,
                  int idx,
                  java.lang.String typ,
                  int sqlType,
                  int typeGroup,
                  byte kind,
                  boolean isSelected,
                  boolean isQueriable,
                  boolean isFromReference,
                  byte updateable,
                  boolean primarykey,
                  boolean mandatory,
                  int precision,
                  int scale,
                  java.lang.String elemClzName,
                  java.lang.String lovName,
                  boolean isDiscrColumn) | 
| Modifier and Type | Method and Description | 
|---|---|
| static java.lang.String | convertUpdateableFlagToString(byte updateable) | 
| static byte | convertUpdateableStringToFlag(java.lang.String str)Convert Attribute Updateable value to byte. | 
| ViewObject | getAccessorVO(ViewObject originVO)For an accessor attribute, this method creates a View Object that
 works for the View Link definition. | 
| byte | getAttributeKind()Gets the attribute value. | 
| java.lang.String | getColumnName()Gets the name of the database column the attribute represents. | 
| java.lang.String | getColumnNameForQuery()Gets the column name to be used in query statement. | 
| int | getElemSQLType()Returns the jdbc type of the elements of this attribute. | 
| java.lang.Class | getElemType()Returns the element type of the attribute. | 
| int | getIndex()Gets the index of the attribute in the context of a  StoreInfoinstance. | 
| java.lang.Class | getJavaType()Gets the Java class of the object stored for this attribute definition. | 
| java.lang.String | getJavaTypeName() | 
| java.lang.String | getLOVName()Gets the name of the LOV (list of values) associated with this
 attribute definition. | 
| java.lang.String | getName()Gets the name of the attribute. | 
| int | getPrecision()Gets the precision of a numeric or string attribute. | 
| int | getScale()Get the scale value of a numeric attribute. | 
| int | getSQLType()Gets the JDBC type of the attribute. | 
| int | getTypeGroup() | 
| byte | getUpdateableFlag()Tests if an attribute can be modified. | 
| boolean | isDiscrColumn()Tests if an attribute is a discriminator. | 
| boolean | isFromReference() | 
| boolean | isMandatory()Return true if this attribute does not allow null values. | 
| boolean | isPrimaryKey()Tests if an attribute is a Primary Key. | 
| boolean | isQueriable()Tests if an attribute is queriable. | 
| boolean | isSelected() | 
| static java.lang.Object | parseFormattedAttribute(AttributeDef ad,
                       java.lang.String sValue,
                       LocaleContext locale) | 
| void | setName(java.lang.String name)This method is not implemented by default. | 
closeObject, getImageLoc, getProperties, getProperty, getProperty, isReadOnly, refreshProperties, refreshProperty, setPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetListBindingDef, getUIHelpergetProperties, getProperty, getProperty, refreshPropertypublic static final int HISTORY_TYPE_RESERVED_IDS
protected AttributeDefHelper()
protected AttributeDefHelper(java.lang.String nm,
                  java.lang.String cnm,
                  java.lang.String cnmForQuery,
                  int idx,
                  java.lang.String typ,
                  int sqlType,
                  int typeGroup,
                  byte kind,
                  boolean isSelected,
                  boolean isQueriable,
                  boolean isFromReference,
                  byte updateable,
                  boolean primarykey,
                  boolean mandatory,
                  int precision,
                  int scale,
                  java.lang.String elemClzName,
                  java.lang.String lovName,
                  boolean isDiscrColumn)
public java.lang.String getName()
AttributeDefgetName in interface AttributeDefpublic java.lang.String getColumnName()
AttributeDefgetColumnName in interface AttributeDefpublic java.lang.String getColumnNameForQuery()
AttributeDefgetColumnNameForQuery in interface AttributeDefpublic int getIndex()
AttributeDefStoreInfo
 instance.getIndex in interface AttributeDefpublic java.lang.Class getJavaType()
AttributeDefgetJavaType in interface AttributeDefpublic java.lang.String getJavaTypeName()
public int getSQLType()
AttributeDefgetSQLType in interface AttributeDefTypespublic int getTypeGroup()
public byte getAttributeKind()
AttributeDefgetAttributeKind in interface AttributeDefATTR constants defined for this class.public boolean isSelected()
isSelected in interface AttributeDefpublic boolean isQueriable()
AttributeDefQueriable attributes are those that may have a filter condition for the WHERE clause If this method returns false, the attribute will not be used in constructing the WHERE clause of SQL statements to fetch data.
isQueriable in interface AttributeDeftrue if this attribute is queriable.public boolean isFromReference()
public byte getUpdateableFlag()
AttributeDefgetUpdateableFlag in interface AttributeDefREADONLY, UPDATEABLE, or UPDATEABLE_WHILE_NEW.public boolean isPrimaryKey()
AttributeDefisPrimaryKey in interface AttributeDeftrue if this is either a Primary Key attribute or
 part of the attributes that constitute the Primary Key for a given row.public boolean isMandatory()
isMandatory in interface AttributeDeftrue if this attribute cannot store a null valuepublic int getPrecision()
AttributeDef'Precision' for a string is the maximum length.
getPrecision in interface AttributeDefpublic int getScale()
AttributeDefgetScale in interface AttributeDefpublic java.lang.Class getElemType()
For VARRAYs, this method returns the class name of the elements that are in the VARRAY.
Element type is relevant only if the attribute is an array attribute.
getElemType in interface AttributeDefpublic int getElemSQLType()
For VARRAYs, this method returns the jdbc type of the elements that are in the VARRAY.
Element type is relevant only if the attribute is an array attribute.
getElemSQLType in interface AttributeDefpublic ViewObject getAccessorVO(ViewObject originVO)
AttributeDefgetAccessorVO in interface AttributeDeforiginVO - the View Object that owns the accessorViewObject instance.public void setName(java.lang.String name)
PropertiesHelpersetName in class PropertiesHelpername - public java.lang.String getLOVName()
AttributeDefgetLOVName in interface AttributeDefpublic boolean isDiscrColumn()
AttributeDefisDiscrColumn in interface AttributeDefpublic static byte convertUpdateableStringToFlag(java.lang.String str)
str - Attribute Updateable or notpublic static java.lang.String convertUpdateableFlagToString(byte updateable)
public static java.lang.Object parseFormattedAttribute(AttributeDef ad, java.lang.String sValue, LocaleContext locale)