|
|||||||||
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 org.jboss.dna.common.jdbc.model.spi.TableColumnBean
public class TableColumnBean
Provides all database table column specific metadata.
Constructor Summary | |
---|---|
TableColumnBean()
Default constructor |
Method Summary | |
---|---|
ColumnPseudoType |
getPseudoType()
Return column's pseudo type |
Reference |
getReference()
Returns column reference if datatype is REF |
Boolean |
isBestRowIdentifier()
Is this column the part of Best Row Identifier in any scope? |
Boolean |
isForeignKeyColumn()
Retrieves true if column is part of foreign key. |
Boolean |
isIndexColumn()
Retrieves true if column is part of any index. |
Boolean |
isPrimaryKeyColumn()
Retrieves true if column is part of primary key. |
Boolean |
isVersionColumn()
Retrieves true if column is automatically updated when any value in a row is updated. |
void |
setBestRowIdentifier(Boolean bestRowIdentifier)
Is this column the part of Best Row Identifier in any scope? |
void |
setForeignKeyColumn(Boolean foreignKeyColumn)
Sets true if column is part of foreign key. |
void |
setIndexColumn(Boolean indexColumn)
Sets true if column is part of any index. |
void |
setPrimaryKeyColumn(Boolean primaryKeyColumn)
Sets true if column is part of primary key. |
void |
setPseudoType(ColumnPseudoType pseudoType)
Sets column's pseudo type |
void |
setReference(Reference reference)
Sets column reference if datatype is REF |
void |
setVersionColumn(Boolean versionColumn)
Sets true if column is automatically updated when any value in a row is updated. |
Methods inherited from class org.jboss.dna.common.jdbc.model.spi.ColumnBean |
---|
addPrivilege, deletePrivilege, findPriviledgeByName, getCharOctetLength, getDefaultValue, getNullabilityType, getOrdinalPosition, getOwner, getPrecision, getPrivileges, getRadix, getSize, getSqlType, getTypeName, setCharOctetLength, setDefaultValue, setNullabilityType, setOrdinalPosition, setOwner, setPrecision, setRadix, setSize, setSqlType, setTypeName |
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.Column |
---|
addPrivilege, deletePrivilege, findPriviledgeByName, getCharOctetLength, getDefaultValue, getNullabilityType, getOrdinalPosition, getOwner, getPrecision, getPrivileges, getRadix, getSize, getSqlType, getTypeName, setCharOctetLength, setDefaultValue, setNullabilityType, setOrdinalPosition, setOwner, setPrecision, setRadix, setSize, setSqlType, setTypeName |
Methods inherited from interface org.jboss.dna.common.jdbc.model.api.DatabaseNamedObject |
---|
addExtraProperty, deleteExtraProperty, getExtraProperties, getExtraProperty, getName, getRemarks, setName, setRemarks |
Constructor Detail |
---|
public TableColumnBean()
Method Detail |
---|
public Boolean isBestRowIdentifier()
isBestRowIdentifier
in interface TableColumn
public void setBestRowIdentifier(Boolean bestRowIdentifier)
setBestRowIdentifier
in interface TableColumn
bestRowIdentifier
- true if this column is the part of Best Row Identifier in any scope, otherwise return false (even
if unknown)public ColumnPseudoType getPseudoType()
getPseudoType
in interface TableColumn
public void setPseudoType(ColumnPseudoType pseudoType)
setPseudoType
in interface TableColumn
pseudoType
- the column's pseudo typepublic Reference getReference()
getReference
in interface TableColumn
public void setReference(Reference reference)
setReference
in interface TableColumn
reference
- the column reference if datatype is REFpublic Boolean isVersionColumn()
isVersionColumn
in interface TableColumn
public void setVersionColumn(Boolean versionColumn)
setVersionColumn
in interface TableColumn
versionColumn
- true if column is automatically updated when any value in a row is updated, return false overwise.public Boolean isPrimaryKeyColumn()
isPrimaryKeyColumn
in interface TableColumn
public void setPrimaryKeyColumn(Boolean primaryKeyColumn)
setPrimaryKeyColumn
in interface TableColumn
primaryKeyColumn
- true if column is part of primary key, return false overwise.public Boolean isForeignKeyColumn()
isForeignKeyColumn
in interface TableColumn
public void setForeignKeyColumn(Boolean foreignKeyColumn)
setForeignKeyColumn
in interface TableColumn
foreignKeyColumn
- true if column is part of foreign key, return false overwise.public Boolean isIndexColumn()
isIndexColumn
in interface TableColumn
public void setIndexColumn(Boolean indexColumn)
setIndexColumn
in interface TableColumn
indexColumn
- true if column is part of any index, return false overwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |