|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.rad.persist.ColumnMetaData
public class ColumnMetaData
A ColumnMetaData
is a description of the data type and other
attributes of a table storage column. (persists on server)
IDataType
,
Serialized FormField Summary | |
---|---|
protected IDataType |
cachedDataType
Cached data type for performance. |
Constructor Summary | |
---|---|
ColumnMetaData()
Constructs a ColumnMetaData with defaults. |
|
ColumnMetaData(java.lang.String pName)
Constructs a ColumnMetaData with a specific name. |
|
ColumnMetaData(java.lang.String pName,
int pTypeIdentifier)
Constructs a ColumnMetaData with a specific name and data type identifier. |
Method Summary | |
---|---|
ColumnMetaData |
clone()
|
ColumnDefinition |
createColumnDefinition()
It converts a server ColumnMetaData to an client ColumnDefinition and returns it. |
IDataType |
createDataType()
It creates the corresponding IDataType to the meta data column. |
boolean |
equals(java.lang.Object pObject)
|
java.lang.Object[] |
getAllowedValues()
Gets the allowed values for this column. |
IDataType |
getDataType()
It gets the corresponding IDataType to the meta data column. |
static java.lang.String |
getDefaultLabel(java.lang.String pName)
It returns an default label for the pName. |
java.lang.Object |
getDefaultValue()
Gets the default value of this column. |
java.lang.String |
getLabel()
Returns the default label. |
StorageReferenceDefinition |
getLinkReference()
Returns the link reference for a server side dropdown list (automatic linked celleditor). |
java.lang.String |
getName()
Returns the column name. |
int |
getPrecision()
Returns the precision/size of this column. |
int |
getScale()
Returns the scale of this column. |
int |
getTypeIdentifier()
Returns the used data type for this ColumnMetaData . |
int |
hashCode()
|
protected ColumnDefinition |
initializeColumnDefinition(ColumnDefinition pColumnDefinition)
Initializes the ColumnDefinition with the given ColumnMetaData . |
boolean |
isAutoIncrement()
Returns true if this ColumnMetaData is an auto increment column. |
boolean |
isCalculated()
Returns whether this column is calculated. |
boolean |
isFetchLargeObjectsLazy()
If large objects in this column should be lazily fetched, meaning that they are only send to the client if the client actually requests that very value. |
boolean |
isNullable()
Returns true if values in this column may be null. |
boolean |
isSigned()
Returns if this ColumnMetaData is signed. |
boolean |
isWritable()
Returns whether this column is writeable. |
void |
setAllowedValues(java.lang.Object[] pValues)
Sets the allowed values for this column. |
void |
setAutoIncrement(boolean autoIncrement)
Sets if this ColumnMetaData is an auto increment column. |
void |
setCalculated(boolean pCalculated)
Sets whether this column is calculated. |
void |
setDefaultValue(java.lang.Object pValue)
Sets the default value of this column. |
void |
setFetchLargeObjectsLazy(boolean pFetchLargeObjectsLazy)
Sets if large objects in this column should be lazily fetched, meaning that they are only send to the client if the client actually requests that very value. |
void |
setLabel(java.lang.String pLabel)
Sets default label. |
void |
setLinkReference(StorageReferenceDefinition pLinkReference)
Sets the link reference for an server side Dropdown list (automatic linked celleditor). |
void |
setName(java.lang.String pName)
Set the name of the column. |
void |
setNullable(boolean pNullable)
Sets whether values in this column may be null. |
void |
setPrecision(int pPrecision)
Sets the precision/size of this column. |
void |
setScale(int pScale)
Sets the scale of this column. |
void |
setSigned(boolean pSigned)
Sets if this ColumnMetaData is signed. |
void |
setTypeIdentifier(int pTypeIdentifier)
Sets the used data type for this ColumnMetaData . |
void |
setWritable(boolean pWriteable)
Sets whether this column is writeable. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected IDataType cachedDataType
Constructor Detail |
---|
public ColumnMetaData()
ColumnMetaData
with defaults.
public ColumnMetaData(java.lang.String pName)
ColumnMetaData
with a specific name.
pName
- the column namepublic ColumnMetaData(java.lang.String pName, int pTypeIdentifier)
ColumnMetaData
with a specific name and data type identifier.
pName
- the column namepTypeIdentifier
- the data type identifierMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public ColumnMetaData clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object pObject)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void setName(java.lang.String pName)
pName
- column namepublic java.lang.String getName()
public java.lang.String getLabel()
public void setLabel(java.lang.String pLabel)
pLabel
- the default label. to setpublic boolean isFetchLargeObjectsLazy()
true
if large objects should be fetched lazy.public void setFetchLargeObjectsLazy(boolean pFetchLargeObjectsLazy)
pFetchLargeObjectsLazy
- true
if large objects should be fetched lazy.public void setTypeIdentifier(int pTypeIdentifier)
ColumnMetaData
.
pTypeIdentifier
- the data type identifier for this ColumnMetaData
.public int getTypeIdentifier()
ColumnMetaData
.
ColumnMetaData
.public void setNullable(boolean pNullable)
pNullable
- true if values in this column may be null.public boolean isNullable()
public int getPrecision()
public void setPrecision(int pPrecision)
pPrecision
- the precision/size of this column.public int getScale()
public void setScale(int pScale)
pScale
- the scale of this column.public void setWritable(boolean pWriteable)
pWriteable
- true if column is writeable.public boolean isWritable()
public void setCalculated(boolean pCalculated)
pCalculated
- true if column is calculated.public boolean isCalculated()
public boolean isSigned()
ColumnMetaData
is signed.
ColumnMetaData
is signed.public void setSigned(boolean pSigned)
ColumnMetaData
is signed.
pSigned
- true, if signed.public boolean isAutoIncrement()
true
if this ColumnMetaData
is an auto increment column.
true
if this ColumnMetaData
is an auto increment column.public void setAutoIncrement(boolean autoIncrement)
ColumnMetaData
is an auto increment column.
autoIncrement
- the bAutoIncrement to setpublic StorageReferenceDefinition getLinkReference()
public void setLinkReference(StorageReferenceDefinition pLinkReference)
pLinkReference
- the link reference to setpublic ColumnDefinition createColumnDefinition() throws ModelException
ModelException
- if the ColumnDefintion couldn't createdprotected ColumnDefinition initializeColumnDefinition(ColumnDefinition pColumnDefinition) throws ModelException
ColumnMetaData
.
pColumnDefinition
- the ColumnDefinition to use.
ModelException
- if the ColumnDefintion couldn't createdpublic IDataType getDataType()
IDataType
to the meta data column.
IDataType
.public IDataType createDataType()
IDataType
to the meta data column.
IDataType
.public static java.lang.String getDefaultLabel(java.lang.String pName)
pName
- the Column Name to use.
public void setDefaultValue(java.lang.Object pValue)
pValue
- the default valuepublic java.lang.Object getDefaultValue()
null
if the column has no default valuepublic void setAllowedValues(java.lang.Object[] pValues)
pValues
- the allowed values or null
when any value is allowedpublic java.lang.Object[] getAllowedValues()
Object
[] with values, possible for the column.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |