|
||||||||||
| 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 Form| Constructor Summary | |
|---|---|
ColumnMetaData()
Constructs a ColumnMetaData with defaults. |
|
ColumnMetaData(String pName)
Constructs a ColumnMetaData with a specific name. |
|
ColumnMetaData(String pName,
int pTypeIdentifier)
Constructs a ColumnMetaData with a specific name and data type identifier. |
|
| Method Summary | |
|---|---|
ColumnMetaData |
clone()
|
static ColumnDefinition |
createColumnDefinition(ColumnMetaData pColumnMetaData)
It converts a server ColumnMetaData to an client ColumnDefinition and returns it. |
static ColumnMetaData |
createColumnMetaData(ColumnDefinition pColumnDefinition)
It returns the ColumnMetaData to the corresponding ColumnDefinition. |
static IDataType |
createDataType(ColumnMetaData pColumnMetaData)
It creates the corresponding IDataType to the meta data column. |
boolean |
equals(Object pObject)
|
Object[] |
getAllowedValues()
Gets the allowed values for this column. |
static String |
getDefaultLabel(String pName)
It returns an default label for the pName. |
Object |
getDefaultValue()
Gets the default value of this column. |
String |
getLabel()
Returns the default label. |
StorageReferenceDefinition |
getLinkReference()
Returns the link reference for a server side dropdown list (automatic linked celleditor). |
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()
|
boolean |
isAutoIncrement()
Returns true if this ColumnMetaData is an auto increment column. |
boolean |
isCalculated()
Returns whether this column is calculated. |
boolean |
isFetchLargObjectsLazy()
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(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(Object pValue)
Sets the default value of this column. |
void |
setFetchLargObjectsLazy(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(String pLabel)
Sets default label. |
void |
setLinkReference(StorageReferenceDefinition pLinkReference)
Sets the link reference for an server side Dropdown list (automatic linked celleditor). |
void |
setName(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. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ColumnMetaData()
ColumnMetaData with defaults.
public ColumnMetaData(String pName)
ColumnMetaData with a specific name.
pName - the column name
public ColumnMetaData(String pName,
int pTypeIdentifier)
ColumnMetaData with a specific name and data type identifier.
pName - the column namepTypeIdentifier - the data type identifier| Method Detail |
|---|
public String toString()
toString in class Objectpublic ColumnMetaData clone()
clone in class Objectpublic boolean equals(Object pObject)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic void setName(String pName)
pName - column namepublic String getName()
public String getLabel()
public void setLabel(String pLabel)
pLabel - the default label. to setpublic boolean isFetchLargObjectsLazy()
true if large objects should be fetched lazy.public void setFetchLargObjectsLazy(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 set
public static ColumnDefinition createColumnDefinition(ColumnMetaData pColumnMetaData)
throws ModelException
pColumnMetaData - the server column meta data to convert.
ModelException - if the ColumnDefintion couldn't createdpublic static IDataType createDataType(ColumnMetaData pColumnMetaData)
IDataType to the meta data column.
pColumnMetaData - the MetaDataColumn to use.
IDataType.public static ColumnMetaData createColumnMetaData(ColumnDefinition pColumnDefinition)
ColumnDefinition.
pColumnDefinition - the ColumnDefinition to use.
ColumnDefinition.public static String getDefaultLabel(String pName)
pName - the Column Name to use.
public void setDefaultValue(Object pValue)
pValue - the default valuepublic Object getDefaultValue()
null if the column has no default valuepublic void setAllowedValues(Object[] pValues)
pValues - the allowed values or null when any value is allowedpublic 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 | |||||||||