|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object
|
+--com.sas.entities.BaseAttributeDescriptor
|
+--com.sas.entities.AttributeType
A simple implementation of AttributeTypeInterface.
| Field Summary |
| Fields inherited from interface com.sas.entities.AttributeTypeInterface |
ARRAY_TYPE, BOOLEAN_TYPE, BYTE_TYPE, CHAR_TYPE, DOUBLE_TYPE, FLOAT_TYPE, INT_TYPE, LONG_TYPE, OBJECT_TYPE, OTHER_TYPE, SHORT_TYPE, STRING_TYPE |
| Constructor Summary | |
AttributeType()
Default constructor. |
|
AttributeType(String name,
int sqlType)
Constructs an instance of AttributeType with the given name and sql type. |
|
AttributeType(String name,
int sqlType,
String objectType)
Constructs an instance of AttributeType with the given name, sql type, and object type. |
|
AttributeType(String name,
String type)
Constructs an instance of AttributeType with the given name and type. |
|
| Method Summary | |
String |
getObjectType()
Return the component type (if the AttributeType was defined as Types.ARRAY) or the classname of the object if the AttributeType was defined as Types.OBJECT. |
int |
getSQLType()
Return the SQL type. |
String |
getType()
Return the java type. |
List |
getValidators(String context)
Return the validators. |
List |
getValidatorsContexts()
Returns a list of validators contexts defined for this AttributeType. |
void |
setObjectType(String objectType)
Sets the component type (if the AttributeType was defined as Types.ARRAY) or the classname of the object if the AttributeType was defined as Types.OBJECT. |
void |
setSQLType(int sqlType)
Set the SQL type. |
void |
setType(String type)
Set the java type setType("java.lang.String"); //String AttributeType setType("java.util.Date"); //Date AttributeType |
void |
setValidators(String context,
List validators)
Set the validators. |
| Methods inherited from class com.sas.entities.BaseAttributeDescriptor |
getAttributeCustomizerContexts, getAttributeCustomizers, getConfigurationXML, getCustomizer, getDescription, getDescriptions, getLabel, getLabels, getLargeIconURL, getLargeIconURLs, getName, getSmallIconURL, getSmallIconURLs, setConfigurationXML, setCustomizer, setDescription, setLabel, setLargeIconURL, setName, setSmallIconURL |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sas.entities.BaseAttributeDescriptorInterface |
getAttributeCustomizerContexts, getAttributeCustomizers, getConfigurationXML, getCustomizer, getDescription, getDescriptions, getLabel, getLabels, getLargeIconURL, getLargeIconURLs, getName, getSmallIconURL, getSmallIconURLs, setConfigurationXML, setCustomizer, setDescription, setLabel, setLargeIconURL, setName, setSmallIconURL |
| Field Detail |
| Constructor Detail |
public AttributeType()
public AttributeType(String name,
String type)
name - name associated with the AttributeTypetype - String parameter used to derive the sql type
public AttributeType(String name,
int sqlType)
name - name associated with the AttributeTypesqlType - sql type
public AttributeType(String name,
int sqlType,
String objectType)
name - name associated with the AttributeTypesqlType - sql typeobjectType - fully qualified class name| Method Detail |
public int getSQLType()
AttributeTypeInterfacegetSQLType in interface AttributeTypeInterfacecom.sas.entities.AttributeTypeInterfaceAttributeTypeInterface.setSQLType(int sqlType),
Typespublic void setSQLType(int sqlType)
AttributeTypeInterfaceTypes.setSQLType in interface AttributeTypeInterfacecom.sas.entities.AttributeTypeInterfacesqlType - generic SQL typeAttributeTypeInterface.getSQLType(),
Typespublic String getType()
AttributeTypeInterfacegetType in interface AttributeTypeInterfacecom.sas.entities.AttributeTypeInterfaceAttributeTypeInterface.setType(String type)public void setType(String type)
AttributeTypeInterfacesetType in interface AttributeTypeInterfacecom.sas.entities.AttributeTypeInterfacetype - classnameAttributeTypeInterface.getType()public List getValidators(String context)
AttributeTypeInterfacegetValidators in interface AttributeTypeInterfacecom.sas.entities.AttributeTypeInterfacecontext - the context in which the validators are instantiated/used;
it is a platform specification from EntityContextInterfaceAttributeTypeInterface.setValidators(String context, List validators)public List getValidatorsContexts()
AttributeTypeInterfacegetValidatorsContexts in interface AttributeTypeInterfacecom.sas.entities.AttributeTypeInterface
public void setValidators(String context,
List validators)
AttributeTypeInterfacesetValidators in interface AttributeTypeInterfacecom.sas.entities.AttributeTypeInterfacecontext - the context in which the validators are instantiated/used;
it is a platform specification from EntityContextInterfacevalidators - names of the validatorsAttributeTypeInterface.getValidators(String context),
EntityContextInterfacepublic String getObjectType()
AttributeTypeInterfacegetObjectType in interface AttributeTypeInterfacecom.sas.entities.AttributeTypeInterfaceAttributeTypeInterface.setObjectType(String type)public void setObjectType(String objectType)
AttributeTypeInterfacesetObjectType in interface AttributeTypeInterfacecom.sas.entities.AttributeTypeInterfacetype - component typeAttributeTypeInterface.getObjectType()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||