jxUtil 0.6

org.sourceforge.jxutil.sql
Class AbstractResultSetMetaData

java.lang.Object
  |
  +--org.sourceforge.jxutil.sql.AbstractResultSetMetaData
All Implemented Interfaces:
ResultSetMetaData
Direct Known Subclasses:
XRowSetMetaData

public abstract class AbstractResultSetMetaData
extends Object
implements ResultSetMetaData

AbstractResultSetMetaData implements generics of the ResultSetMetaData interface.
When overriding You must define:

Version:
0.1, 01/04/18
Author:
Keve Müller

Nested Class Summary
static class AbstractResultSetMetaData.NameMetaData
           
 
Field Summary
protected  AbstractResultSetMetaData.NameMetaData[] nameMeta
           
protected  Map typeMap
           
 
Fields inherited from interface java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown
 
Constructor Summary
protected AbstractResultSetMetaData(AbstractResultSetMetaData.NameMetaData[] nameMeta, Map typeMap)
           
protected AbstractResultSetMetaData(String[] colNames, Map typeMap)
           
protected AbstractResultSetMetaData(String catalogName, String[] colNames, Map typeMap)
           
 
Method Summary
 String getCatalogName(int column)
           
 String getColumnClassName(int column)
           
 int getColumnCount()
           
 int getColumnDisplaySize(int column)
           
 String getColumnLabel(int column)
           
 String getColumnName(int column)
           
 int getColumnType(int column)
           
 String getColumnTypeName(int column)
           
 int getPrecision(int column)
           
 int getScale(int column)
           
 String getSchemaName(int column)
           
 String getTableName(int column)
           
protected abstract  AbstractType getType(int column)
          Return the AbstractType of the given column.
 boolean isAutoIncrement(int column)
           
 boolean isCaseSensitive(int column)
           
 boolean isCurrency(int column)
           
 boolean isDefinitelyWritable(int column)
           
 int isNullable(int column)
           
 boolean isReadOnly(int column)
           
 boolean isSearchable(int column)
           
 boolean isSigned(int column)
           
 boolean isWritable(int column)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nameMeta

protected AbstractResultSetMetaData.NameMetaData[] nameMeta

typeMap

protected final Map typeMap
Constructor Detail

AbstractResultSetMetaData

protected AbstractResultSetMetaData(AbstractResultSetMetaData.NameMetaData[] nameMeta,
                                    Map typeMap)

AbstractResultSetMetaData

protected AbstractResultSetMetaData(String[] colNames,
                                    Map typeMap)

AbstractResultSetMetaData

protected AbstractResultSetMetaData(String catalogName,
                                    String[] colNames,
                                    Map typeMap)
Method Detail

getCatalogName

public String getCatalogName(int column)
Specified by:
getCatalogName in interface ResultSetMetaData

getColumnClassName

public final String getColumnClassName(int column)
Specified by:
getColumnClassName in interface ResultSetMetaData

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface ResultSetMetaData

getColumnDisplaySize

public int getColumnDisplaySize(int column)
Specified by:
getColumnDisplaySize in interface ResultSetMetaData

getColumnLabel

public String getColumnLabel(int column)
                      throws SQLException
Specified by:
getColumnLabel in interface ResultSetMetaData
SQLException

getColumnName

public String getColumnName(int column)
Specified by:
getColumnName in interface ResultSetMetaData

getColumnType

public final int getColumnType(int column)
                        throws SQLException
Specified by:
getColumnType in interface ResultSetMetaData
SQLException

getColumnTypeName

public final String getColumnTypeName(int column)
Specified by:
getColumnTypeName in interface ResultSetMetaData

getPrecision

public final int getPrecision(int column)
Specified by:
getPrecision in interface ResultSetMetaData

getScale

public final int getScale(int column)
Specified by:
getScale in interface ResultSetMetaData

getSchemaName

public String getSchemaName(int column)
Specified by:
getSchemaName in interface ResultSetMetaData

getTableName

public String getTableName(int column)
Specified by:
getTableName in interface ResultSetMetaData

getType

protected abstract AbstractType getType(int column)
Return the AbstractType of the given column.


isAutoIncrement

public final boolean isAutoIncrement(int column)
Specified by:
isAutoIncrement in interface ResultSetMetaData

isCaseSensitive

public final boolean isCaseSensitive(int column)
Specified by:
isCaseSensitive in interface ResultSetMetaData

isCurrency

public final boolean isCurrency(int column)
Specified by:
isCurrency in interface ResultSetMetaData

isDefinitelyWritable

public boolean isDefinitelyWritable(int column)
Specified by:
isDefinitelyWritable in interface ResultSetMetaData

isNullable

public int isNullable(int column)
Specified by:
isNullable in interface ResultSetMetaData

isReadOnly

public boolean isReadOnly(int column)
Specified by:
isReadOnly in interface ResultSetMetaData

isSearchable

public final boolean isSearchable(int column)
Specified by:
isSearchable in interface ResultSetMetaData

isSigned

public final boolean isSigned(int column)
Specified by:
isSigned in interface ResultSetMetaData

isWritable

public boolean isWritable(int column)
Specified by:
isWritable in interface ResultSetMetaData

toString

public String toString()
Overrides:
toString in class Object

jxUtil 0.6

Copyright © 2001,2002 Keve Müller, et al.; see LICENSE file for details.