|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.entities.AttributeType
@SASScope(value="ALL") public class 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(java.lang.String name,
int sqlType)
Constructs an instance of AttributeType with the given name and sql type. |
|
AttributeType(java.lang.String name,
int sqlType,
java.lang.String objectType)
Constructs an instance of AttributeType with the given name, sql type, and object type. |
|
AttributeType(java.lang.String name,
java.lang.String type)
Constructs an instance of AttributeType with the given name and type. |
|
| Method Summary | |
|---|---|
java.lang.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. |
java.lang.String |
getType()
Return the java type. |
java.util.List |
getValidators(java.lang.String context)
Return the validators. |
java.util.List |
getValidatorsContexts()
Returns a list of validators contexts defined for this AttributeType. |
void |
setObjectType(java.lang.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(java.lang.String type)
Set the java type setType("java.lang.String"); //String AttributeType setType("java.util.Date"); //Date AttributeType |
void |
setValidators(java.lang.String context,
java.util.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 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 |
| Constructor Detail |
|---|
public AttributeType()
public AttributeType(java.lang.String name,
java.lang.String type)
name - name associated with the AttributeTypetype - String parameter used to derive the sql type
public AttributeType(java.lang.String name,
int sqlType)
name - name associated with the AttributeTypesqlType - sql type
public AttributeType(java.lang.String name,
int sqlType,
java.lang.String objectType)
name - name associated with the AttributeTypesqlType - sql typeobjectType - fully qualified class name| Method Detail |
|---|
public int getSQLType()
AttributeTypeInterface
getSQLType in interface AttributeTypeInterfaceAttributeTypeInterface.setSQLType(int sqlType),
Typespublic void setSQLType(int sqlType)
AttributeTypeInterfaceTypes.
setSQLType in interface AttributeTypeInterfacesqlType - generic SQL typeAttributeTypeInterface.getSQLType(),
Typespublic java.lang.String getType()
AttributeTypeInterface
getType in interface AttributeTypeInterfaceAttributeTypeInterface.setType(String type)public void setType(java.lang.String type)
AttributeTypeInterface
setType in interface AttributeTypeInterfacetype - classnameAttributeTypeInterface.getType()public java.util.List getValidators(java.lang.String context)
AttributeTypeInterface
getValidators in interface AttributeTypeInterfacecontext - the context in which the validators are instantiated/used;
it is a platform specification from EntityContextInterface
AttributeTypeInterface.setValidators(String context, List validators)public java.util.List getValidatorsContexts()
AttributeTypeInterface
getValidatorsContexts in interface AttributeTypeInterface
public void setValidators(java.lang.String context,
java.util.List validators)
AttributeTypeInterface
setValidators in interface 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 java.lang.String getObjectType()
AttributeTypeInterface
getObjectType in interface AttributeTypeInterfaceAttributeTypeInterface.setObjectType(String type)public void setObjectType(java.lang.String objectType)
AttributeTypeInterface
setObjectType in interface AttributeTypeInterfaceobjectType - component typeAttributeTypeInterface.getObjectType()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||