|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.metadata.runtime.model.BasicMetadataObject
com.metamatrix.metadata.runtime.model.BasicElement
public class BasicElement
Constructor Summary | |
---|---|
BasicElement(ElementID element,
BasicVirtualDatabaseID virtualDBID)
Call constructor to instantiate a runtime object by passing the RuntimeID that identifies the entity and the VIrtualDatabaseID that identifes the Virtual Database the object will be contained. |
Method Summary | |
---|---|
DataType |
getActualDataType()
|
java.lang.String |
getAlias()
Return the alias. |
int |
getCharOctetLength()
|
DataType |
getDataType()
Returns the DataType this element is represented as. |
java.lang.Object |
getDefaultValue()
Returns the default value in the object form based on the data type for this element. |
java.lang.String |
getDescription()
Return the description. |
java.lang.String |
getFormat()
Returns the format the data for this element should be displayed as. |
java.lang.String |
getLabel()
Returns the label. |
int |
getLength()
If the data type is numeric, the length is the total number of significant digits used to express the number. |
java.lang.String |
getMaximumRange()
eturns the maximum value that the element can represent. |
java.lang.String |
getMinimumRange()
Returns the minimum value that the element can represent. |
Multiplicity |
getMultplicity()
Returns the multiplicity this element can have. |
java.lang.String |
getNameInSource()
Override the super method so that when the name is returned, it is the name and not the full path for an element |
short |
getNullType()
Returns a short indicating if the element can be set to null. |
int |
getPosition()
|
int |
getPrecisionLength()
|
int |
getRadix()
|
int |
getScale()
Returns the scale, which is the number of significant digits to the right of the decimal point. |
short |
getSearchType()
Return short indicating the search type supported on this element. |
boolean |
isAutoIncrement()
Returns a boolean indicating if the element is auto incremented by the database. |
boolean |
isCaseSensitive()
Returns a boolean indicating if the element data is case sensitive. |
boolean |
isCurrency()
Returns a boolean indicating if the element data represents currency. |
boolean |
isLengthFixed()
Returns a boolean indicating if the length is fixed. |
boolean |
isPhysical()
Returns a boolean indicating if this a physical element. |
boolean |
isSigned()
Returns a boolean indicating if the element data is signed. |
void |
setAlias(java.lang.String alias)
|
void |
setCharOctetLength(int charOctetLength)
|
void |
setDataType(DataType type)
|
void |
setDefaultValue(java.lang.String defaultValue)
|
void |
setDescription(java.lang.String description)
|
void |
setFormat(java.lang.String format)
|
void |
setIsAutoIncrement(boolean isAutoIncremented)
|
void |
setIsCaseSensitive(boolean isCaseSensitive)
|
void |
setIsCurrency(boolean isCurrency)
|
void |
setIsLengthFixed(boolean isLengthFixed)
|
void |
setIsSigned(boolean isSigned)
|
void |
setLabel(java.lang.String label)
|
void |
setLength(int length)
|
void |
setMaximumRange(java.lang.String maxRange)
|
void |
setMinimumRange(java.lang.String minRange)
|
void |
setMultplicity(Multiplicity multiplicity)
|
void |
setNullType(short nullType)
|
void |
setPhysical(boolean isPhysical)
|
void |
setPosition(int position)
|
void |
setPrecisionLength(int prcsnLength)
|
void |
setRadix(int radix)
|
void |
setScale(int scale)
|
void |
setSearchType(short searchType)
|
void |
setSupportsSelect(boolean sup_SELECT)
|
void |
setSupportsSet(boolean sup_SET)
|
void |
setSupportsSubscription(boolean sup_SUB)
|
void |
setSupportsUpdate(boolean sup_UPDATE)
|
boolean |
supportsSelect()
Returns a boolean indicating if the element can be selected |
boolean |
supportsSet()
Returns a boolean indicating if the element can be used in a SET operation. |
boolean |
supportsSubscription()
Returns a boolean indicating if the element can be subscribed to. |
boolean |
supportsUpdate()
Returns a boolean indicating if the element can be updated. |
Methods inherited from class com.metamatrix.metadata.runtime.model.BasicMetadataObject |
---|
addProperty, clone, compareTo, equals, getCurrentProperties, getFullName, getID, getName, getPath, getProperties, getVirtualDatabaseID, hashCode, hasNameInSource, setID, setProperties, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.metamatrix.metadata.runtime.api.Element |
---|
hasNameInSource |
Methods inherited from interface com.metamatrix.metadata.runtime.api.MetadataObject |
---|
clone, compareTo, equals, getFullName, getID, getName, getProperties, getVirtualDatabaseID, toString |
Constructor Detail |
---|
public BasicElement(ElementID element, BasicVirtualDatabaseID virtualDBID)
Method Detail |
---|
public java.lang.String getDescription()
Element
getDescription
in interface Element
public java.lang.String getNameInSource()
getNameInSource
in interface Element
getNameInSource
in class BasicMetadataObject
public java.lang.String getAlias()
Element
getAlias
in interface Element
getAlias
in class BasicMetadataObject
public void setAlias(java.lang.String alias)
public boolean isPhysical()
Element
isPhysical
in interface Element
public java.lang.String getLabel()
Element
getLabel
in interface Element
public DataType getDataType()
Element
DataType
this element is represented as.
If it is a user-defined type, the corresponding runtime type is returned.
getDataType
in interface Element
public DataType getActualDataType()
public int getScale()
Element
getScale
in interface Element
public int getLength()
Element
getLength
in interface Element
public boolean isLengthFixed()
Element
isLengthFixed
in interface Element
public short getNullType()
Element
getNullType
in interface Element
MetadataConstants.NULL_TYPES
public boolean supportsSelect()
Element
supportsSelect
in interface Element
public boolean supportsSet()
Element
supportsSet
in interface Element
public boolean supportsSubscription()
Element
supportsSubscription
in interface Element
public boolean supportsUpdate()
Element
supportsUpdate
in interface Element
public boolean isCaseSensitive()
Element
isCaseSensitive
in interface Element
public boolean isSigned()
Element
isSigned
in interface Element
public boolean isCurrency()
Element
isCurrency
in interface Element
public boolean isAutoIncrement()
Element
isAutoIncrement
in interface Element
public java.lang.String getMinimumRange()
Element
getMinimumRange
in interface Element
public java.lang.String getMaximumRange()
Element
getMaximumRange
in interface Element
public short getSearchType()
Element
getSearchType
in interface Element
MetadataConstants.SEARCH_TYPES
public java.lang.String getFormat()
Element
getFormat
in interface Element
public Multiplicity getMultplicity()
Element
getMultplicity
in interface Element
public java.lang.Object getDefaultValue()
Element
getDefaultValue
in interface Element
public int getPrecisionLength()
getPrecisionLength
in interface Element
public int getRadix()
getRadix
in interface Element
public int getCharOctetLength()
getCharOctetLength
in interface Element
public int getPosition()
public void setDescription(java.lang.String description)
public void setPhysical(boolean isPhysical)
public void setLabel(java.lang.String label)
public void setDataType(DataType type)
public void setScale(int scale)
public void setLength(int length)
public void setIsLengthFixed(boolean isLengthFixed)
public void setNullType(short nullType)
public void setSupportsSelect(boolean sup_SELECT)
public void setSupportsSet(boolean sup_SET)
public void setSupportsSubscription(boolean sup_SUB)
public void setSupportsUpdate(boolean sup_UPDATE)
public void setIsCaseSensitive(boolean isCaseSensitive)
public void setIsSigned(boolean isSigned)
public void setIsCurrency(boolean isCurrency)
public void setIsAutoIncrement(boolean isAutoIncremented)
public void setMinimumRange(java.lang.String minRange)
public void setMaximumRange(java.lang.String maxRange)
public void setSearchType(short searchType)
public void setFormat(java.lang.String format)
public void setMultplicity(Multiplicity multiplicity)
public void setDefaultValue(java.lang.String defaultValue)
public void setPrecisionLength(int prcsnLength)
public void setRadix(int radix)
public void setCharOctetLength(int charOctetLength)
public void setPosition(int position)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |