|
||||||||||
| 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. |
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 |
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 Elementpublic java.lang.String getNameInSource()
getNameInSource in interface ElementgetNameInSource in class BasicMetadataObjectpublic java.lang.String getAlias()
Element
getAlias in interface ElementgetAlias in class BasicMetadataObjectpublic void setAlias(java.lang.String alias)
public boolean isPhysical()
Element
isPhysical in interface Elementpublic java.lang.String getLabel()
Element
getLabel in interface Elementpublic DataType getDataType()
ElementDataType this element is represented as.
If it is a user-defined type, the corresponding runtime type is returned.
getDataType in interface Elementpublic DataType getActualDataType()
public int getScale()
Element
getScale in interface Elementpublic int getLength()
Element
getLength in interface Elementpublic boolean isLengthFixed()
Element
isLengthFixed in interface Elementpublic short getNullType()
Element
getNullType in interface ElementMetadataConstants.NULL_TYPESpublic boolean supportsSelect()
Element
supportsSelect in interface Elementpublic boolean supportsSet()
Element
supportsSet in interface Elementpublic boolean supportsSubscription()
Element
supportsSubscription in interface Elementpublic boolean supportsUpdate()
Element
supportsUpdate in interface Elementpublic boolean isCaseSensitive()
Element
isCaseSensitive in interface Elementpublic boolean isSigned()
Element
isSigned in interface Elementpublic boolean isCurrency()
Element
isCurrency in interface Elementpublic boolean isAutoIncrement()
Element
isAutoIncrement in interface Elementpublic java.lang.String getMinimumRange()
Element
getMinimumRange in interface Elementpublic java.lang.String getMaximumRange()
Element
getMaximumRange in interface Elementpublic short getSearchType()
Element
getSearchType in interface ElementMetadataConstants.SEARCH_TYPESpublic java.lang.String getFormat()
Element
getFormat in interface Elementpublic java.lang.Object getDefaultValue()
Element
getDefaultValue in interface Elementpublic int getPrecisionLength()
getPrecisionLength in interface Elementpublic int getRadix()
getRadix in interface Elementpublic int getCharOctetLength()
getCharOctetLength in interface Elementpublic 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 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 | |||||||||