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()
What's the number of columns in the ResultSet?
|
int |
getColumnDisplaySize(int column)
What's the column's normal max width in chars?
|
int |
getColumnExtendedId(int column)
What's the Column's extended id?
|
java.util.Vector<IfxColumnInfo> |
getColumnInfoVector() |
java.lang.String |
getColumnLabel(int column)
What's the suggested column title for use in printouts and
displays?
|
int |
getColumnLength(int column)
What's the Column Length for this column?
|
java.lang.String |
getColumnName(int column)
What's a column's name?
|
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)
What's 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)
What's a column's number of decimal digits?
|
short |
getReference(int column)
What's the Column's reference type?
|
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?
|
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)
What's a column's table name?
|
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)
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?
|
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)
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 |
isVariableLengthType(int colnum) |
boolean |
isWrapperFor(java.lang.Class<?> iface) |
boolean |
isWritable(int column)
Is it possible for a write on the column to succeed?
|
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 |
setColumnName(int colnum,
java.lang.String Xname) |
void |
setDataSourceName(int colnum,
java.lang.String Xstype) |
void |
setDecimalDigits(int colnum,
int Xdigits) |
void |
setDelimIdent(boolean value) |
void |
setEncodedLength(int colnum,
int len) |
void |
setIfxColumnType(int colnum,
int Xtype) |
protected void |
setMode(int colnum,
int modeVal) |
void |
setNullable(int colnum,
int Xnull) |
void |
setRightDecimal(int colnum,
int Xright) |
void |
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.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLExceptionpublic boolean isSearchable(int column)
throws java.sql.SQLException
isSearchable in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLExceptionpublic boolean isCurrency(int column)
throws java.sql.SQLException
isCurrency in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLExceptionpublic int isNullable(int column)
throws java.sql.SQLException
isNullable in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLExceptionpublic boolean isSigned(int column)
throws java.sql.SQLException
isSigned in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLExceptionpublic int getColumnDisplaySize(int column)
throws java.sql.SQLException
getColumnDisplaySize in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLExceptionpublic java.lang.String getColumnLabel(int column)
throws java.sql.SQLException
getColumnLabel in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLExceptionpublic java.lang.String getColumnName(int column)
throws java.sql.SQLException
getColumnName in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLExceptionpublic java.lang.String getSchemaName(int column)
throws java.sql.SQLException
getSchemaName in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLExceptionpublic int getPrecision(int column)
throws java.sql.SQLException
getPrecision in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLExceptionpublic int getEncodedLength(int column)
throws java.sql.SQLException
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.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.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.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLExceptionpublic boolean isWritable(int column)
throws java.sql.SQLException
isWritable in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLExceptionpublic boolean isDefinitelyWritable(int column)
throws java.sql.SQLException
isDefinitelyWritable in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.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 void setColumnName(int colnum,
java.lang.String Xname)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setDecimalDigits(int colnum,
int Xdigits)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setRightDecimal(int colnum,
int Xright)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void 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 void setIfxColumnType(int colnum,
int Xtype)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static boolean setTypeBooleanFields(IfxColumnInfo cinfo, int Xtype)
public void setDataSourceName(int colnum,
java.lang.String Xstype)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setColumnCount(int numcol)
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