| java.lang.Object org.netbeans.modules.dbschema.jdbcimpl.DBElementImpl org.netbeans.modules.dbschema.jdbcimpl.DBMemberElementImpl org.netbeans.modules.dbschema.jdbcimpl.ColumnElementImpl
Method Summary | |
public Integer | getLength() Get the length of the column - for character type fields only. | public Integer | getPrecision() Get the precision of the column - for numeric type fields only. | public Integer | getScale() Get the scale of the column - for numeric type fields only. | public int | getType() Get the value type of the column. | public boolean | isNullable() Returns whether the column is nullable. | public void | setLength(Integer length) Set the length of the column - for character type fields only. | public void | setNullable(boolean isNullable) Set whether the column is nullable. | public void | setPrecision(Integer precision) Set the precision of the column - for numeric type fields only. | public void | setScale(Integer scale) Set the scale of the column - for numeric type fields only. | public void | setType(int type) Set the value type of the column. |
_isNullable | protected boolean _isNullable(Code) | | |
_type | protected int _type(Code) | | |
ColumnElementImpl | public ColumnElementImpl()(Code) | | Creates new ColumnElementImpl
|
ColumnElementImpl | public ColumnElementImpl(String name)(Code) | | Creates new ColumnElementImpl with the specified name
|
getLength | public Integer getLength()(Code) | | Get the length of the column - for character type fields only.
the length, null if it is not a character typefield or there is no length. |
getPrecision | public Integer getPrecision()(Code) | | Get the precision of the column - for numeric type fields only.
the precision, null if it is not a numeric typefield or there is no precision. |
getScale | public Integer getScale()(Code) | | Get the scale of the column - for numeric type fields only.
the scale, null if it is not a numeric typefield or there is no scale. |
getType | public int getType()(Code) | | Get the value type of the column.
the type |
isNullable | public boolean isNullable()(Code) | | Returns whether the column is nullable.
a flag representing whether the column is nullable |
setLength | public void setLength(Integer length) throws DBException(Code) | | Set the length of the column - for character type fields only.
Parameters: length - the length for the column if it a character type throws: DBException - if impossible |
setNullable | public void setNullable(boolean isNullable) throws DBException(Code) | | Set whether the column is nullable.
Parameters: flag - flag representing whether the column is nullable throws: DBException - if impossible |
setPrecision | public void setPrecision(Integer precision) throws DBException(Code) | | Set the precision of the column - for numeric type fields only.
Parameters: precision - the precision for the column if it a numeric type throws: DBException - if impossible |
setScale | public void setScale(Integer scale) throws DBException(Code) | | Set the scale of the column - for numeric type fields only.
Parameters: scale - the scale for the column if it a numeric type throws: DBException - if impossible |
setType | public void setType(int type) throws DBException(Code) | | Set the value type of the column.
Parameters: type - the type throws: DBException - if impossible |
|
|