org.modeshape.jdbc.metadata
Class ResultSetMetaDataImpl

java.lang.Object
  extended by org.modeshape.jdbc.metadata.ResultSetMetaDataImpl
All Implemented Interfaces:
ResultSetMetaData, Wrapper

public class ResultSetMetaDataImpl
extends Object
implements ResultSetMetaData


Field Summary
 
Fields inherited from interface java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown
 
Constructor Summary
ResultSetMetaDataImpl(MetadataProvider provider)
           
 
Method Summary
 String getCatalogName(int index)
           
 String getColumnClassName(int index)
           
 int getColumnCount()
           
 int getColumnDisplaySize(int index)
           
 String getColumnLabel(int index)
           
 String getColumnName(int index)
           
 int getColumnType(int index)
           
 String getColumnTypeName(int index)
           
 int getPrecision(int index)
           
 int getScale(int index)
           
 String getSchemaName(int index)
           
 String getTableName(int index)
           
 boolean isAutoIncrement(int index)
           
 boolean isCaseSensitive(int index)
           
 boolean isCurrency(int index)
           
 boolean isDefinitelyWritable(int index)
           
 int isNullable(int index)
           
 boolean isReadOnly(int index)
           
 boolean isSearchable(int index)
           
 boolean isSigned(int index)
           
 boolean isWrapperFor(Class<?> iface)
          
 boolean isWritable(int index)
           
<T> T
unwrap(Class<T> iface)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultSetMetaDataImpl

public ResultSetMetaDataImpl(MetadataProvider provider)
Method Detail

getColumnCount

public int getColumnCount()
                   throws SQLException
Specified by:
getColumnCount in interface ResultSetMetaData
Throws:
SQLException

isAutoIncrement

public boolean isAutoIncrement(int index)
                        throws SQLException
Specified by:
isAutoIncrement in interface ResultSetMetaData
Throws:
SQLException

isCaseSensitive

public boolean isCaseSensitive(int index)
                        throws SQLException
Specified by:
isCaseSensitive in interface ResultSetMetaData
Throws:
SQLException

isSearchable

public boolean isSearchable(int index)
                     throws SQLException
Specified by:
isSearchable in interface ResultSetMetaData
Throws:
SQLException

isCurrency

public boolean isCurrency(int index)
                   throws SQLException
Specified by:
isCurrency in interface ResultSetMetaData
Throws:
SQLException

isNullable

public int isNullable(int index)
               throws SQLException
Specified by:
isNullable in interface ResultSetMetaData
Throws:
SQLException

isSigned

public boolean isSigned(int index)
                 throws SQLException
Specified by:
isSigned in interface ResultSetMetaData
Throws:
SQLException

getColumnDisplaySize

public int getColumnDisplaySize(int index)
                         throws SQLException
Specified by:
getColumnDisplaySize in interface ResultSetMetaData
Throws:
SQLException

getColumnLabel

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

getColumnName

public String getColumnName(int index)
                     throws SQLException
Specified by:
getColumnName in interface ResultSetMetaData
Throws:
SQLException

getSchemaName

public String getSchemaName(int index)
                     throws SQLException
Specified by:
getSchemaName in interface ResultSetMetaData
Throws:
SQLException

getPrecision

public int getPrecision(int index)
                 throws SQLException
Specified by:
getPrecision in interface ResultSetMetaData
Throws:
SQLException

getScale

public int getScale(int index)
             throws SQLException
Specified by:
getScale in interface ResultSetMetaData
Throws:
SQLException

getTableName

public String getTableName(int index)
                    throws SQLException
Specified by:
getTableName in interface ResultSetMetaData
Throws:
SQLException

getCatalogName

public String getCatalogName(int index)
                      throws SQLException
Specified by:
getCatalogName in interface ResultSetMetaData
Throws:
SQLException

getColumnType

public int getColumnType(int index)
                  throws SQLException
Specified by:
getColumnType in interface ResultSetMetaData
Throws:
SQLException

getColumnTypeName

public String getColumnTypeName(int index)
                         throws SQLException
Specified by:
getColumnTypeName in interface ResultSetMetaData
Throws:
SQLException

isReadOnly

public boolean isReadOnly(int index)
                   throws SQLException
Specified by:
isReadOnly in interface ResultSetMetaData
Throws:
SQLException

isWritable

public boolean isWritable(int index)
                   throws SQLException
Specified by:
isWritable in interface ResultSetMetaData
Throws:
SQLException

isDefinitelyWritable

public boolean isDefinitelyWritable(int index)
                             throws SQLException
Specified by:
isDefinitelyWritable in interface ResultSetMetaData
Throws:
SQLException

getColumnClassName

public String getColumnClassName(int index)
                          throws SQLException
Specified by:
getColumnClassName in interface ResultSetMetaData
Throws:
SQLException

isWrapperFor

public boolean isWrapperFor(Class<?> iface)

Specified by:
isWrapperFor in interface Wrapper
See Also:
Wrapper.isWrapperFor(java.lang.Class)

unwrap

public <T> T unwrap(Class<T> iface)
         throws SQLException

Specified by:
unwrap in interface Wrapper
Throws:
SQLException
See Also:
Wrapper.unwrap(java.lang.Class)


Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.