|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.klg.jclass.datasource.BaseColumn
An implementation of ColumnModel. Extend it and set each of its properties.
Calls to MetaDataModel.getJavaColumnType call getMetaColumnType() below.
ResultSetMetaData methods are mirrored here, see their
documentation for descriptions.
Some drivers do not support all ResultSetMetaData methods.
If they do not the following defaults are used:
| NAME | VALUE |
|---|---|
| catalog | null |
| displayWidth | 25 |
| name | null |
| label | null |
| type | java.sql.Types.OTHER |
| typeName | "OTHER" |
| precision | 5 |
| scale | 5 |
| schema | null |
| table | null |
| isAutoIncrement | false |
| isCaseSensitive | false |
| isCurrency | false |
| isDefinitelyWritable | true |
| isNullable | ResultSetMetaData.columnNullable |
| isReadOnly | false |
| isSearchable | true |
| isSigned | false |
| isWritable | true |
| Field Summary | |
protected String |
catalog
|
protected String |
columnClassName
|
protected int |
displayWidth
|
protected String |
identifier
|
protected boolean |
isAutoIncrement
|
protected boolean |
isCaseSensitive
|
protected boolean |
isCurrency
|
protected boolean |
isDefinitelyWritable
|
protected int |
isNullable
|
protected boolean |
isReadOnly
|
protected boolean |
isSearchable
|
protected boolean |
isSigned
|
protected boolean |
isWritable
|
protected String |
label
|
protected int |
metaType
|
protected String |
name
|
protected static int |
NOT_SET
|
protected int |
precision
|
protected int |
scale
|
protected String |
schema
|
protected String |
table
|
protected int |
type
|
protected String |
typeName
|
| Constructor Summary | |
BaseColumn()
|
|
BaseColumn(String name,
int type)
Constructor |
|
| Method Summary | |
String |
getCatalogName()
|
String |
getColumnClassName()
|
int |
getColumnDisplaySize()
|
String |
getColumnLabel()
|
String |
getColumnName()
|
int |
getColumnType()
Return the jdbc.Sql.Types type for the column. |
String |
getColumnTypeName()
|
String |
getIdentifier()
Return a string which uniquely identifies this column. |
int |
getMetaColumnType()
Return one of MetaDataModel types. |
int |
getPrecision()
|
int |
getScale()
|
String |
getSchemaName()
|
String |
getTableName()
|
boolean |
isAutoIncrement()
|
boolean |
isCaseSensitive()
|
boolean |
isCurrency()
|
boolean |
isDefinitelyWritable()
|
int |
isNullable()
|
boolean |
isReadOnly()
|
boolean |
isSearchable()
|
boolean |
isSigned()
|
boolean |
isTimeDate()
Is this column's type date/time/timestamp? |
boolean |
isWritable()
|
void |
setAutoIncrement(boolean isAutoIncrement)
|
void |
setCaseSensitive(boolean isCaseSensitive)
|
void |
setCatalogName(String catalog)
|
void |
setColumnClassName(String columnClassName)
|
void |
setColumnDisplaySize(int displayWidth)
|
void |
setColumnLabel(String label)
|
void |
setColumnName(String name)
|
void |
setColumnType(int type)
Set the java.sql.Types type for this column. |
void |
setColumnTypeName(String typeName)
|
void |
setCurrency(boolean isCurrency)
|
void |
setDefinitelyWritable(boolean isDefinitelyWritable)
|
void |
setIdentifier(String identifier)
|
void |
setMetaColumnType(int metaType)
Set the metaType for this column. |
void |
setMetaColumnTypeFromSqlType(int type)
Set the metaType for this column. |
void |
setNullable(int isNullable)
|
void |
setPrecision(int precision)
|
void |
setReadOnly(boolean isReadOnly)
|
void |
setScale(int scale)
|
void |
setSchemaName(String schema)
|
void |
setSearchable(boolean isSearchable)
|
void |
setSigned(boolean isSigned)
|
void |
setTableName(String table)
|
void |
setWritable(boolean isWritable)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final int NOT_SET
protected String name
protected String table
protected String catalog
protected String schema
protected String label
protected String typeName
protected String identifier
protected String columnClassName
protected int type
protected int displayWidth
protected int precision
protected int scale
protected int isNullable
protected int metaType
protected boolean isCurrency
protected boolean isReadOnly
protected boolean isAutoIncrement
protected boolean isCaseSensitive
protected boolean isSearchable
protected boolean isDefinitelyWritable
protected boolean isSigned
protected boolean isWritable
| Constructor Detail |
public BaseColumn()
public BaseColumn(String name,
int type)
name - the name of this columntype - this column's type, one of,
| Method Detail |
public int getMetaColumnType()
getMetaColumnType in interface ColumnModelgetColumnType()public boolean isTimeDate()
isTimeDate in interface ColumnModelpublic String getCatalogName()
getCatalogName in interface ColumnModelpublic int getColumnDisplaySize()
getColumnDisplaySize in interface ColumnModelpublic String getColumnLabel()
getColumnLabel in interface ColumnModelpublic String getColumnName()
getColumnName in interface ColumnModelpublic int getColumnType()
ColumnModel
getColumnType in interface ColumnModelColumnModel.getMetaColumnType()public String getColumnTypeName()
getColumnTypeName in interface ColumnModelpublic int getPrecision()
getPrecision in interface ColumnModelpublic int getScale()
getScale in interface ColumnModelpublic String getSchemaName()
getSchemaName in interface ColumnModelpublic String getTableName()
getTableName in interface ColumnModelpublic boolean isAutoIncrement()
isAutoIncrement in interface ColumnModelpublic boolean isCaseSensitive()
isCaseSensitive in interface ColumnModelpublic boolean isCurrency()
isCurrency in interface ColumnModelpublic boolean isDefinitelyWritable()
isDefinitelyWritable in interface ColumnModelpublic int isNullable()
isNullable in interface ColumnModelpublic boolean isReadOnly()
isReadOnly in interface ColumnModelpublic boolean isSearchable()
isSearchable in interface ColumnModelpublic boolean isSigned()
isSigned in interface ColumnModelpublic boolean isWritable()
isWritable in interface ColumnModelpublic String getIdentifier()
getIdentifier in interface ColumnModelpublic String getColumnClassName()
getColumnClassName in interface ColumnModelpublic void setMetaColumnType(int metaType)
setMetaColumnType in interface ColumnModelmetaType - a int which is the MetaDataModel type for the columnMetaDataModelpublic void setMetaColumnTypeFromSqlType(int type)
setMetaColumnTypeFromSqlType in interface ColumnModelpublic void setCatalogName(String catalog)
setCatalogName in interface ColumnModelpublic void setColumnDisplaySize(int displayWidth)
setColumnDisplaySize in interface ColumnModelpublic void setColumnLabel(String label)
setColumnLabel in interface ColumnModelpublic void setColumnName(String name)
setColumnName in interface ColumnModelpublic void setColumnType(int type)
setColumnType in interface ColumnModelpublic void setColumnTypeName(String typeName)
setColumnTypeName in interface ColumnModelpublic void setPrecision(int precision)
setPrecision in interface ColumnModelpublic void setScale(int scale)
setScale in interface ColumnModelpublic void setSchemaName(String schema)
setSchemaName in interface ColumnModelpublic void setTableName(String table)
setTableName in interface ColumnModelpublic void setAutoIncrement(boolean isAutoIncrement)
setAutoIncrement in interface ColumnModelpublic void setCaseSensitive(boolean isCaseSensitive)
setCaseSensitive in interface ColumnModelpublic void setCurrency(boolean isCurrency)
setCurrency in interface ColumnModelpublic void setDefinitelyWritable(boolean isDefinitelyWritable)
setDefinitelyWritable in interface ColumnModelpublic void setNullable(int isNullable)
setNullable in interface ColumnModelpublic void setReadOnly(boolean isReadOnly)
setReadOnly in interface ColumnModelpublic void setSearchable(boolean isSearchable)
setSearchable in interface ColumnModelpublic void setSigned(boolean isSigned)
setSigned in interface ColumnModelpublic void setWritable(boolean isWritable)
setWritable in interface ColumnModelpublic void setColumnClassName(String columnClassName)
setColumnClassName in interface ColumnModelpublic void setIdentifier(String identifier)
setIdentifier in interface ColumnModel
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||