Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jdaemon.test.sql
Class TestResultSetMetadata  view TestResultSetMetadata download TestResultSetMetadata.java

java.lang.Object
  extended byorg.jdaemon.test.sql.TestResultSetMetadata
All Implemented Interfaces:
java.sql.ResultSetMetaData

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


Field Summary
 
Fields inherited from interface java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown
 
Constructor Summary
TestResultSetMetadata()
          Creates a new instance of TestResultSetMetadata
 
Method Summary
 java.lang.String getCatalogName(int param)
          This method returns the name of the catalog containing the specified column.
 java.lang.String getColumnClassName(int param)
          This method returns the name of the Java class which will be used to create objects representing the data in this column.
 int getColumnCount()
          This method returns the number of columns in the result set.
 int getColumnDisplaySize(int param)
          This method returns the maximum number of characters that can be used to display a value in this column.
 java.lang.String getColumnLabel(int param)
          This method returns a string that should be used as a caption for this column for user display purposes.
 java.lang.String getColumnName(int param)
          This method returns the name of the specified column.
 int getColumnType(int param)
          This method returns the SQL type of the specified column.
 java.lang.String getColumnTypeName(int param)
          This method returns the name of the SQL type for this column.
 int getPrecision(int param)
          This method returns the precision of the specified column, which is the number of decimal digits it contains.
 int getScale(int param)
          This method returns the scale of the specified column, which is the number of digits to the right of the decimal point.
 java.lang.String getSchemaName(int param)
          This method returns the name of the schema that contains the specified column.
 java.lang.String getTableName(int param)
          This method returns the name of the table containing the specified column.
 boolean isAutoIncrement(int param)
          This method test whether or not the column is an auto-increment column.
 boolean isCaseSensitive(int param)
          This method tests whether or not a column is case sensitive in its values.
 boolean isCurrency(int param)
          This method tests whether or not the column stores a monetary value.
 boolean isDefinitelyWritable(int param)
          This method tests whether or not the column is writable.
 int isNullable(int param)
          This method returns a value indicating whether or not the specified column may contain a NULL value.
 boolean isReadOnly(int param)
          This method tests whether or not the specified column is read only.
 boolean isSearchable(int param)
          This method tests whether not the specified column can be used in a WHERE clause.
 boolean isSigned(int param)
          This method tests whether or not the value of the specified column is signed or unsigned.
 boolean isWritable(int param)
          This method tests whether or not the column may be writable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestResultSetMetadata

public TestResultSetMetadata()
Creates a new instance of TestResultSetMetadata

Method Detail

getCatalogName

public java.lang.String getCatalogName(int param)
                                throws java.sql.SQLException
Description copied from interface: java.sql.ResultSetMetaData
This method returns the name of the catalog containing the specified column.

Specified by:
getCatalogName in interface java.sql.ResultSetMetaData

getColumnClassName

public java.lang.String getColumnClassName(int param)
                                    throws java.sql.SQLException
Description copied from interface: java.sql.ResultSetMetaData
This method returns the name of the Java class which will be used to create objects representing the data in this column.

Specified by:
getColumnClassName in interface java.sql.ResultSetMetaData

getColumnCount

public int getColumnCount()
                   throws java.sql.SQLException
Description copied from interface: java.sql.ResultSetMetaData
This method returns the number of columns in the result set.

Specified by:
getColumnCount in interface java.sql.ResultSetMetaData

getColumnDisplaySize

public int getColumnDisplaySize(int param)
                         throws java.sql.SQLException
Description copied from interface: java.sql.ResultSetMetaData
This method returns the maximum number of characters that can be used to display a value in this column.

Specified by:
getColumnDisplaySize in interface java.sql.ResultSetMetaData

getColumnLabel

public java.lang.String getColumnLabel(int param)
                                throws java.sql.SQLException
Description copied from interface: java.sql.ResultSetMetaData
This method returns a string that should be used as a caption for this column for user display purposes.

Specified by:
getColumnLabel in interface java.sql.ResultSetMetaData

getColumnName

public java.lang.String getColumnName(int param)
                               throws java.sql.SQLException
Description copied from interface: java.sql.ResultSetMetaData
This method returns the name of the specified column.

Specified by:
getColumnName in interface java.sql.ResultSetMetaData

getColumnType

public int getColumnType(int param)
                  throws java.sql.SQLException
Description copied from interface: java.sql.ResultSetMetaData
This method returns the SQL type of the specified column. This will be one of the constants from Types.

Specified by:
getColumnType in interface java.sql.ResultSetMetaData

getColumnTypeName

public java.lang.String getColumnTypeName(int param)
                                   throws java.sql.SQLException
Description copied from interface: java.sql.ResultSetMetaData
This method returns the name of the SQL type for this column.

Specified by:
getColumnTypeName in interface java.sql.ResultSetMetaData

getPrecision

public int getPrecision(int param)
                 throws java.sql.SQLException
Description copied from interface: java.sql.ResultSetMetaData
This method returns the precision of the specified column, which is the number of decimal digits it contains.

Specified by:
getPrecision in interface java.sql.ResultSetMetaData

getScale

public int getScale(int param)
             throws java.sql.SQLException
Description copied from interface: java.sql.ResultSetMetaData
This method returns the scale of the specified column, which is the number of digits to the right of the decimal point.

Specified by:
getScale in interface java.sql.ResultSetMetaData

getSchemaName

public java.lang.String getSchemaName(int param)
                               throws java.sql.SQLException
Description copied from interface: java.sql.ResultSetMetaData
This method returns the name of the schema that contains the specified column.

Specified by:
getSchemaName in interface java.sql.ResultSetMetaData

getTableName

public java.lang.String getTableName(int param)
                              throws java.sql.SQLException
Description copied from interface: java.sql.ResultSetMetaData
This method returns the name of the table containing the specified column.

Specified by:
getTableName in interface java.sql.ResultSetMetaData

isAutoIncrement

public boolean isAutoIncrement(int param)
                        throws java.sql.SQLException
Description copied from interface: java.sql.ResultSetMetaData
This method test whether or not the column is an auto-increment column. Auto-increment columns are read-only.

Specified by:
isAutoIncrement in interface java.sql.ResultSetMetaData

isCaseSensitive

public boolean isCaseSensitive(int param)
                        throws java.sql.SQLException
Description copied from interface: java.sql.ResultSetMetaData
This method tests whether or not a column is case sensitive in its values.

Specified by:
isCaseSensitive in interface java.sql.ResultSetMetaData

isCurrency

public boolean isCurrency(int param)
                   throws java.sql.SQLException
Description copied from interface: java.sql.ResultSetMetaData
This method tests whether or not the column stores a monetary value.

Specified by:
isCurrency in interface java.sql.ResultSetMetaData

isDefinitelyWritable

public boolean isDefinitelyWritable(int param)
                             throws java.sql.SQLException
Description copied from interface: java.sql.ResultSetMetaData
This method tests whether or not the column is writable. This does guarantee that a write will be successful.

Specified by:
isDefinitelyWritable in interface java.sql.ResultSetMetaData

isNullable

public int isNullable(int param)
               throws java.sql.SQLException
Description copied from interface: java.sql.ResultSetMetaData
This method returns a value indicating whether or not the specified column may contain a NULL value.

Specified by:
isNullable in interface java.sql.ResultSetMetaData

isReadOnly

public boolean isReadOnly(int param)
                   throws java.sql.SQLException
Description copied from interface: java.sql.ResultSetMetaData
This method tests whether or not the specified column is read only.

Specified by:
isReadOnly in interface java.sql.ResultSetMetaData

isSearchable

public boolean isSearchable(int param)
                     throws java.sql.SQLException
Description copied from interface: java.sql.ResultSetMetaData
This method tests whether not the specified column can be used in a WHERE clause.

Specified by:
isSearchable in interface java.sql.ResultSetMetaData

isSigned

public boolean isSigned(int param)
                 throws java.sql.SQLException
Description copied from interface: java.sql.ResultSetMetaData
This method tests whether or not the value of the specified column is signed or unsigned.

Specified by:
isSigned in interface java.sql.ResultSetMetaData

isWritable

public boolean isWritable(int param)
                   throws java.sql.SQLException
Description copied from interface: java.sql.ResultSetMetaData
This method tests whether or not the column may be writable. This does not guarantee that a write will be successful.

Specified by:
isWritable in interface java.sql.ResultSetMetaData