|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Column
Provides all column specific metadata.
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 interface org.jboss.dna.common.jdbc.model.api.DatabaseNamedObject |
---|
addExtraProperty, deleteExtraProperty, getExtraProperties, getExtraProperty, getName, getRemarks, setName, setRemarks |
Method Detail |
---|
SchemaObject getOwner()
void setOwner(SchemaObject owner)
owner
- the owner of ColumnMetaDataNullabilityType getNullabilityType()
void setNullabilityType(NullabilityType nullabilityType)
nullabilityType
- the column nullabilitySqlType getSqlType()
void setSqlType(SqlType sqlType)
sqlType
- the SQL type from java.sql.TypesString getTypeName()
void setTypeName(String typeName)
typeName
- data source dependent type nameInteger getSize()
void setSize(Integer size)
size
- the column sizeInteger getPrecision()
void setPrecision(Integer precision)
precision
- the precision if applicable otherwise 0Integer getRadix()
void setRadix(Integer radix)
radix
- if applicableString getDefaultValue()
null
)
null
)void setDefaultValue(String defaultValue)
null
)
defaultValue
- the default value (may be null
)Integer getOrdinalPosition()
void setOrdinalPosition(Integer ordinalPosition)
ordinalPosition
- the index of column starting at 1 - if applicable. Otherwise returns -1.Integer getCharOctetLength()
void setCharOctetLength(Integer charOctetLength)
charOctetLength
- For char types sets the maximum number of bytes in the column. Otherwise -1.Set<Privilege> getPrivileges()
void addPrivilege(Privilege privilege)
privilege
- the table column priviledgevoid deletePrivilege(Privilege privilege)
privilege
- the table column priviledgePrivilege findPriviledgeByName(String priviledgeName)
priviledgeName
- the priviledge name to search
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |