Package org.apache.derby.client.am
Class ColumnMetaData
java.lang.Object
org.apache.derby.client.am.ColumnMetaData
- All Implemented Interfaces:
ResultSetMetaData
,Wrapper
-
Field Summary
FieldsModifier and TypeFieldDescriptionint[]
int
private LogWriter
boolean[]
int[][]
(package private) int
int[]
String[]
short
short
short
short
short
short
String[]
long[]
String[]
int[]
int[]
int[]
String[]
String[]
short[]
String[]
String[]
short[]
short[]
String[]
short[]
String[]
String[]
int[]
private boolean
int[]
Fields inherited from interface java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown
-
Constructor Summary
ConstructorsConstructorDescriptionColumnMetaData
(LogWriter logWriter) ColumnMetaData
(LogWriter logWriter, int upperBound) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
assignColumnName
(int column) private void
(package private) void
checkForValidColumnIndex
(int column) (package private) int
findColumnX
(String columnName) getCatalogName
(int column) What's a column's table's catalog name?getColumnClassName
(int column) int
int
getColumnDisplaySize
(int column) getColumnLabel
(int column) getColumnName
(int column) int
getColumnType
(int column) getColumnTypeName
(int column) int
getPrecision
(int column) int
getScale
(int column) getSchemaName
(int column) getTableName
(int column) (package private) boolean
void
initializeCache
(int upperBound) 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
(Class<?> iface) Check whether this instance wraps an object that implements the interface specified byiface
.boolean
isWritable
(int column) (package private) void
private void
void
setLogWriter
(LogWriter logWriter) <T> T
Returnsthis
if this class implements the specified interface.
-
Field Details
-
columns_
public int columns_ -
nullable_
public boolean[] nullable_ -
sqldHold_
public short sqldHold_ -
sqldReturn_
public short sqldReturn_ -
sqldScroll_
public short sqldScroll_ -
sqldSensitive_
public short sqldSensitive_ -
sqldFcode_
public short sqldFcode_ -
sqldKeytype_
public short sqldKeytype_ -
sqldRdbnam_
-
sqldSchema_
-
sqlPrecision_
public int[] sqlPrecision_ -
sqlScale_
public int[] sqlScale_ -
sqlLength_
public long[] sqlLength_ -
sqlType_
public int[] sqlType_ -
sqlCcsid_
public int[] sqlCcsid_ -
sqlName_
-
sqlLabel_
-
sqlUnnamed_
public short[] sqlUnnamed_ -
sqlComment_
-
sqlUDTname_
-
sqlUDTclassName_
-
sqlxKeymem_
public short[] sqlxKeymem_ -
sqlxGenerated_
public short[] sqlxGenerated_ -
sqlxParmmode_
public short[] sqlxParmmode_ -
sqlxCorname_
-
sqlxName_
-
sqlxBasename_
-
sqlxUpdatable_
public int[] sqlxUpdatable_ -
sqlxSchema_
-
sqlxRdbnam_
-
protocolTypesCache_
public transient int[][] protocolTypesCache_ -
types_
public transient int[] types_ -
clientParamtertype_
public transient int[] clientParamtertype_ -
logWriter_
-
resultSetConcurrency_
transient int resultSetConcurrency_ -
columnNameToIndexCache_
-
statementClosed_
private transient boolean statementClosed_
-
-
Constructor Details
-
ColumnMetaData
-
ColumnMetaData
-
-
Method Details
-
markClosed
void markClosed() -
checkForClosedStatement
- Throws:
SqlException
-
initializeCache
public void initializeCache(int upperBound) -
getColumnCount
- Specified by:
getColumnCount
in interfaceResultSetMetaData
- Throws:
SQLException
-
isAutoIncrement
- Specified by:
isAutoIncrement
in interfaceResultSetMetaData
- Throws:
SQLException
-
isCaseSensitive
- Specified by:
isCaseSensitive
in interfaceResultSetMetaData
- Throws:
SQLException
-
isSearchable
- Specified by:
isSearchable
in interfaceResultSetMetaData
- Throws:
SQLException
-
isCurrency
- Specified by:
isCurrency
in interfaceResultSetMetaData
- Throws:
SQLException
-
isNullable
- Specified by:
isNullable
in interfaceResultSetMetaData
- Throws:
SQLException
-
isSigned
- Specified by:
isSigned
in interfaceResultSetMetaData
- Throws:
SQLException
-
getColumnDisplaySize
- Specified by:
getColumnDisplaySize
in interfaceResultSetMetaData
- Throws:
SQLException
-
getColumnLabel
- Specified by:
getColumnLabel
in interfaceResultSetMetaData
- Throws:
SQLException
-
getColumnName
- Specified by:
getColumnName
in interfaceResultSetMetaData
- Throws:
SQLException
-
getSchemaName
- Specified by:
getSchemaName
in interfaceResultSetMetaData
- Throws:
SQLException
-
getPrecision
- Specified by:
getPrecision
in interfaceResultSetMetaData
- Throws:
SQLException
-
getScale
- Specified by:
getScale
in interfaceResultSetMetaData
- Throws:
SQLException
-
getTableName
- Specified by:
getTableName
in interfaceResultSetMetaData
- Throws:
SQLException
-
getCatalogName
What's a column's table's catalog name?- Specified by:
getCatalogName
in interfaceResultSetMetaData
- Parameters:
column
- the first column is 1, the second is 2, ...- Returns:
- column name or "" if not applicable.
- Throws:
SQLException
- thrown on failure
-
getColumnType
- Specified by:
getColumnType
in interfaceResultSetMetaData
- Throws:
SQLException
-
getColumnTypeName
- Specified by:
getColumnTypeName
in interfaceResultSetMetaData
- Throws:
SQLException
-
isReadOnly
- Specified by:
isReadOnly
in interfaceResultSetMetaData
- Throws:
SQLException
-
isWritable
- Specified by:
isWritable
in interfaceResultSetMetaData
- Throws:
SQLException
-
isDefinitelyWritable
- Specified by:
isDefinitelyWritable
in interfaceResultSetMetaData
- Throws:
SQLException
-
getColumnClassName
- Specified by:
getColumnClassName
in interfaceResultSetMetaData
- Throws:
SQLException
-
checkForValidColumnIndex
- Throws:
SqlException
-
setLogWriter
-
nullDataForGC
private void nullDataForGC() -
hasLobColumns
boolean hasLobColumns() -
findColumnX
- Throws:
SqlException
-
assignColumnName
private void assignColumnName(int column) -
isWrapperFor
Check whether this instance wraps an object that implements the interface specified byiface
.- Specified by:
isWrapperFor
in interfaceWrapper
- Parameters:
iface
- a class defining an interface- Returns:
true
if this instance implementsiface
, orfalse
otherwise- Throws:
SQLException
- if an error occurs while determining if this instance implementsiface
-
unwrap
Returnsthis
if this class implements the specified interface.- Specified by:
unwrap
in interfaceWrapper
- Parameters:
iface
- a class defining an interface- Returns:
- an object that implements the interface
- Throws:
SQLException
- if no object is found that implements the interface
-