com.sybase.reflection
Class AttributeMetaData

java.lang.Object
  extended by com.sybase.reflection.AttributeMetaData

public class AttributeMetaData
extends java.lang.Object

Holds Attribute Meta Data information


Field Summary
protected  java.lang.String __column
           
protected  DataType __dataType
           
protected  int __id
           
protected  boolean __isAssociation
           
protected  boolean __isCascade
           
protected  boolean __isKey
           
protected  boolean __isLazyLoad
           
protected  boolean __isReplay
           
protected  boolean __isStatic
           
protected  boolean __isSystem
           
protected  int __maxLength
           
protected  java.lang.String __name
           
protected  int __precision
           
protected  boolean __protected
           
protected  int __scale
           
 
Constructor Summary
AttributeMetaData()
          Sybase internal use only.
 
Method Summary
 AttributeMetaData finishInit()
          Sybase internal use only.
 java.lang.String getColumn()
          Gets the column name of the attribute.
 DataType getDataType()
          Gets the DataType of the attribute.
static AttributeMetaDataList getEMPTY_LIST()
          Sybase internal use only.
 int getId()
          Gets the attribute ID.
 boolean getIsAssociation()
          Returns true if the attribute is an association.
 boolean getIsCascade()
          Returns true if the attribute is an association and cascade to the children
 boolean getIsKey()
          Returns true if the attribute is surrogate key
 boolean getIsLazyLoad()
          Returns true if the attribute is lazy load.
 boolean getIsReplay()
          Returns true if replay option of the attribute is true, otherwise return false.
 boolean getIsStatic()
          Returns true if the attribute is static
 boolean getIsSystem()
          Returns true if the attribute is system attribute.
 int getMaxLength()
          Gets the max length of the attribute.
 java.lang.String getName()
          Gets the attribute name
 int getPrecision()
          Gets the precision of the attribute.
 int getScale()
          Gets the scale of the attribute.
 AttributeMetaData initColumn(java.lang.String _column)
          Sybase internal use only.
 AttributeMetaData initDataType(DataType _dataType)
          Sybase internal use only.
 AttributeMetaData initId(int _id)
          Sybase internal use only.
 AttributeMetaData initIsReplay(boolean _isReplay)
          Sybase internal use only.
 AttributeMetaData initIsStatic(boolean _isStatic)
          Sybase internal use only.
 AttributeMetaData initMaxLength(int _maxLength)
          Sybase internal use only.
 AttributeMetaData initName(java.lang.String _name)
          Sybase internal use only.
 AttributeMetaData initPrecision(int _precision)
          Sybase internal use only.
 AttributeMetaData initScale(int _scale)
          Sybase internal use only.
 boolean isPersistent()
          Sybase internal use only.
 boolean isProtected()
          Returns true if the attribute is protected.
 void setColumn(java.lang.String _column)
          Sets the column name of the attribute.
 void setDataType(DataType _dataType)
          Sets the DataType of the attribute.
 void setId(int _id)
          Sets the attribute ID.
 void setIsAssociation(boolean isAssociation)
          Sets the association option of the attribute.
 void setIsCascade(boolean isCascade)
          Set cascade option of the attribute.
 void setIsKey(boolean isKey)
          Set whether the attribute is surrogate key.
 void setIsLazyLoad(boolean isLazyLoad)
          Sets the lazy load option of the attribute.
 void setIsReplay(boolean _isReplay)
          Sets the replay option value of the attribute.
 void setIsStatic(boolean _isStatic)
          Sets the static option of the attribute.
 void setIsSystem(boolean isSystem)
          Sets the system option of the attribute.
 void setMaxLength(int _maxLength)
          Sets the max length of the attribute.
 void setName(java.lang.String _name)
          set the attribute name
 void setPrecision(int _precision)
          Sets the precision of the attribute.
 void setProtected(boolean __protected)
          Set protected option of the attribute.
 void setScale(int _scale)
          Sets the scale of the attribute.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__id

protected int __id

__name

protected java.lang.String __name

__dataType

protected DataType __dataType

__maxLength

protected int __maxLength

__precision

protected int __precision

__scale

protected int __scale

__column

protected java.lang.String __column

__isReplay

protected boolean __isReplay

__isStatic

protected boolean __isStatic

__protected

protected boolean __protected

__isKey

protected boolean __isKey

__isCascade

protected boolean __isCascade

__isSystem

protected boolean __isSystem

__isAssociation

protected boolean __isAssociation

__isLazyLoad

protected boolean __isLazyLoad
Constructor Detail

AttributeMetaData

public AttributeMetaData()
Sybase internal use only.

Method Detail

getEMPTY_LIST

public static AttributeMetaDataList getEMPTY_LIST()
Sybase internal use only.


initId

public AttributeMetaData initId(int _id)
Sybase internal use only.


getId

public int getId()
Gets the attribute ID.


setId

public void setId(int _id)
Sets the attribute ID.


initName

public AttributeMetaData initName(java.lang.String _name)
Sybase internal use only.


getName

public java.lang.String getName()
Gets the attribute name


setName

public void setName(java.lang.String _name)
set the attribute name


initDataType

public AttributeMetaData initDataType(DataType _dataType)
Sybase internal use only.


getDataType

public DataType getDataType()
Gets the DataType of the attribute.


setDataType

public void setDataType(DataType _dataType)
Sets the DataType of the attribute.


initMaxLength

public AttributeMetaData initMaxLength(int _maxLength)
Sybase internal use only.


getMaxLength

public int getMaxLength()
Gets the max length of the attribute.


setMaxLength

public void setMaxLength(int _maxLength)
Sets the max length of the attribute.


initPrecision

public AttributeMetaData initPrecision(int _precision)
Sybase internal use only.


getPrecision

public int getPrecision()
Gets the precision of the attribute. Applicable for Decimal type.


setPrecision

public void setPrecision(int _precision)
Sets the precision of the attribute. Applicable for Decimal type.


initScale

public AttributeMetaData initScale(int _scale)
Sybase internal use only.


getScale

public int getScale()
Gets the scale of the attribute. Applicable for Decimal type.


setScale

public void setScale(int _scale)
Sets the scale of the attribute. Applicable for Decimal type.


initColumn

public AttributeMetaData initColumn(java.lang.String _column)
Sybase internal use only.


getColumn

public java.lang.String getColumn()
Gets the column name of the attribute.


setColumn

public void setColumn(java.lang.String _column)
Sets the column name of the attribute.


initIsReplay

public AttributeMetaData initIsReplay(boolean _isReplay)
Sybase internal use only.


getIsReplay

public boolean getIsReplay()
Returns true if replay option of the attribute is true, otherwise return false.


setIsReplay

public void setIsReplay(boolean _isReplay)
Sets the replay option value of the attribute.


initIsStatic

public AttributeMetaData initIsStatic(boolean _isStatic)
Sybase internal use only.


getIsStatic

public boolean getIsStatic()
Returns true if the attribute is static


setIsStatic

public void setIsStatic(boolean _isStatic)
Sets the static option of the attribute.


isPersistent

public boolean isPersistent()
Sybase internal use only.


finishInit

public AttributeMetaData finishInit()
Sybase internal use only.


getIsKey

public boolean getIsKey()
Returns true if the attribute is surrogate key


setIsKey

public void setIsKey(boolean isKey)
Set whether the attribute is surrogate key.


getIsCascade

public boolean getIsCascade()
Returns true if the attribute is an association and cascade to the children


setIsCascade

public void setIsCascade(boolean isCascade)
Set cascade option of the attribute.


getIsSystem

public boolean getIsSystem()
Returns true if the attribute is system attribute.


setIsSystem

public void setIsSystem(boolean isSystem)
Sets the system option of the attribute.


getIsAssociation

public boolean getIsAssociation()
Returns true if the attribute is an association.


setIsAssociation

public void setIsAssociation(boolean isAssociation)
Sets the association option of the attribute.


getIsLazyLoad

public boolean getIsLazyLoad()
Returns true if the attribute is lazy load.

Returns:

setIsLazyLoad

public void setIsLazyLoad(boolean isLazyLoad)
Sets the lazy load option of the attribute.


isProtected

public boolean isProtected()
Returns true if the attribute is protected.


setProtected

public void setProtected(boolean __protected)
Set protected option of the attribute.