|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.entities.AttributeType
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 typepublic AttributeType(java.lang.String name, int sqlType)
name
- name associated with the AttributeTypesqlType
- sql typepublic AttributeType(java.lang.String name, int sqlType, java.lang.String objectType)
name
- name associated with the AttributeTypesqlType
- sql typeobjectType
- fully qualified class nameMethod Detail |
---|
public int getSQLType()
AttributeTypeInterface
getSQLType
in interface AttributeTypeInterface
AttributeTypeInterface.setSQLType(int sqlType)
,
Types
public void setSQLType(int sqlType)
AttributeTypeInterface
Types
.
setSQLType
in interface AttributeTypeInterface
sqlType
- generic SQL typeAttributeTypeInterface.getSQLType()
,
Types
public java.lang.String getType()
AttributeTypeInterface
getType
in interface AttributeTypeInterface
AttributeTypeInterface.setType(String type)
public void setType(java.lang.String type)
AttributeTypeInterface
setType
in interface AttributeTypeInterface
type
- classnameAttributeTypeInterface.getType()
public java.util.List getValidators(java.lang.String context)
AttributeTypeInterface
getValidators
in interface AttributeTypeInterface
context
- 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 AttributeTypeInterface
context
- the context in which the validators are instantiated/used;
it is a platform specification from EntityContextInterface
validators
- names of the validatorsAttributeTypeInterface.getValidators(String context)
,
EntityContextInterface
public java.lang.String getObjectType()
AttributeTypeInterface
getObjectType
in interface AttributeTypeInterface
AttributeTypeInterface.setObjectType(String type)
public void setObjectType(java.lang.String objectType)
AttributeTypeInterface
setObjectType
in interface AttributeTypeInterface
objectType
- component typeAttributeTypeInterface.getObjectType()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |