|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sibvisions.rad.persist.jdbc.ServerColumnMetaData
public class ServerColumnMetaData
A ServerColumnMetaData
is a description of the data type and other
attributes of a table storage column. (persists on server)
It also includes the server relevant infos, in addition to the ColumnMetaData
just for the client.
IDataType
,
ColumnMetaData
Constructor Summary | |
---|---|
ServerColumnMetaData()
Constructs a ServerColumnMetaData with defaults. |
|
ServerColumnMetaData(Name pName)
Constructs a ServerColumnMetaData with a specific name. |
Method Summary | |
---|---|
ServerColumnMetaData |
clone()
|
Object[] |
getAllowedValues()
Gets the allowed values for this column. |
ColumnMetaData |
getColumnMetaData()
Returns the ColumnMetaData client infos. |
Name |
getColumnName()
Returns the name object for that column. |
IDataType |
getDataType()
Returns the used data type for this ServerColumnMetaData . |
Object |
getDefaultValue()
Gets the default value of this column. |
int |
getDetectedType()
Returns the detected type of this column. |
String |
getLabel()
Returns the default label. |
ForeignKey |
getLinkForeignKey()
Returns the foreign key for a server side Droopdown list (automatic linked celleditor). |
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 |
getQuotedName()
Returns the quoted column name. |
String |
getRealQueryColumnName()
Returns the name the use in the database (real column) for the query the column. |
int |
getScale()
Returns the scale of this column. |
int |
getSQLType()
Returns the SQL type of this column. |
String |
getSQLTypeName()
Returns the SQL type name 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 |
setAllowedValues(Object[] pValues)
Sets the allowed values for this column. |
void |
setAutoIncrement(boolean pAutoIncrement)
Sets if this ColumnMetaData is an auto increment column. |
void |
setDataType(IDataType pDataType)
Sets the used data type this ServerColumnMetaData . |
void |
setDataType(int pTypeIdentifier)
Sets the used data type this ColumnMetaData . |
void |
setDefaultValue(Object pValue)
Sets the default value of this column. |
void |
setDetectedType(int pDetectedType)
Sets the detected type of this column. |
void |
setLabel(String pLabel)
Sets default label. |
void |
setLinkForeignKey(ForeignKey pForeignKey)
Sets the foreign key for a server side Droopdown list (automatic linked celleditor). |
void |
setLinkReference(StorageReferenceDefinition pLinkReference)
Sets the link reference for a server side Dropdown list (automatic linked celleditor). |
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 |
setRealQueryColumnName(String pRealQueryColumnName)
The name the use in the database (real column) to query the column. e.g. w.name alias -> sRealQueryColumnName=w.name, ColumnName = alias. |
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 |
setSQLTypeName(String pSQLTypeName)
Sets the SQL type name of this column. |
void |
setWritable(boolean pWriteable)
Sets whether this column is writeable. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ServerColumnMetaData()
ServerColumnMetaData
with defaults.
public ServerColumnMetaData(Name pName)
ServerColumnMetaData
with a specific name.
pName
- the column nameMethod Detail |
---|
public String toString()
toString
in class Object
public ServerColumnMetaData clone()
clone
in class Object
public ColumnMetaData getColumnMetaData()
public String getName()
public String getQuotedName()
public Name getColumnName()
public String getLabel()
public void setLabel(String pLabel)
pLabel
- the default label. to setpublic void setDataType(int pTypeIdentifier)
ColumnMetaData
.
pTypeIdentifier
- the type identifier for this ColumnMetaData
.public void setDataType(IDataType pDataType)
ServerColumnMetaData
.
pDataType
- the data type for this ServerColumnMetaData
.public IDataType getDataType()
ServerColumnMetaData
.
ServerColumnMetaData
.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 int getDetectedType()
public void setDetectedType(int pDetectedType)
pDetectedType
- the detected type of this column.public String getSQLTypeName()
public void setSQLTypeName(String pSQLTypeName)
pSQLTypeName
- the SQL type name of this column.public void setWritable(boolean pWriteable)
pWriteable
- 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 pAutoIncrement)
ColumnMetaData
is an auto increment column.
pAutoIncrement
- the bAutoIncrement to setpublic StorageReferenceDefinition getLinkReference()
public void setLinkReference(StorageReferenceDefinition pLinkReference)
pLinkReference
- the link reference to setpublic ForeignKey getLinkForeignKey()
public void setLinkForeignKey(ForeignKey pForeignKey)
pForeignKey
- the foreign key definitionpublic 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.public String getRealQueryColumnName()
public void setRealQueryColumnName(String pRealQueryColumnName)
pRealQueryColumnName
- the name the use in the database (real column) to query the column.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |