com.sas.entities
Class AttributeTypeFactory

com.sas.entities.AttributeTypeFactory
All Implemented Interfaces:
AttributeTypeFactoryInterface

public class AttributeTypeFactory
implements AttributeTypeFactoryInterface

AttributeTypeFactory contains constants for creating AttributeTypes

See Also:
AttributeTypeInterface

Field Summary
static AttributeType BOOLEAN_ATTRIBUTE_TYPE
          Constant for creating a boolean AttributeType
static AttributeType BYTE_ATTRIBUTE_TYPE
          Constant for creating a byte AttributeType
static AttributeType CHAR_ATTRIBUTE_TYPE
          Constant for creating a char AttributeType
static AttributeType COLOR_STRING_ATTRIBUTE_TYPE
          Constant for creating special color AttributeType (sql type = Types.VARCHAR)
static AttributeType DATE_ATTRIBUTE_TYPE
          Constant for creating a Date AttributeType (sql type = Types.DATE)
static AttributeType DOUBLE_ARRAY_ATTRIBUTE_TYPE
          Constant for creating a double array AttributeType
static AttributeType DOUBLE_ATTRIBUTE_TYPE
          Constant for creating a double AttributeType
static AttributeType FLOAT_ATTRIBUTE_TYPE
          Constant for creating a float AttributeType
static AttributeType INT_ARRAY_ATTRIBUTE_TYPE
          Constant for creating an int array AttributeType
static AttributeType INT_ATTRIBUTE_TYPE
          Constant for creating an int AttributeType
static AttributeType LONG_ARRAY_ATTRIBUTE_TYPE
          Constant for creating a long array AttributeType
static AttributeType LONG_ATTRIBUTE_TYPE
          Constant for creating a long AttributeType
static AttributeType NULL_ATTRIBUTE_TYPE
          Constant for creating a long array AttributeType
static AttributeType OBJECT_ARRAY_ATTRIBUTE_TYPE
          Constant for creating a java.lang.Object array AttributeType
static AttributeType OBJECT_ATTRIBUTE_TYPE
          Constant for creating a java.lang.Object AttributeType
static AttributeType SHORT_ATTRIBUTE_TYPE
          Constant for creating a short AttributeType
static AttributeType STRING_ARRAY_ATTRIBUTE_TYPE
          Constant for creating a java.lang.String array AttributeType
static AttributeType STRING_ATTRIBUTE_TYPE
          Constant for creating a java.lang.String AttributeType
static AttributeType TIME_ATTRIBUTE_TYPE
          Constant for creating Time AttributeType (sql type = Types.TIME)
static AttributeType TIMESTAMP_ATTRIBUTE_TYPE
          Constant for creating TimeStamp AttributeType (sql type = Types.TIMESTAMP)
 
Constructor Summary
AttributeTypeFactory()
           
 
Method Summary
 AttributeTypeInterface createAttributeType(java.lang.String name, int sqlType, java.lang.String objectType)
          Create an instance of AttributeType.
 

Field Detail

BOOLEAN_ATTRIBUTE_TYPE

public static final AttributeType BOOLEAN_ATTRIBUTE_TYPE
Constant for creating a boolean AttributeType


BYTE_ATTRIBUTE_TYPE

public static final AttributeType BYTE_ATTRIBUTE_TYPE
Constant for creating a byte AttributeType


CHAR_ATTRIBUTE_TYPE

public static final AttributeType CHAR_ATTRIBUTE_TYPE
Constant for creating a char AttributeType


DOUBLE_ATTRIBUTE_TYPE

public static final AttributeType DOUBLE_ATTRIBUTE_TYPE
Constant for creating a double AttributeType


FLOAT_ATTRIBUTE_TYPE

public static final AttributeType FLOAT_ATTRIBUTE_TYPE
Constant for creating a float AttributeType


INT_ATTRIBUTE_TYPE

public static final AttributeType INT_ATTRIBUTE_TYPE
Constant for creating an int AttributeType


LONG_ATTRIBUTE_TYPE

public static final AttributeType LONG_ATTRIBUTE_TYPE
Constant for creating a long AttributeType


SHORT_ATTRIBUTE_TYPE

public static final AttributeType SHORT_ATTRIBUTE_TYPE
Constant for creating a short AttributeType


STRING_ATTRIBUTE_TYPE

public static final AttributeType STRING_ATTRIBUTE_TYPE
Constant for creating a java.lang.String AttributeType


OBJECT_ATTRIBUTE_TYPE

public static final AttributeType OBJECT_ATTRIBUTE_TYPE
Constant for creating a java.lang.Object AttributeType


STRING_ARRAY_ATTRIBUTE_TYPE

public static final AttributeType STRING_ARRAY_ATTRIBUTE_TYPE
Constant for creating a java.lang.String array AttributeType


OBJECT_ARRAY_ATTRIBUTE_TYPE

public static final AttributeType OBJECT_ARRAY_ATTRIBUTE_TYPE
Constant for creating a java.lang.Object array AttributeType


INT_ARRAY_ATTRIBUTE_TYPE

public static final AttributeType INT_ARRAY_ATTRIBUTE_TYPE
Constant for creating an int array AttributeType


DOUBLE_ARRAY_ATTRIBUTE_TYPE

public static final AttributeType DOUBLE_ARRAY_ATTRIBUTE_TYPE
Constant for creating a double array AttributeType


LONG_ARRAY_ATTRIBUTE_TYPE

public static final AttributeType LONG_ARRAY_ATTRIBUTE_TYPE
Constant for creating a long array AttributeType


NULL_ATTRIBUTE_TYPE

public static final AttributeType NULL_ATTRIBUTE_TYPE
Constant for creating a long array AttributeType


DATE_ATTRIBUTE_TYPE

public static final AttributeType DATE_ATTRIBUTE_TYPE
Constant for creating a Date AttributeType (sql type = Types.DATE)


COLOR_STRING_ATTRIBUTE_TYPE

public static final AttributeType COLOR_STRING_ATTRIBUTE_TYPE
Constant for creating special color AttributeType (sql type = Types.VARCHAR)


TIME_ATTRIBUTE_TYPE

public static final AttributeType TIME_ATTRIBUTE_TYPE
Constant for creating Time AttributeType (sql type = Types.TIME)


TIMESTAMP_ATTRIBUTE_TYPE

public static final AttributeType TIMESTAMP_ATTRIBUTE_TYPE
Constant for creating TimeStamp AttributeType (sql type = Types.TIMESTAMP)

Constructor Detail

AttributeTypeFactory

public AttributeTypeFactory()
Method Detail

createAttributeType

public AttributeTypeInterface createAttributeType(java.lang.String name,
                                                  int sqlType,
                                                  java.lang.String objectType)
Description copied from interface: AttributeTypeFactoryInterface
Create an instance of AttributeType.

Specified by:
createAttributeType in interface AttributeTypeFactoryInterface
Parameters:
name - name associated with the AttributeType
sqlType - sql type
objectType - the component type (if the AttributeType is defined as an array) or the classname of the object if the AttributeType is defined as Types.OBJECT
Returns:
instance of AttributeType
See Also:
Types



Copyright © 2009 SAS Institute Inc. All Rights Reserved.