|
||||||||||
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. |
|
ServerColumnMetaData(Name pName,
ColumnMetaData pColumnMetaData)
Constructs a ServerColumnMetaData with a specific name and Column MetaData. |
Method Summary | |
---|---|
ServerColumnMetaData |
clone()
|
java.lang.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()
It gets the corresponding IDataType to the meta data column. |
java.lang.Object |
getDefaultValue()
Gets the default value of this column. |
int |
getDetectedType()
Returns the detected type 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. |
java.lang.String |
getQuotedName()
Returns the quoted column name. |
java.lang.String |
getRealQueryColumnName()
Returns the used name in the database (real column) for the query column. |
int |
getScale()
Returns the scale of this column. |
int |
getSQLType()
Returns the SQL type of this column. |
java.lang.String |
getSQLTypeName()
Returns the SQL type name of this column. |
int |
getTypeIdentifier()
Returns the used data type for this ServerColumnMetaData . |
boolean |
isAutoIncrement()
Returns true if this ColumnMetaData is an auto increment column. |
boolean |
isCalculated()
Returns whether this column is writeable. |
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 pAutoIncrement)
Sets if this ColumnMetaData is an auto increment column. |
void |
setCalculated(boolean pCalculated)
Sets whether this column is calculated. |
void |
setColumnMetaData(ColumnMetaData pColumnMetaData)
Sets the ColumnMetaData client infos. |
void |
setDefaultValue(java.lang.Object pValue)
Sets the default value of this column. |
void |
setDetectedType(int pDetectedType)
Sets the detected type of this column. |
void |
setLabel(java.lang.String pLabel)
Sets default label. |
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(java.lang.String pRealQueryColumnName)
The name the use in the database (real column) to query the column. |
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(java.lang.String pSQLTypeName)
Sets the SQL type name of this column. |
void |
setTypeIdentifier(int pTypeIdentifier)
Sets the used data type this ColumnMetaData . |
void |
setWritable(boolean pWriteable)
Sets whether this column is writeable. |
java.lang.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 namepublic ServerColumnMetaData(Name pName, ColumnMetaData pColumnMetaData)
ServerColumnMetaData
with a specific name and Column MetaData.
pName
- the column namepColumnMetaData
- the column metaDataMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public ServerColumnMetaData clone()
clone
in class java.lang.Object
public ColumnMetaData getColumnMetaData()
public void setColumnMetaData(ColumnMetaData pColumnMetaData)
pColumnMetaData
- the ColumnMetaData client infos.public IDataType getDataType()
IDataType
to the meta data column.
IDataType
.public java.lang.String getName()
public java.lang.String getQuotedName()
public Name getColumnName()
public java.lang.String getLabel()
public void setLabel(java.lang.String pLabel)
pLabel
- the default label. to setpublic void setTypeIdentifier(int pTypeIdentifier)
ColumnMetaData
.
pTypeIdentifier
- the type identifier for this ColumnMetaData
.public int getTypeIdentifier()
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 java.lang.String getSQLTypeName()
public void setSQLTypeName(java.lang.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 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 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 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.public java.lang.String getRealQueryColumnName()
public void setRealQueryColumnName(java.lang.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 |