public class ResultSetMetaData
extends java.lang.Object
implements java.sql.ResultSetMetaData
| Constructor and Description |
|---|
ResultSetMetaData(Session session,
Field[] fields,
boolean useOldAliasBehavior,
boolean treatYearAsDate,
ExceptionInterceptor exceptionInterceptor)
Initialize for a result with a tuple set and a field descriptor set
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCatalogName(int column) |
java.lang.String |
getColumnCharacterEncoding(int column)
What's the Java character encoding name for the given column?
|
java.lang.String |
getColumnCharacterSet(int column)
What's the MySQL character set name for the given column?
|
java.lang.String |
getColumnClassName(int column) |
int |
getColumnCount() |
int |
getColumnDisplaySize(int column) |
java.lang.String |
getColumnLabel(int column) |
java.lang.String |
getColumnName(int column) |
int |
getColumnType(int column) |
java.lang.String |
getColumnTypeName(int column) |
protected Field |
getField(int columnIndex)
Returns the field instance for the given column index
|
Field[] |
getFields() |
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 |
isWrapperFor(java.lang.Class<?> iface) |
boolean |
isWritable(int column) |
java.lang.String |
toString() |
<T> T |
unwrap(java.lang.Class<T> iface) |
public ResultSetMetaData(Session session, Field[] fields, boolean useOldAliasBehavior, boolean treatYearAsDate, ExceptionInterceptor exceptionInterceptor)
session - this Sessionfields - the array of field descriptorsuseOldAliasBehavior - 'useOldAliasMetadataBehavior' property valuetreatYearAsDate - 'yearIsDateType' property valueexceptionInterceptor - exception interceptorpublic java.lang.String getCatalogName(int column)
throws java.sql.SQLException
getCatalogName in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic java.lang.String getColumnCharacterEncoding(int column)
throws java.sql.SQLException
column - the first column is 1, the second is 2, etc.java.sql.SQLException - if an invalid column index is given.public java.lang.String getColumnCharacterSet(int column)
throws java.sql.SQLException
column - the first column is 1, the second is 2, etc.java.sql.SQLException - if an invalid column index is given.public java.lang.String getColumnClassName(int column)
throws java.sql.SQLException
getColumnClassName in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic int getColumnCount()
throws java.sql.SQLException
getColumnCount in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic int getColumnDisplaySize(int column)
throws java.sql.SQLException
getColumnDisplaySize in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic java.lang.String getColumnLabel(int column)
throws java.sql.SQLException
getColumnLabel in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic java.lang.String getColumnName(int column)
throws java.sql.SQLException
getColumnName in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic int getColumnType(int column)
throws java.sql.SQLException
getColumnType in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic java.lang.String getColumnTypeName(int column)
throws java.sql.SQLException
getColumnTypeName in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionprotected Field getField(int columnIndex) throws java.sql.SQLException
columnIndex - the column number to retrieve a field instance forjava.sql.SQLException - if an error occurspublic int getPrecision(int column)
throws java.sql.SQLException
getPrecision in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic int getScale(int column)
throws java.sql.SQLException
getScale in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic java.lang.String getSchemaName(int column)
throws java.sql.SQLException
getSchemaName in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic java.lang.String getTableName(int column)
throws java.sql.SQLException
getTableName in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic boolean isAutoIncrement(int column)
throws java.sql.SQLException
isAutoIncrement in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic boolean isCaseSensitive(int column)
throws java.sql.SQLException
isCaseSensitive in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic boolean isCurrency(int column)
throws java.sql.SQLException
isCurrency in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic boolean isDefinitelyWritable(int column)
throws java.sql.SQLException
isDefinitelyWritable in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic int isNullable(int column)
throws java.sql.SQLException
isNullable in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic boolean isReadOnly(int column)
throws java.sql.SQLException
isReadOnly in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic boolean isSearchable(int column)
throws java.sql.SQLException
isSearchable in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic boolean isSigned(int column)
throws java.sql.SQLException
isSigned in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic boolean isWritable(int column)
throws java.sql.SQLException
isWritable in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isWrapperFor(java.lang.Class<?> iface)
throws java.sql.SQLException
isWrapperFor in interface java.sql.Wrapperjava.sql.SQLExceptionpublic <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
unwrap in interface java.sql.Wrapperjava.sql.SQLExceptionpublic Field[] getFields()