| java.lang.Object org.dbbrowser.db.engine.model.ColumnInfo
ColumnInfo | public class ColumnInfo (Code) | | This class holds information about a DB column
author: amangat |
COLUMN_NOT_NULLABLE | final public static String COLUMN_NOT_NULLABLE(Code) | | |
COLUMN_NULLABLE | final public static String COLUMN_NULLABLE(Code) | | |
COLUMN_NULLABLE_NATURE_UNKNOWN | final public static String COLUMN_NULLABLE_NATURE_UNKNOWN(Code) | | |
COLUMN_TYPE_BIG_DECIMAL | final public static String COLUMN_TYPE_BIG_DECIMAL(Code) | | |
COLUMN_TYPE_BIG_INT | final public static String COLUMN_TYPE_BIG_INT(Code) | | |
COLUMN_TYPE_CHAR | final public static String COLUMN_TYPE_CHAR(Code) | | |
COLUMN_TYPE_DATE | final public static String COLUMN_TYPE_DATE(Code) | | |
COLUMN_TYPE_DATE_TIME | final public static String COLUMN_TYPE_DATE_TIME(Code) | | |
COLUMN_TYPE_DECIMAL | final public static String COLUMN_TYPE_DECIMAL(Code) | | |
COLUMN_TYPE_FLOAT | final public static String COLUMN_TYPE_FLOAT(Code) | | |
COLUMN_TYPE_NUMBER | final public static String COLUMN_TYPE_NUMBER(Code) | | |
COLUMN_TYPE_REAL | final public static String COLUMN_TYPE_REAL(Code) | | |
COLUMN_TYPE_SMALL_INT | final public static String COLUMN_TYPE_SMALL_INT(Code) | | |
COLUMN_TYPE_TIMESTAMP | final public static String COLUMN_TYPE_TIMESTAMP(Code) | | |
COLUMN_TYPE_TINY_INT | final public static String COLUMN_TYPE_TINY_INT(Code) | | |
COLUMN_TYPE_VARCHAR | final public static String COLUMN_TYPE_VARCHAR(Code) | | |
COLUMN_TYPE_VARCHAR2 | final public static String COLUMN_TYPE_VARCHAR2(Code) | | |
ColumnInfo | public ColumnInfo(String columnName, String columnTypeName, String equivalentJavaClass, Integer columnDisplaySize, String nullableNature, Boolean isAutoIncrement, Boolean isPrimaryKeyColumn, Boolean editable, Integer columnType)(Code) | | Constructer
Parameters: columnName - Parameters: columnTypeName - Parameters: equivalentJavaClass - Parameters: columnDisplaySize - Parameters: nullableNature - Parameters: isPrimaryKeyColumn - Parameters: editable - Parameters: columnType - |
getColumnDisplaySize | public Integer getColumnDisplaySize()(Code) | | Returns the display size of the column
|
getColumnName | public String getColumnName()(Code) | | Get the column name
|
getColumnType | public Integer getColumnType()(Code) | | Returns the column type as defined in the java.sql.Types
|
getColumnTypeName | public String getColumnTypeName()(Code) | | Returns the column type name e.g. NUMBER, VARCHAR and DATE. The types come from java.sql.Types
|
getEquivalentJavaClass | public String getEquivalentJavaClass()(Code) | | Get the equivalent java class to represent this column e.g. java.lang.Integer
|
getNullableNature | public String getNullableNature()(Code) | | Returns a String describing the nullable nature
- ColumnInfo.NULLABLE - if the column is nullable
- ColumnInfo.NOT_NULLABLE - if the column is not nullable
- ColumnInfo.UNKNOWN - if the nature cannot be determined
|
isAutoIncrement | public Boolean isAutoIncrement()(Code) | | Returns true if this column is auto incremented
|
isEditable | public Boolean isEditable()(Code) | | Returns true if this column is editable
|
isPrimaryKeyColumn | public Boolean isPrimaryKeyColumn()(Code) | | Returns true if it is a primary key column
|
|
|