|
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 ColumnModel
getColumnType()
public boolean isTimeDate()
isTimeDate
in interface ColumnModel
public String getCatalogName()
getCatalogName
in interface ColumnModel
public int getColumnDisplaySize()
getColumnDisplaySize
in interface ColumnModel
public String getColumnLabel()
getColumnLabel
in interface ColumnModel
public String getColumnName()
getColumnName
in interface ColumnModel
public int getColumnType()
ColumnModel
getColumnType
in interface ColumnModel
ColumnModel.getMetaColumnType()
public String getColumnTypeName()
getColumnTypeName
in interface ColumnModel
public int getPrecision()
getPrecision
in interface ColumnModel
public int getScale()
getScale
in interface ColumnModel
public String getSchemaName()
getSchemaName
in interface ColumnModel
public String getTableName()
getTableName
in interface ColumnModel
public boolean isAutoIncrement()
isAutoIncrement
in interface ColumnModel
public boolean isCaseSensitive()
isCaseSensitive
in interface ColumnModel
public boolean isCurrency()
isCurrency
in interface ColumnModel
public boolean isDefinitelyWritable()
isDefinitelyWritable
in interface ColumnModel
public int isNullable()
isNullable
in interface ColumnModel
public boolean isReadOnly()
isReadOnly
in interface ColumnModel
public boolean isSearchable()
isSearchable
in interface ColumnModel
public boolean isSigned()
isSigned
in interface ColumnModel
public boolean isWritable()
isWritable
in interface ColumnModel
public String getIdentifier()
getIdentifier
in interface ColumnModel
public String getColumnClassName()
getColumnClassName
in interface ColumnModel
public void setMetaColumnType(int metaType)
setMetaColumnType
in interface ColumnModel
metaType
- a int which is the MetaDataModel type for the columnMetaDataModel
public void setMetaColumnTypeFromSqlType(int type)
setMetaColumnTypeFromSqlType
in interface ColumnModel
public void setCatalogName(String catalog)
setCatalogName
in interface ColumnModel
public void setColumnDisplaySize(int displayWidth)
setColumnDisplaySize
in interface ColumnModel
public void setColumnLabel(String label)
setColumnLabel
in interface ColumnModel
public void setColumnName(String name)
setColumnName
in interface ColumnModel
public void setColumnType(int type)
setColumnType
in interface ColumnModel
public void setColumnTypeName(String typeName)
setColumnTypeName
in interface ColumnModel
public void setPrecision(int precision)
setPrecision
in interface ColumnModel
public void setScale(int scale)
setScale
in interface ColumnModel
public void setSchemaName(String schema)
setSchemaName
in interface ColumnModel
public void setTableName(String table)
setTableName
in interface ColumnModel
public void setAutoIncrement(boolean isAutoIncrement)
setAutoIncrement
in interface ColumnModel
public void setCaseSensitive(boolean isCaseSensitive)
setCaseSensitive
in interface ColumnModel
public void setCurrency(boolean isCurrency)
setCurrency
in interface ColumnModel
public void setDefinitelyWritable(boolean isDefinitelyWritable)
setDefinitelyWritable
in interface ColumnModel
public void setNullable(int isNullable)
setNullable
in interface ColumnModel
public void setReadOnly(boolean isReadOnly)
setReadOnly
in interface ColumnModel
public void setSearchable(boolean isSearchable)
setSearchable
in interface ColumnModel
public void setSigned(boolean isSigned)
setSigned
in interface ColumnModel
public void setWritable(boolean isWritable)
setWritable
in interface ColumnModel
public void setColumnClassName(String columnClassName)
setColumnClassName
in interface ColumnModel
public 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 |