Class ColumnMetaData
java.lang.Object
org.apache.derby.client.am.ColumnMetaData
- All Implemented Interfaces:
ResultSetMetaData, Wrapper
-
Field Summary
FieldsModifier and TypeFieldDescriptionint[]intprivate LogWriterboolean[]int[][](package private) intint[]String[]shortshortshortshortshortshortString[]long[]String[]int[]int[]int[]String[]String[]short[]String[]String[]short[]short[]String[]short[]String[]String[]int[]private booleanint[]Fields inherited from interface ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown -
Constructor Summary
ConstructorsConstructorDescriptionColumnMetaData(LogWriter logWriter) ColumnMetaData(LogWriter logWriter, int upperBound) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassignColumnName(int column) private void(package private) voidcheckForValidColumnIndex(int column) (package private) intfindColumnX(String columnName) getCatalogName(int column) What's a column's table's catalog name?getColumnClassName(int column) intintgetColumnDisplaySize(int column) getColumnLabel(int column) getColumnName(int column) intgetColumnType(int column) getColumnTypeName(int column) intgetPrecision(int column) intgetScale(int column) getSchemaName(int column) getTableName(int column) (package private) booleanvoidinitializeCache(int upperBound) booleanisAutoIncrement(int column) booleanisCaseSensitive(int column) booleanisCurrency(int column) booleanisDefinitelyWritable(int column) intisNullable(int column) booleanisReadOnly(int column) booleanisSearchable(int column) booleanisSigned(int column) booleanisWrapperFor(Class<?> iface) Check whether this instance wraps an object that implements the interface specified byiface.booleanisWritable(int column) (package private) voidprivate voidvoidsetLogWriter(LogWriter logWriter) <T> TReturnsthisif 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:
getColumnCountin interfaceResultSetMetaData- Throws:
SQLException
-
isAutoIncrement
- Specified by:
isAutoIncrementin interfaceResultSetMetaData- Throws:
SQLException
-
isCaseSensitive
- Specified by:
isCaseSensitivein interfaceResultSetMetaData- Throws:
SQLException
-
isSearchable
- Specified by:
isSearchablein interfaceResultSetMetaData- Throws:
SQLException
-
isCurrency
- Specified by:
isCurrencyin interfaceResultSetMetaData- Throws:
SQLException
-
isNullable
- Specified by:
isNullablein interfaceResultSetMetaData- Throws:
SQLException
-
isSigned
- Specified by:
isSignedin interfaceResultSetMetaData- Throws:
SQLException
-
getColumnDisplaySize
- Specified by:
getColumnDisplaySizein interfaceResultSetMetaData- Throws:
SQLException
-
getColumnLabel
- Specified by:
getColumnLabelin interfaceResultSetMetaData- Throws:
SQLException
-
getColumnName
- Specified by:
getColumnNamein interfaceResultSetMetaData- Throws:
SQLException
-
getSchemaName
- Specified by:
getSchemaNamein interfaceResultSetMetaData- Throws:
SQLException
-
getPrecision
- Specified by:
getPrecisionin interfaceResultSetMetaData- Throws:
SQLException
-
getScale
- Specified by:
getScalein interfaceResultSetMetaData- Throws:
SQLException
-
getTableName
- Specified by:
getTableNamein interfaceResultSetMetaData- Throws:
SQLException
-
getCatalogName
What's a column's table's catalog name?- Specified by:
getCatalogNamein 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:
getColumnTypein interfaceResultSetMetaData- Throws:
SQLException
-
getColumnTypeName
- Specified by:
getColumnTypeNamein interfaceResultSetMetaData- Throws:
SQLException
-
isReadOnly
- Specified by:
isReadOnlyin interfaceResultSetMetaData- Throws:
SQLException
-
isWritable
- Specified by:
isWritablein interfaceResultSetMetaData- Throws:
SQLException
-
isDefinitelyWritable
- Specified by:
isDefinitelyWritablein interfaceResultSetMetaData- Throws:
SQLException
-
getColumnClassName
- Specified by:
getColumnClassNamein 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:
isWrapperForin interfaceWrapper- Parameters:
iface- a class defining an interface- Returns:
trueif this instance implementsiface, orfalseotherwise- Throws:
SQLException- if an error occurs while determining if this instance implementsiface
-
unwrap
Returnsthisif this class implements the specified interface.- Specified by:
unwrapin 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
-