| java.lang.Object net.sourceforge.squirrel_sql.fw.datasetviewer.ColumnDisplayDefinition
ColumnDisplayDefinition | public class ColumnDisplayDefinition (Code) | | This defines the display information for a column.
author: Colin Bell |
Constructor Summary | |
public | ColumnDisplayDefinition(int displayWidth, String label) Ctor. | public | ColumnDisplayDefinition(int displayWidth, String fullTableColumnName, String columnName, String label, int sqlType, String sqlTypeName, boolean isNullable, int columnSize, int precision, int scale, boolean isSigned, boolean isCurrency, boolean isAutoIncrement) Constructor for use when the type of data in the column is known/needed. | public | ColumnDisplayDefinition(ResultSet rs, int idx) Constructs a new ColumnDisplayDefinition using ResultSetMetaData from
the specified ResultSet. |
ColumnDisplayDefinition | public ColumnDisplayDefinition(int displayWidth, String label)(Code) | | Ctor.
Parameters: displayWidth - Number of characters to display. Parameters: label - Column heading. |
ColumnDisplayDefinition | public ColumnDisplayDefinition(int displayWidth, String fullTableColumnName, String columnName, String label, int sqlType, String sqlTypeName, boolean isNullable, int columnSize, int precision, int scale, boolean isSigned, boolean isCurrency, boolean isAutoIncrement)(Code) | | Constructor for use when the type of data in the column is known/needed.
Parameters: displayWidth - Number of characters to display. Parameters: label - Column heading. Parameters: className - Name of the class for the type of data in the column. |
ColumnDisplayDefinition | public ColumnDisplayDefinition(ResultSet rs, int idx) throws SQLException(Code) | | Constructs a new ColumnDisplayDefinition using ResultSetMetaData from
the specified ResultSet.
Parameters: rs - the ResultSet to use Parameters: idx - the index of the column to build a display definition for. throws: SQLException - |
getClassName | public String getClassName()(Code) | | Return the class name associated with the sql data type.
When the type is unknown or cannot be edited we return
"java.lang.Object".
The java class name for the data type |
getColumnName | public String getColumnName()(Code) | | the _columnName |
getColumnSize | public int getColumnSize()(Code) | | Return the size of the column as known to the DB in number of characters,
For non-character fields (e.g. Integer) this will be the number of characters used
in the DB to represent the data (e.g. 4 for an Int) rather than the number of
characters (e.g. decimal digits) that the user may enter.
|
getDisplayWidth | public int getDisplayWidth()(Code) | | Return the number of characters to display.
The number of characters to display. |
getFullTableColumnName | public String getFullTableColumnName()(Code) | | Return the full name of the column including the table Catalog, Schema and Table names.
The full table name. |
getLabel | public String getLabel()(Code) | | Return the column heading.
The column heading. |
getPrecision | public int getPrecision()(Code) | | Return the number of decimal digits that may be entered into this field.
|
getScale | public int getScale()(Code) | | Return the number of decimal digits to the right of the decimal point.
|
getSqlType | public int getSqlType()(Code) | | Return the column data type, which may be Types.NULL.
The type of data in the column (may be Types.NULL). |
getSqlTypeName | public String getSqlTypeName()(Code) | | Return the column data type name.
The DBMS-specific name of the type of data in the column. |
isAutoIncrement | public boolean isAutoIncrement()(Code) | | |
isCurrency | public boolean isCurrency()(Code) | | Return the flag for whether this column represents currency or not.
|
isNullable | public boolean isNullable()(Code) | | Return a boolean indicating column is nullable or not.
true = column may contain null (with some uncertainty);false= definitely no nulls allowed. |
isSigned | public boolean isSigned()(Code) | | Return the flag for whether this column is signed or unsigned.
|
setColumnName | public void setColumnName(String _columnName)(Code) | | Parameters: _columnName - the _columnName to set |
setIsAutoIncrement | public void setIsAutoIncrement(boolean autoIncrement)(Code) | | |
setIsNullable | public void setIsNullable(boolean isNullable)(Code) | | Override the isNullable field after creation.
|
setSqlType | public void setSqlType(int sqlType)(Code) | | |
setSqlTypeName | public void setSqlTypeName(String sqlTypeName)(Code) | | |
|
|