|
||||||||||
| 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 ColumnDefinition with the specified name. |
|
ColumnMetaData(String pName)
Constructs a ColumnDefinition with the specified name. |
|
| Method Summary | |
|---|---|
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. |
IStorage |
getAutomaticLinkStorage()
Returns the DBStorage to the server side dropdown list (automatic linked celleditor). |
static String[] |
getColumnNames(ColumnMetaData[] auColumnMetaData)
Returns all column names of the ColumnMetaData[]. |
String |
getDataType()
Returns the used java data type class name for this ColumnMetaData. |
static String |
getDefaultLabel(String pName)
It returns an default label for the pName. |
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. |
String |
getRealColumnName()
Returns the name the use in the database (real column) for the column name. |
int |
getScale()
Returns the scale of this column. |
int |
getSQLType()
Returns the SQL type of this column. |
boolean |
isAutoIncrement()
Returns true if this ColumnMetaData is an auto increment column. |
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 |
setAutoIncrement(boolean autoIncrement)
Sets if this ColumnMetaData is an auto increment column. |
void |
setAutomaticLinkStorage(IStorage pStorage)
Sets the DBStorage to the server side dropdown list (automatic linked celleditor). |
void |
setDataType(String pDataTypeClassName)
Sets the used java data type class name for this ColumnMetaData. |
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 |
setRealColumnName(String pRealColumnName)
Sets the name the use in the database (real column) for the column name. |
void |
setScale(int pScale)
Sets the scale of this column. |
void |
setSigned(boolean pSigned)
Sets if this ColumnMetaData is signed. |
void |
setSQLType(int pSQLType)
Sets the SQL type of this column. |
void |
setWritable(boolean pStorable)
Sets whether this column is writeable. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ColumnMetaData()
ColumnDefinition with the specified name.
public ColumnMetaData(String pName)
ColumnDefinition with the specified name.
pName - is the for every RowDefinition unique name| Method Detail |
|---|
public String toString()
toString 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 void setDataType(String pDataTypeClassName)
ColumnMetaData.
pDataTypeClassName - the java data type class name for this ColumnMetaData.public String getDataType()
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 int getSQLType()
public void setSQLType(int pSQLType)
pSQLType - the SQL type of this column.public void setWritable(boolean pStorable)
pStorable - true if column is writeable.public boolean isWritable()
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 IStorage getAutomaticLinkStorage()
public void setAutomaticLinkStorage(IStorage pStorage)
pStorage - the DBStorage to the server side dropdown list (automatic linked celleditor) to setpublic String getRealColumnName()
public void setRealColumnName(String pRealColumnName)
pRealColumnName - the name the use in the database (real column) for the column name 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 static String[] getColumnNames(ColumnMetaData[] auColumnMetaData)
auColumnMetaData - the ColumnMetaData[] to use.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||