|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.dna.common.jdbc.model.spi.CoreMetaDataBean org.jboss.dna.common.jdbc.model.spi.DatabaseNamedObjectBean org.jboss.dna.common.jdbc.model.spi.ColumnBean
public class ColumnBean
Provides all column specific metadata.
Constructor Summary | |
---|---|
ColumnBean()
Default constructor |
Method Summary | |
---|---|
void |
addPrivilege(Privilege privilege)
Adds table column priviledge |
void |
deletePrivilege(Privilege privilege)
Deletes table column priviledge |
Privilege |
findPriviledgeByName(String priviledgeName)
Searches priviledge by name |
Integer |
getCharOctetLength()
For char types returns the maximum number of bytes in the column. |
String |
getDefaultValue()
Gets default value (may be null ) |
NullabilityType |
getNullabilityType()
Gets column nullability |
Integer |
getOrdinalPosition()
Returns index of column starting at 1 - if applicable. |
SchemaObject |
getOwner()
Returns owner of ColumnMetaData such as Table, or Stored Procedure, UDT, PK, FK, Index, etc. |
Integer |
getPrecision()
Gets precision if applicable otherwise 0. |
Set<Privilege> |
getPrivileges()
Gets table column privileges. |
Integer |
getRadix()
Gets radix if applicable |
Integer |
getSize()
Gets column size. |
SqlType |
getSqlType()
Gets SQL type from java.sql.Types |
String |
getTypeName()
Data source dependent type name. |
void |
setCharOctetLength(Integer charOctetLength)
For char types sets the maximum number of bytes in the column. |
void |
setDefaultValue(String defaultValue)
Sets default value (may be null ) |
void |
setNullabilityType(NullabilityType nullabilityType)
Sets column nullability |
void |
setOrdinalPosition(Integer ordinalPosition)
Sets index of column starting at 1 - if applicable. |
void |
setOwner(SchemaObject owner)
Sets the owner of ColumnMetaData |
void |
setPrecision(Integer precision)
Sets precision if applicable otherwise 0. |
void |
setRadix(Integer radix)
Sets radix if applicable |
void |
setSize(Integer size)
Sets column size. |
void |
setSqlType(SqlType sqlType)
Sets SQL type from java.sql.Types |
void |
setTypeName(String typeName)
Data source dependent type name. |
Methods inherited from class org.jboss.dna.common.jdbc.model.spi.DatabaseNamedObjectBean |
---|
addExtraProperty, deleteExtraProperty, getExtraProperties, getExtraProperty, getName, getRemarks, setName, setRemarks |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.dna.common.jdbc.model.api.DatabaseNamedObject |
---|
addExtraProperty, deleteExtraProperty, getExtraProperties, getExtraProperty, getName, getRemarks, setName, setRemarks |
Constructor Detail |
---|
public ColumnBean()
Method Detail |
---|
public SchemaObject getOwner()
getOwner
in interface Column
public void setOwner(SchemaObject owner)
setOwner
in interface Column
owner
- the owner of ColumnMetaDatapublic NullabilityType getNullabilityType()
getNullabilityType
in interface Column
public void setNullabilityType(NullabilityType nullabilityType)
setNullabilityType
in interface Column
nullabilityType
- the column nullabilitypublic SqlType getSqlType()
getSqlType
in interface Column
public void setSqlType(SqlType sqlType)
setSqlType
in interface Column
sqlType
- the SQL type from java.sql.Typespublic String getTypeName()
getTypeName
in interface Column
public void setTypeName(String typeName)
setTypeName
in interface Column
typeName
- data source dependent type namepublic Integer getSize()
getSize
in interface Column
public void setSize(Integer size)
setSize
in interface Column
size
- the column sizepublic Integer getPrecision()
getPrecision
in interface Column
public void setPrecision(Integer precision)
setPrecision
in interface Column
precision
- the precision if applicable otherwise 0public Integer getRadix()
getRadix
in interface Column
public void setRadix(Integer radix)
setRadix
in interface Column
radix
- if applicablepublic String getDefaultValue()
null
)
getDefaultValue
in interface Column
null
)public void setDefaultValue(String defaultValue)
null
)
setDefaultValue
in interface Column
defaultValue
- the default value (may be null
)public Integer getOrdinalPosition()
getOrdinalPosition
in interface Column
public void setOrdinalPosition(Integer ordinalPosition)
setOrdinalPosition
in interface Column
ordinalPosition
- the index of column starting at 1 - if applicable. Otherwise returns -1.public Integer getCharOctetLength()
getCharOctetLength
in interface Column
public void setCharOctetLength(Integer charOctetLength)
setCharOctetLength
in interface Column
charOctetLength
- For char types sets the maximum number of bytes in the column. Otherwise -1.public Set<Privilege> getPrivileges()
getPrivileges
in interface Column
public void addPrivilege(Privilege privilege)
addPrivilege
in interface Column
privilege
- the table column priviledgepublic void deletePrivilege(Privilege privilege)
deletePrivilege
in interface Column
privilege
- the table column priviledgepublic Privilege findPriviledgeByName(String priviledgeName)
findPriviledgeByName
in interface Column
priviledgeName
- the priviledge name to search
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |