public class IfxResultSetMetaData extends java.lang.Object implements IfmxResultSetMetaData
| Modifier and Type | Field and Description |
|---|---|
protected IfxConnection |
conn |
protected boolean |
delimIdent |
protected boolean |
hasVariableLengthCharColumns |
protected boolean |
hasVariableLengthColumns |
protected int |
rowidx |
protected int |
serialidx |
protected Trace |
trace |
| Constructor and Description |
|---|
IfxResultSetMetaData(int numcol,
IfxConnection thisconn)
Constructor to allocate spaces
|
| Modifier and Type | Method and Description |
|---|---|
void |
cloneColumnInfo(int colnum,
IfxColumnInfo from) |
protected int |
findrowid()
Used by ResultSet() in order to support updatable
cursors.
|
protected java.lang.String |
findserial()
Used by ResultSet() in order to support updatable
cursors.
|
int |
getAlignment(int column)
What's the Column's alignment?
|
java.lang.String |
getCatalogName(int column)
What's a column's table's catalog name?
Not supported!
|
IfmxResultSetMetaData |
getChild(int column)
What's the Column's child complex type information for a nested
complex type.
|
java.lang.String |
getColumnClassName(int column)
JDBC 2.0
|
int |
getColumnCount() |
int |
getColumnDisplaySize(int column) |
int |
getColumnExtendedId(int column)
What's the Column's extended id?
|
java.util.Vector<IfxColumnInfo> |
getColumnInfoVector() |
java.lang.String |
getColumnLabel(int column) |
int |
getColumnLength(int column)
What's the Column Length for this column?
|
java.lang.String |
getColumnName(int column) |
int |
getColumnStartPosition(int column)
What's the Column's starting position in the tuple?
|
int |
getColumnType(int column)
What's a column's SQL type?
|
java.lang.String |
getColumnTypeName(int column)
What's a column's data source specific type name?
|
IfxConnection |
getConnection() |
boolean |
getDelimIdent() |
int |
getEncodedLength(int column)
Gets the column's encoded Length
|
java.lang.String |
getExtendedName(int column)
What's the Column's extended name?
|
java.lang.String |
getExtendedOwnerName(int column)
What's the Column's extended type's owner name?
|
short |
getFieldNo(int column)
What's the Column's Field number?
|
int |
getIfxColumnType(int column)
What's a column's Informix SQL type?
|
short |
getLevelNo(int column)
What's the Column's Level number?
|
protected int |
getMode(int colnum) |
short |
getParentNo(int column)
What's the Column's Parent number?
|
int |
getPrecision(int column) |
short |
getReference(int column)
What's the Column's reference type?
|
int |
getScale(int column) |
java.lang.String |
getSchemaName(int column) |
short |
getSeqNo(int column)
What's the Column's Sequence number?
|
int |
getSourceType(int column)
What's the Column's SourceType?
|
java.lang.String |
getTableName(int column) |
protected short |
getTupleSize()
Return the size of one row
|
boolean |
isAutoIncrement(int column)
Is the column automatically numbered, thus read-only?
If it is Informix SERIAL data type ?
Examine SQLtype of the column.
|
boolean |
isCaseSensitive(int column) |
boolean |
isCurrency(int column) |
boolean |
isDefinitelyWritable(int column) |
boolean |
isDistinct(int column)
Is the column a distinct type?
|
boolean |
isNamedRow(int column)
Is the column a named row type?
|
int |
isNullable(int column) |
boolean |
isReadOnly(int column) |
boolean |
isSearchable(int column) |
boolean |
isSigned(int column) |
boolean |
isVariableLengthType(int colnum) |
boolean |
isWrapperFor(java.lang.Class<?> iface) |
boolean |
isWritable(int column) |
void |
parseSetTableName(java.lang.String command) |
static java.lang.String |
parseTableName(java.lang.String command)
parseTableName
Given the command string, get the table name out of it by
looking for the identifier after certain words.
|
void |
setAutoIncrement(int colnum,
short ai) |
void |
setColumnCount(int numcol) |
void |
setColumnInfo(int colnum,
java.lang.String name,
int type,
int length) |
IfxResultSetMetaData |
setColumnName(int colnum,
java.lang.String Xname) |
IfxResultSetMetaData |
setDataSourceName(int colnum,
java.lang.String Xstype) |
IfxResultSetMetaData |
setDecimalDigits(int colnum,
int Xdigits) |
void |
setDelimIdent(boolean value) |
void |
setEncodedLength(int colnum,
int len) |
IfxResultSetMetaData |
setIfxColumnType(int colnum,
int Xtype) |
protected void |
setMode(int colnum,
int modeVal) |
void |
setNullable(int colnum,
int Xnull) |
IfxResultSetMetaData |
setRightDecimal(int colnum,
int Xright) |
IfxResultSetMetaData |
setTableName(int colnum,
java.lang.String Xtname) |
void |
setTextByteColumnCount() |
protected void |
setTupleSize(short size)
Store the size of one row returned by the server
|
static boolean |
setTypeBooleanFields(IfxColumnInfo cinfo,
int Xtype) |
<T> T |
unwrap(java.lang.Class<T> iface) |
protected boolean hasVariableLengthColumns
protected boolean hasVariableLengthCharColumns
protected boolean delimIdent
protected IfxConnection conn
protected Trace trace
protected int serialidx
protected int rowidx
public IfxResultSetMetaData(int numcol,
IfxConnection thisconn)
public java.util.Vector<IfxColumnInfo> getColumnInfoVector() throws java.sql.SQLException
java.sql.SQLExceptionpublic int getColumnCount()
throws java.sql.SQLException
getColumnCount in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic int getColumnLength(int column)
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getColumnStartPosition(int column)
throws java.sql.SQLException
getColumnStartPosition in interface IfmxResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLException - if a database access error occurspublic int getColumnExtendedId(int column)
throws java.sql.SQLException
getColumnExtendedId in interface IfmxResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLException - if a database access error occurspublic java.lang.String getExtendedName(int column)
throws java.sql.SQLException
getExtendedName in interface IfmxResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLException - if a database access error occurspublic java.lang.String getExtendedOwnerName(int column)
throws java.sql.SQLException
getExtendedOwnerName in interface IfmxResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLException - if a database access error occurspublic short getReference(int column)
throws java.sql.SQLException
getReference in interface IfmxResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLException - if a database access error occurspublic int getAlignment(int column)
throws java.sql.SQLException
getAlignment in interface IfmxResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLException - if a database access error occurspublic int getSourceType(int column)
throws java.sql.SQLException
getSourceType in interface IfmxResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLException - if a database access error occurspublic boolean isAutoIncrement(int column)
throws java.sql.SQLException
isAutoIncrement in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLExceptionpublic boolean isCaseSensitive(int column)
throws java.sql.SQLException
isCaseSensitive in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic boolean isSearchable(int column)
throws java.sql.SQLException
isSearchable in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic boolean isCurrency(int column)
throws java.sql.SQLException
isCurrency in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic int isNullable(int column)
throws java.sql.SQLException
isNullable in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic boolean isSigned(int column)
throws java.sql.SQLException
isSigned 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 java.lang.String getSchemaName(int column)
throws java.sql.SQLException
getSchemaName in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic int getPrecision(int column)
throws java.sql.SQLException
getPrecision in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic int getEncodedLength(int column)
throws java.sql.SQLException
IfmxResultSetMetaDataGets the column's encoded Length
getEncodedLength in interface IfmxResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLException - if a database access error occurspublic int getScale(int column)
throws java.sql.SQLException
getScale 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 java.lang.String getCatalogName(int column)
throws java.sql.SQLException
getCatalogName in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLExceptionpublic int getColumnType(int column)
throws java.sql.SQLException
getColumnType in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLExceptionTypespublic int getIfxColumnType(int column)
throws java.sql.SQLException
getIfxColumnType in interface IfmxResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLException - if a database access error occursTypespublic java.lang.String getColumnTypeName(int column)
throws java.sql.SQLException
getColumnTypeName in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLExceptionpublic boolean isReadOnly(int column)
throws java.sql.SQLException
isReadOnly in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic boolean isWritable(int column)
throws java.sql.SQLException
isWritable in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic boolean isDefinitelyWritable(int column)
throws java.sql.SQLException
isDefinitelyWritable in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic boolean isDistinct(int column)
throws java.sql.SQLException
isDistinct in interface IfmxResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLException - if a database access error occurspublic boolean isNamedRow(int column)
throws java.sql.SQLException
isNamedRow in interface IfmxResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLException - if a database access error occurspublic IfmxResultSetMetaData getChild(int column) throws java.sql.SQLException
getChild in interface IfmxResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLExceptionpublic short getLevelNo(int column)
throws java.sql.SQLException
getLevelNo in interface IfmxResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLException - if a database access error occurspublic short getSeqNo(int column)
throws java.sql.SQLException
getSeqNo in interface IfmxResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLException - if a database access error occurspublic short getParentNo(int column)
throws java.sql.SQLException
getParentNo in interface IfmxResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLException - if a database access error occurspublic short getFieldNo(int column)
throws java.sql.SQLException
getFieldNo in interface IfmxResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLException - if a database access error occurspublic void setEncodedLength(int colnum,
int len)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setNullable(int colnum,
int Xnull)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setAutoIncrement(int colnum,
short ai)
throws java.sql.SQLException
java.sql.SQLExceptionpublic IfxResultSetMetaData setColumnName(int colnum, java.lang.String Xname) throws java.sql.SQLException
java.sql.SQLExceptionpublic IfxResultSetMetaData setDecimalDigits(int colnum, int Xdigits) throws java.sql.SQLException
java.sql.SQLExceptionpublic IfxResultSetMetaData setRightDecimal(int colnum, int Xright) throws java.sql.SQLException
java.sql.SQLExceptionpublic IfxResultSetMetaData setTableName(int colnum, java.lang.String Xtname) throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean isVariableLengthType(int colnum)
throws java.sql.SQLException
java.sql.SQLExceptionpublic IfxResultSetMetaData setIfxColumnType(int colnum, int Xtype) throws java.sql.SQLException
java.sql.SQLExceptionpublic static boolean setTypeBooleanFields(IfxColumnInfo cinfo, int Xtype)
public IfxResultSetMetaData setDataSourceName(int colnum, java.lang.String Xstype) throws java.sql.SQLException
java.sql.SQLExceptionpublic void setColumnCount(int numcol)
public void setColumnInfo(int colnum,
java.lang.String name,
int type,
int length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setDelimIdent(boolean value)
public boolean getDelimIdent()
public IfxConnection getConnection()
public void cloneColumnInfo(int colnum,
IfxColumnInfo from)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.String getColumnClassName(int column)
throws java.sql.SQLException
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.
getColumnClassName in interface java.sql.ResultSetMetaDatajava.sql.SQLExceptionpublic void setTextByteColumnCount()
throws java.sql.SQLException
java.sql.SQLExceptionpublic static java.lang.String parseTableName(java.lang.String command)
public void parseSetTableName(java.lang.String command)
throws java.sql.SQLException
java.sql.SQLExceptionprotected int findrowid()
throws java.sql.SQLException
java.sql.SQLExceptionprotected java.lang.String findserial()
throws java.sql.SQLException
java.sql.SQLExceptionprotected void setTupleSize(short size)
protected short getTupleSize()
protected int getMode(int colnum)
throws java.sql.SQLException
java.sql.SQLExceptionprotected void setMode(int colnum,
int modeVal)
throws java.sql.SQLException
java.sql.SQLExceptionpublic 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.SQLException