|
|||||||||
| Home >> All >> org >> apache >> derby >> impl >> [ jdbc overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.derby.impl.jdbc
Class EmbedResultSetMetaData

java.lang.Objectorg.apache.derby.impl.jdbc.EmbedResultSetMetaData
- All Implemented Interfaces:
- java.sql.ResultSetMetaData
- public class EmbedResultSetMetaData
- extends java.lang.Object
- implements java.sql.ResultSetMetaData
- extends java.lang.Object
A ResultSetMetaData object can be used to find out about the types and properties of the columns in a ResultSet.
We take the (cloudscape) ResultDescription and examine it, to return the appropriate information.
This class can be used outside of this package to convert a ResultDescription into a ResultSetMetaData object.
| Field Summary | |
private org.apache.derby.iapi.sql.ResultColumnDescriptor[] |
columnInfo
|
| Fields inherited from interface java.sql.ResultSetMetaData |
columnNoNulls, columnNullable, columnNullableUnknown |
| Constructor Summary | |
EmbedResultSetMetaData(org.apache.derby.iapi.sql.ResultColumnDescriptor[] columnInfo)
|
|
| Method Summary | |
java.lang.String |
getCatalogName(int column)
What's a column's table's catalog name? |
java.lang.String |
getColumnClassName(int column)
JDBC 2.0 |
int |
getColumnCount()
What's the number of columns in the ResultSet? |
int |
getColumnDisplaySize(int column)
What's the column's normal max width in chars? |
java.lang.String |
getColumnLabel(int column)
What's the suggested column title for use in printouts and displays? |
java.lang.String |
getColumnName(int column)
What's a column's name? |
int |
getColumnType(int column)
What's a column's SQL type? |
org.apache.derby.iapi.types.DataTypeDescriptor |
getColumnTypeDescriptor(int column)
|
java.lang.String |
getColumnTypeName(int column)
What's a column's data source specific type name? |
int |
getPrecision(int column)
What's a column's number of decimal digits? |
static org.apache.derby.iapi.sql.ResultColumnDescriptor |
getResultColumnDescriptor(java.lang.String name,
org.apache.derby.iapi.types.DataTypeDescriptor dtd)
|
static org.apache.derby.iapi.sql.ResultColumnDescriptor |
getResultColumnDescriptor(java.lang.String name,
int jdcbTypeId,
boolean nullable)
|
static org.apache.derby.iapi.sql.ResultColumnDescriptor |
getResultColumnDescriptor(java.lang.String name,
int jdcbTypeId,
boolean nullable,
int length)
|
int |
getScale(int column)
What's a column's number of digits to right of the decimal point? |
java.lang.String |
getSchemaName(int column)
What's a column's table's schema? |
java.lang.String |
getTableName(int column)
What's a column's table name? |
boolean |
isAutoIncrement(int column)
Is the column automatically numbered, thus read-only? |
boolean |
isCaseSensitive(int column)
Does a column's case matter? |
boolean |
isCurrency(int column)
Is the column a cash value? |
boolean |
isDefinitelyWritable(int column)
Will a write on the column definitely succeed? |
int |
isNullable(int column)
Can you put a NULL in this column? |
boolean |
isReadOnly(int column)
Is a column definitely not writable? |
boolean |
isSearchable(int column)
Can the column be used in a where clause? |
boolean |
isSigned(int column)
Is the column a signed number? |
boolean |
isWritable(int column)
Is it possible for a write on the column to succeed? |
private void |
validColumnNumber(int column)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
columnInfo
private final org.apache.derby.iapi.sql.ResultColumnDescriptor[] columnInfo
| Constructor Detail |
EmbedResultSetMetaData
public EmbedResultSetMetaData(org.apache.derby.iapi.sql.ResultColumnDescriptor[] columnInfo)
| Method Detail |
getColumnCount
public int getColumnCount()
- What's the number of columns in the ResultSet?
- Specified by:
getColumnCountin interfacejava.sql.ResultSetMetaData
isAutoIncrement
public boolean isAutoIncrement(int column)
throws java.sql.SQLException
- Is the column automatically numbered, thus read-only?
- Specified by:
isAutoIncrementin interfacejava.sql.ResultSetMetaData
isCaseSensitive
public boolean isCaseSensitive(int column)
throws java.sql.SQLException
- Does a column's case matter?
- Specified by:
isCaseSensitivein interfacejava.sql.ResultSetMetaData
isSearchable
public boolean isSearchable(int column)
throws java.sql.SQLException
- Can the column be used in a where clause?
- Specified by:
isSearchablein interfacejava.sql.ResultSetMetaData
isCurrency
public boolean isCurrency(int column)
throws java.sql.SQLException
- Is the column a cash value?
- Specified by:
isCurrencyin interfacejava.sql.ResultSetMetaData
isNullable
public int isNullable(int column)
throws java.sql.SQLException
- Can you put a NULL in this column?
- Specified by:
isNullablein interfacejava.sql.ResultSetMetaData
isSigned
public boolean isSigned(int column)
throws java.sql.SQLException
- Is the column a signed number?
- Specified by:
isSignedin interfacejava.sql.ResultSetMetaData
getColumnDisplaySize
public int getColumnDisplaySize(int column)
throws java.sql.SQLException
- What's the column's normal max width in chars?
- Specified by:
getColumnDisplaySizein interfacejava.sql.ResultSetMetaData
getColumnLabel
public java.lang.String getColumnLabel(int column) throws java.sql.SQLException
- What's the suggested column title for use in printouts and
displays?
- Specified by:
getColumnLabelin interfacejava.sql.ResultSetMetaData
getColumnName
public java.lang.String getColumnName(int column) throws java.sql.SQLException
- What's a column's name?
- Specified by:
getColumnNamein interfacejava.sql.ResultSetMetaData
getSchemaName
public java.lang.String getSchemaName(int column) throws java.sql.SQLException
- What's a column's table's schema?
- Specified by:
getSchemaNamein interfacejava.sql.ResultSetMetaData
getPrecision
public int getPrecision(int column)
throws java.sql.SQLException
- What's a column's number of decimal digits?
- Specified by:
getPrecisionin interfacejava.sql.ResultSetMetaData
getScale
public int getScale(int column)
throws java.sql.SQLException
- What's a column's number of digits to right of the decimal point?
- Specified by:
getScalein interfacejava.sql.ResultSetMetaData
getTableName
public java.lang.String getTableName(int column) throws java.sql.SQLException
- What's a column's table name?
- Specified by:
getTableNamein interfacejava.sql.ResultSetMetaData
getCatalogName
public java.lang.String getCatalogName(int column) throws java.sql.SQLException
- What's a column's table's catalog name?
- Specified by:
getCatalogNamein interfacejava.sql.ResultSetMetaData
getColumnType
public int getColumnType(int column)
throws java.sql.SQLException
- What's a column's SQL type?
- Specified by:
getColumnTypein interfacejava.sql.ResultSetMetaData
getColumnTypeName
public java.lang.String getColumnTypeName(int column) throws java.sql.SQLException
- What's a column's data source specific type name?
- Specified by:
getColumnTypeNamein interfacejava.sql.ResultSetMetaData
isReadOnly
public boolean isReadOnly(int column)
throws java.sql.SQLException
- Is a column definitely not writable?
- Specified by:
isReadOnlyin interfacejava.sql.ResultSetMetaData
isWritable
public boolean isWritable(int column)
throws java.sql.SQLException
- Is it possible for a write on the column to succeed?
- Specified by:
isWritablein interfacejava.sql.ResultSetMetaData
isDefinitelyWritable
public boolean isDefinitelyWritable(int column)
throws java.sql.SQLException
- Will a write on the column definitely succeed?
- Specified by:
isDefinitelyWritablein interfacejava.sql.ResultSetMetaData
validColumnNumber
private void validColumnNumber(int column)
throws java.sql.SQLException
getColumnTypeDescriptor
public org.apache.derby.iapi.types.DataTypeDescriptor getColumnTypeDescriptor(int column) throws java.sql.SQLException
getColumnClassName
public java.lang.String getColumnClassName(int column) throws java.sql.SQLException
- JDBC 2.0
Return the fully qualified name of the Java class whose instances are manufactured if ResultSet.getObject() is called to retrieve a value from the column. ResultSet.getObject() may return a subClass of the class returned by this method.
- Specified by:
getColumnClassNamein interfacejava.sql.ResultSetMetaData
getResultColumnDescriptor
public static org.apache.derby.iapi.sql.ResultColumnDescriptor getResultColumnDescriptor(java.lang.String name, int jdcbTypeId, boolean nullable)
getResultColumnDescriptor
public static org.apache.derby.iapi.sql.ResultColumnDescriptor getResultColumnDescriptor(java.lang.String name, int jdcbTypeId, boolean nullable, int length)
getResultColumnDescriptor
public static org.apache.derby.iapi.sql.ResultColumnDescriptor getResultColumnDescriptor(java.lang.String name, org.apache.derby.iapi.types.DataTypeDescriptor dtd)
|
|||||||||
| Home >> All >> org >> apache >> derby >> impl >> [ jdbc overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.derby.impl.jdbc.EmbedResultSetMetaData