com.nmt.mgp
Class ResultSetMetaData

java.lang.Object
  extended by com.nmt.mgp.ResultSetMetaData
All Implemented Interfaces:
java.sql.ResultSetMetaData

public class ResultSetMetaData
extends java.lang.Object
implements java.sql.ResultSetMetaData

A minimal implementation of the java.sql.ResultSetMetaData interface, with only the parts that are needed by the MgpSession driver.


Field Summary
 
Fields inherited from interface java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown
 
Constructor Summary
ResultSetMetaData()
           
 
Method Summary
 java.lang.String getCatalogName(int column)
           
 java.lang.String getColumnClassName(int column)
           
 int getColumnCount()
           
 int getColumnDisplaySize(int column)
           
 java.lang.String getColumnLabel(int column)
           
 java.lang.String getColumnName(int colno)
           
 int getColumnType(int colno)
          LONGVARBINARY, TIMESTAMP, * \sa java.sql.Types.
 java.lang.String getColumnTypeName(int column)
           
 int getPrecision(int column)
           
 int getScale(int column)
           
 java.lang.String getSchemaName(int column)
           
 java.lang.String getTableName(int 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultSetMetaData

public ResultSetMetaData()
Method Detail

getColumnCount

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

getColumnName

public java.lang.String getColumnName(int colno)
                               throws java.sql.SQLException
Specified by:
getColumnName in interface java.sql.ResultSetMetaData
Throws:
java.sql.SQLException

getColumnType

public int getColumnType(int colno)
LONGVARBINARY, TIMESTAMP, * \sa java.sql.Types.

Specified by:
getColumnType in interface java.sql.ResultSetMetaData

getCatalogName

public java.lang.String getCatalogName(int column)
Specified by:
getCatalogName in interface java.sql.ResultSetMetaData

getColumnClassName

public java.lang.String getColumnClassName(int column)
Specified by:
getColumnClassName in interface java.sql.ResultSetMetaData

getColumnDisplaySize

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

getColumnLabel

public java.lang.String getColumnLabel(int column)
Specified by:
getColumnLabel in interface java.sql.ResultSetMetaData

getColumnTypeName

public java.lang.String getColumnTypeName(int column)
Specified by:
getColumnTypeName in interface java.sql.ResultSetMetaData

getPrecision

public int getPrecision(int column)
Specified by:
getPrecision in interface java.sql.ResultSetMetaData

getScale

public int getScale(int column)
Specified by:
getScale in interface java.sql.ResultSetMetaData

getSchemaName

public java.lang.String getSchemaName(int column)
Specified by:
getSchemaName in interface java.sql.ResultSetMetaData

getTableName

public java.lang.String getTableName(int column)
Specified by:
getTableName in interface java.sql.ResultSetMetaData

isAutoIncrement

public boolean isAutoIncrement(int column)
Specified by:
isAutoIncrement in interface java.sql.ResultSetMetaData

isCaseSensitive

public boolean isCaseSensitive(int column)
Specified by:
isCaseSensitive in interface java.sql.ResultSetMetaData

isCurrency

public boolean isCurrency(int column)
Specified by:
isCurrency in interface java.sql.ResultSetMetaData

isDefinitelyWritable

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

isNullable

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

isReadOnly

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

isSearchable

public boolean isSearchable(int column)
Specified by:
isSearchable in interface java.sql.ResultSetMetaData

isSigned

public boolean isSigned(int column)
Specified by:
isSigned in interface java.sql.ResultSetMetaData

isWritable

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