JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.datasource
Interface ColumnModel

All Known Subinterfaces:
VirtualColumnModel
All Known Implementing Classes:
BaseColumn, BaseVirtualColumn

public interface ColumnModel

Interface for information about columns. ResultSetMetaData methods are mirrored here, see their documentation for descriptions.


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()
           
 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)
           
 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)
           
 

Method Detail

getCatalogName

public String getCatalogName()

getColumnDisplaySize

public int getColumnDisplaySize()

getColumnLabel

public String getColumnLabel()

getColumnName

public String getColumnName()

getMetaColumnType

public int getMetaColumnType()
Return one of MetaDataModel types. Maps java.sql.Types types to object types used in this model.

Returns:
this column's type as one of the MetaDataModel type constants.
See Also:
getColumnType()

isTimeDate

public boolean isTimeDate()
Is this column's type date/time/timestamp?

Returns:
true if this column's type is date/time/timestamp, false otherwise

getColumnType

public int getColumnType()
Return the jdbc.Sql.Types type for the column. In the model this type is not used, it is mapped to a MetaDataModel type constant.

Returns:
a java.sql.Types type
See Also:
getMetaColumnType()

getColumnTypeName

public String getColumnTypeName()

getPrecision

public int getPrecision()

getScale

public int getScale()

getSchemaName

public String getSchemaName()

getTableName

public String getTableName()

isAutoIncrement

public boolean isAutoIncrement()

isCaseSensitive

public boolean isCaseSensitive()

isCurrency

public boolean isCurrency()

isDefinitelyWritable

public boolean isDefinitelyWritable()

isNullable

public int isNullable()

isReadOnly

public boolean isReadOnly()

isSearchable

public boolean isSearchable()

isSigned

public boolean isSigned()

isWritable

public boolean isWritable()

getColumnClassName

public String getColumnClassName()

getIdentifier

public String getIdentifier()

setMetaColumnType

public void setMetaColumnType(int metaType)
Set the metaType for this column. Maps the passed in java.sql.Types type to a MetaDataModel type.

Parameters:
metaType - a int which is the MetaDataModel type for the column
See Also:
MetaDataModel

setMetaColumnTypeFromSqlType

public void setMetaColumnTypeFromSqlType(int type)
Set the metaType for this column. Maps the passed in java.sql.Types type to a MetaDataModel type.


setCatalogName

public void setCatalogName(String catalog)

setColumnDisplaySize

public void setColumnDisplaySize(int displayWidth)

setColumnLabel

public void setColumnLabel(String label)

setColumnName

public void setColumnName(String name)

setColumnType

public void setColumnType(int type)

setColumnTypeName

public void setColumnTypeName(String typeName)

setPrecision

public void setPrecision(int precision)

setScale

public void setScale(int scale)

setSchemaName

public void setSchemaName(String schema)

setTableName

public void setTableName(String table)

setAutoIncrement

public void setAutoIncrement(boolean isAutoIncrement)

setCaseSensitive

public void setCaseSensitive(boolean isCaseSensitive)

setCurrency

public void setCurrency(boolean isCurrency)

setDefinitelyWritable

public void setDefinitelyWritable(boolean isDefinitelyWritable)

setNullable

public void setNullable(int isNullable)

setReadOnly

public void setReadOnly(boolean isReadOnly)

setSearchable

public void setSearchable(boolean isSearchable)

setSigned

public void setSigned(boolean isSigned)

setWritable

public void setWritable(boolean isWritable)

setColumnClassName

public void setColumnClassName(String columnClassName)

setIdentifier

public void setIdentifier(String identifier)

Copyright © 2004 Quest Software Inc..
All rights reserved.