| java.lang.Object org.julp.MetaData
Method Summary | |
public String | getCatalogName(int columnIndex) Gets the designated column's table's catalog name.
Parameters: columnIndex - the first column is 1, the second is 2, ... | public String | getColumnClassName(int columnIndex) Returns the fully-qualified name of the Java class whose instances
are manufactured if the method ResultSet.getObject
is called to retrieve a value
from the column. | public int | getColumnCount() Returns the number of columns in this ResultSet object. | public int | getColumnDisplaySize(int columnIndex) Indicates the designated column's normal maximum width in characters.
Parameters: columnIndex - the first column is 1, the second is 2, ... | public int | getColumnIndexByFieldName(String searchedFieldName) | public String | getColumnLabel(int columnIndex) Gets the designated column's suggested title for use in printouts and
displays.
Parameters: columnIndex - the first column is 1, the second is 2, ... | public String | getColumnName(int columnIndex) Get the designated column's name.
Parameters: columnIndex - the first column is 1, the second is 2, ... | public int | getColumnType(int columnIndex) Retrieves the designated column's SQL type.
Parameters: columnIndex - the first column is 1, the second is 2, ... | public String | getColumnTypeName(int columnIndex) Retrieves the designated column's database-specific type name.
Parameters: columnIndex - the first column is 1, the second is 2, ... | public java.lang.Class | getFieldClass(int columnIndex) | public String | getFieldClassName(int columnIndex) | public String | getFieldName(int columnIndex) | public String | getFullColumnName(int columnIndex) | public int | getPrecision(int columnIndex) Get the designated column's number of decimal digits.
Parameters: columnIndex - the first column is 1, the second is 2, ... | public Method | getReadMethod(int columnIndex) | public int | getScale(int columnIndex) Gets the designated column's number of digits to right of the decimal point.
Parameters: columnIndex - the first column is 1, the second is 2, ... | public String | getSchemaName(int columnIndex) Get the designated column's table's schema.
Parameters: columnIndex - the first column is 1, the second is 2, ... | public String | getTableName(int columnIndex) Gets the designated column's table name.
Parameters: columnIndex - the first column is 1, the second is 2, ... | public java.util.Map | getTables() | public Method | getWriteMethod(int columnIndex) | public boolean | isAutoIncrement(int columnIndex) Indicates whether the designated column is automatically numbered, thus read-only.
Parameters: columnIndex - the first column is 1, the second is 2, ... | public boolean | isCaseSensitive(int columnIndex) Indicates whether a column's case matters.
Parameters: columnIndex - the first column is 1, the second is 2, ... | public boolean | isCurrency(int columnIndex) Indicates whether the designated column is a cash value.
Parameters: columnIndex - the first column is 1, the second is 2, ... | public boolean | isDefinitelyWritable(int columnIndex) Indicates whether a write on the designated column will definitely succeed.
Parameters: columnIndex - the first column is 1, the second is 2, ... | public int | isNullable(int columnIndex) Indicates the nullability of values in the designated column.
Parameters: columnIndex - the first column is 1, the second is 2, ... | public boolean | isReadOnly(int columnIndex) Indicates whether the designated column is definitely not writable.
Parameters: columnIndex - the first column is 1, the second is 2, ... | public boolean | isSearchable(int columnIndex) Indicates whether the designated column can be used in a where clause.
Parameters: columnIndex - the first column is 1, the second is 2, ... | public boolean | isSigned(int columnIndex) Indicates whether values in the designated column are signed numbers.
Parameters: columnIndex - the first column is 1, the second is 2, ... | public boolean | isThrowMissingFieldException() | public boolean | isWritable(int columnIndex) Indicates whether it is possible for a write on the designated column to succeed.
Parameters: columnIndex - the first column is 1, the second is 2, ... | public void | populate(Map mapping, Class requestor) | protected void | populateReadMethod(int columnIndex, String fieldName) | protected void | populateWriteMethod(int columnIndex, String fieldName) | public void | setAutoIncrement(int columnIndex, boolean property) Sets whether the designated column is automatically numbered,
and thus read-only. | public void | setCaseSensitive(int columnIndex, boolean property) Sets whether the designated column is case sensitive. | public void | setCatalogName(int columnIndex, String catalogName) Sets the designated column's table's catalog name, if any, to the given
String . | public void | setColumnClassName(int columnIndex, java.lang.String columnClassName) | public void | setColumnCount(int columnCount) Sets the number of columns in the RowSet object to
the given number. | public void | setColumnDisplaySize(int columnIndex, int size) Sets the designated column's normal maximum width in chars to the
given int . | public void | setColumnLabel(int columnIndex, String label) Sets the suggested column title for use in printouts and
displays, if any, to the given String . | public void | setColumnName(int columnIndex, String columnName) Sets the name of the designated column to the given String . | public void | setColumnType(int columnIndex, int SQLType) Sets the designated column's SQL type to the one given. | public void | setColumnTypeName(int columnIndex, String typeName) Sets the designated column's type name that is specific to the
data source, if any, to the given String . | public void | setCurrency(int columnIndex, boolean property) Sets whether the designated column is a cash value. | public void | setDefinitelyWritable(int columnIndex, boolean definitelyWritable) | public void | setFieldClass(int columnIndex, Class fieldClass) | public void | setFieldClassName(int columnIndex, String fieldClassName) | public void | setFieldName(int columnIndex, String fieldName) | public void | setFullColumnName(int columnIndex, String columnName) | public void | setNullable(int columnIndex, int property) Sets whether the designated column's value can be set to
NULL . | public void | setPrecision(int columnIndex, int precision) Sets the designated column's number of decimal digits to the
given int . | public void | setReadMethod(int columnIndex, Method readMethod) | public void | setReadOnly(int columnIndex, boolean readOnly) | public void | setScale(int columnIndex, int scale) Sets the designated column's number of digits to the
right of the decimal point to the given int . | public void | setSchemaName(int columnIndex, String schemaName) Sets the name of the designated column's table's schema, if any, to
the given String . | public void | setSearchable(int columnIndex, boolean property) Sets whether the designated column can be used in a where clause. | public void | setSigned(int columnIndex, boolean property) Sets whether the designated column is a signed number. | public void | setTableName(int columnIndex, String tableName) Sets the designated column's table name, if any, to the given
String . | public void | setTables(java.util.Map tables) | public void | setThrowMissingFieldException(boolean throwMissingFieldException) | public void | setWritable(int columnIndex, boolean writable) | public void | setWriteMethod(int columnIndex, Method writeMethod) | public String | toLabel(String columnName) | public String | toString() |
autoIncrement | protected boolean[] autoIncrement(Code) | | |
caseSensitive | protected boolean[] caseSensitive(Code) | | |
columnCount | protected int columnCount(Code) | | |
columnDisplaySize | protected int[] columnDisplaySize(Code) | | |
columnType | protected int[] columnType(Code) | | |
currency | protected boolean[] currency(Code) | | |
definitelyWritable | protected boolean[] definitelyWritable(Code) | | |
nullable | protected int[] nullable(Code) | | |
precision | protected int[] precision(Code) | | |
readOnly | protected boolean[] readOnly(Code) | | |
scale | protected int[] scale(Code) | | |
searchable | protected boolean[] searchable(Code) | | |
signed | protected boolean[] signed(Code) | | |
throwMissingFieldException | protected boolean throwMissingFieldException(Code) | | |
writable | protected boolean[] writable(Code) | | |
MetaData | public MetaData()(Code) | | Populates and caches columns, tables, fields, etc info
|
getCatalogName | public String getCatalogName(int columnIndex) throws SQLException(Code) | | Gets the designated column's table's catalog name.
Parameters: columnIndex - the first column is 1, the second is 2, ... the name of the catalog for the table in which the given columnappears or "" if not applicable exception: SQLException - if a database access error occurs |
getColumnClassName | public String getColumnClassName(int columnIndex) throws SQLException(Code) | | Returns the fully-qualified name of the Java class whose instances
are manufactured if the method ResultSet.getObject
is called to retrieve a value
from the column. ResultSet.getObject may return a subclass of the
class returned by this method.
Parameters: columnIndex - the first column is 1, the second is 2, ... the fully-qualified name of the class in the Java programminglanguage that would be used by the methodResultSet.getObject to retrieve the value in the specifiedcolumn. This is the class name used for custom mapping. exception: SQLException - if a database access error occurs since: 1.2 |
getColumnCount | public int getColumnCount() throws SQLException(Code) | | Returns the number of columns in this ResultSet object.
the number of columns exception: SQLException - if a database access error occurs |
getColumnDisplaySize | public int getColumnDisplaySize(int columnIndex) throws SQLException(Code) | | Indicates the designated column's normal maximum width in characters.
Parameters: columnIndex - the first column is 1, the second is 2, ... the normal maximum number of characters allowed as the widthof the designated column exception: SQLException - if a database access error occurs |
getColumnIndexByFieldName | public int getColumnIndexByFieldName(String searchedFieldName)(Code) | | |
getColumnLabel | public String getColumnLabel(int columnIndex) throws SQLException(Code) | | Gets the designated column's suggested title for use in printouts and
displays.
Parameters: columnIndex - the first column is 1, the second is 2, ... the suggested column title exception: SQLException - if a database access error occurs |
getColumnName | public String getColumnName(int columnIndex) throws SQLException(Code) | | Get the designated column's name.
Parameters: columnIndex - the first column is 1, the second is 2, ... column name exception: SQLException - if a database access error occurs |
getColumnType | public int getColumnType(int columnIndex) throws SQLException(Code) | | Retrieves the designated column's SQL type.
Parameters: columnIndex - the first column is 1, the second is 2, ... SQL type from java.sql.Types exception: SQLException - if a database access error occurs See Also: java.sql.Types |
getColumnTypeName | public String getColumnTypeName(int columnIndex) throws SQLException(Code) | | Retrieves the designated column's database-specific type name.
Parameters: columnIndex - the first column is 1, the second is 2, ... type name used by the database. If the column type isa user-defined type, then a fully-qualified type name is returned. exception: SQLException - if a database access error occurs |
getPrecision | public int getPrecision(int columnIndex) throws SQLException(Code) | | Get the designated column's number of decimal digits.
Parameters: columnIndex - the first column is 1, the second is 2, ... precision exception: SQLException - if a database access error occurs |
getScale | public int getScale(int columnIndex) throws SQLException(Code) | | Gets the designated column's number of digits to right of the decimal point.
Parameters: columnIndex - the first column is 1, the second is 2, ... scale exception: SQLException - if a database access error occurs |
getSchemaName | public String getSchemaName(int columnIndex) throws SQLException(Code) | | Get the designated column's table's schema.
Parameters: columnIndex - the first column is 1, the second is 2, ... schema name or "" if not applicable exception: SQLException - if a database access error occurs |
getTableName | public String getTableName(int columnIndex) throws SQLException(Code) | | Gets the designated column's table name.
Parameters: columnIndex - the first column is 1, the second is 2, ... table name or "" if not applicable exception: SQLException - if a database access error occurs |
isAutoIncrement | public boolean isAutoIncrement(int columnIndex) throws SQLException(Code) | | Indicates whether the designated column is automatically numbered, thus read-only.
Parameters: columnIndex - the first column is 1, the second is 2, ... true if so; false otherwise exception: SQLException - if a database access error occurs |
isCaseSensitive | public boolean isCaseSensitive(int columnIndex) throws SQLException(Code) | | Indicates whether a column's case matters.
Parameters: columnIndex - the first column is 1, the second is 2, ... true if so; false otherwise exception: SQLException - if a database access error occurs |
isCurrency | public boolean isCurrency(int columnIndex) throws SQLException(Code) | | Indicates whether the designated column is a cash value.
Parameters: columnIndex - the first column is 1, the second is 2, ... true if so; false otherwise exception: SQLException - if a database access error occurs |
isDefinitelyWritable | public boolean isDefinitelyWritable(int columnIndex) throws SQLException(Code) | | Indicates whether a write on the designated column will definitely succeed.
Parameters: columnIndex - the first column is 1, the second is 2, ... true if so; false otherwise exception: SQLException - if a database access error occurs |
isNullable | public int isNullable(int columnIndex) throws SQLException(Code) | | Indicates the nullability of values in the designated column.
Parameters: columnIndex - the first column is 1, the second is 2, ... the nullability status of the given column; one of columnNoNulls ,columnNullable or columnNullableUnknown exception: SQLException - if a database access error occurs |
isReadOnly | public boolean isReadOnly(int columnIndex) throws SQLException(Code) | | Indicates whether the designated column is definitely not writable.
Parameters: columnIndex - the first column is 1, the second is 2, ... true if so; false otherwise exception: SQLException - if a database access error occurs |
isSearchable | public boolean isSearchable(int columnIndex) throws SQLException(Code) | | Indicates whether the designated column can be used in a where clause.
Parameters: columnIndex - the first column is 1, the second is 2, ... true if so; false otherwise exception: SQLException - if a database access error occurs |
isSigned | public boolean isSigned(int columnIndex) throws SQLException(Code) | | Indicates whether values in the designated column are signed numbers.
Parameters: columnIndex - the first column is 1, the second is 2, ... true if so; false otherwise exception: SQLException - if a database access error occurs |
isThrowMissingFieldException | public boolean isThrowMissingFieldException()(Code) | | |
isWritable | public boolean isWritable(int columnIndex) throws SQLException(Code) | | Indicates whether it is possible for a write on the designated column to succeed.
Parameters: columnIndex - the first column is 1, the second is 2, ... true if so; false otherwise exception: SQLException - if a database access error occurs |
setAutoIncrement | public void setAutoIncrement(int columnIndex, boolean property) throws SQLException(Code) | | Sets whether the designated column is automatically numbered,
and thus read-only. The default is for a RowSet object's
columns not to be automatically numbered.
Parameters: columnIndex - the first column is 1, the second is 2, ... Parameters: property - true if the column is automaticallynumbered; false if it is not exception: SQLException - if a database access error occurs |
setCaseSensitive | public void setCaseSensitive(int columnIndex, boolean property) throws SQLException(Code) | | Sets whether the designated column is case sensitive.
The default is false .
Parameters: columnIndex - the first column is 1, the second is 2, ... Parameters: property - true if the column is case sensitive;false if it is not exception: SQLException - if a database access error occurs |
setCatalogName | public void setCatalogName(int columnIndex, String catalogName) throws SQLException(Code) | | Sets the designated column's table's catalog name, if any, to the given
String .
Parameters: columnIndex - the first column is 1, the second is 2, ... Parameters: catalogName - the column's catalog name exception: SQLException - if a database access error occurs |
setColumnCount | public void setColumnCount(int columnCount) throws SQLException(Code) | | Sets the number of columns in the RowSet object to
the given number.
Parameters: columnCount - the number of columns in the RowSet object exception: SQLException - if a database access error occurs |
setColumnDisplaySize | public void setColumnDisplaySize(int columnIndex, int size) throws SQLException(Code) | | Sets the designated column's normal maximum width in chars to the
given int .
Parameters: columnIndex - the first column is 1, the second is 2, ... Parameters: size - the normal maximum number of characters forthe designated column exception: SQLException - if a database access error occurs |
setColumnLabel | public void setColumnLabel(int columnIndex, String label) throws SQLException(Code) | | Sets the suggested column title for use in printouts and
displays, if any, to the given String .
Parameters: columnIndex - the first column is 1, the second is 2, ... Parameters: label - the column title exception: SQLException - if a database access error occurs |
setColumnName | public void setColumnName(int columnIndex, String columnName) throws SQLException(Code) | | Sets the name of the designated column to the given String .
Parameters: columnIndex - the first column is 1, the second is 2, ... Parameters: columnName - the designated column's name exception: SQLException - if a database access error occurs |
setColumnType | public void setColumnType(int columnIndex, int SQLType) throws SQLException(Code) | | Sets the designated column's SQL type to the one given.
Parameters: columnIndex - the first column is 1, the second is 2, ... Parameters: SQLType - the column's SQL type exception: SQLException - if a database access error occurs See Also: java.sql.Types |
setColumnTypeName | public void setColumnTypeName(int columnIndex, String typeName) throws SQLException(Code) | | Sets the designated column's type name that is specific to the
data source, if any, to the given String .
Parameters: columnIndex - the first column is 1, the second is 2, ... Parameters: typeName - data source specific type name. exception: SQLException - if a database access error occurs |
setCurrency | public void setCurrency(int columnIndex, boolean property) throws SQLException(Code) | | Sets whether the designated column is a cash value.
The default is false .
Parameters: columnIndex - the first column is 1, the second is 2, ... Parameters: property - true if the column is a cash value;false if it is not exception: SQLException - if a database access error occurs |
setDefinitelyWritable | public void setDefinitelyWritable(int columnIndex, boolean definitelyWritable)(Code) | | |
setFieldClass | public void setFieldClass(int columnIndex, Class fieldClass)(Code) | | |
setNullable | public void setNullable(int columnIndex, int property) throws SQLException(Code) | | Sets whether the designated column's value can be set to
NULL .
The default is ResultSetMetaData.columnNullableUnknown
Parameters: columnIndex - the first column is 1, the second is 2, ... Parameters: property - one of the following constants:ResultSetMetaData.columnNoNulls ,ResultSetMetaData.columnNullable , orResultSetMetaData.columnNullableUnknown exception: SQLException - if a database access error occurs |
setPrecision | public void setPrecision(int columnIndex, int precision) throws SQLException(Code) | | Sets the designated column's number of decimal digits to the
given int .
Parameters: columnIndex - the first column is 1, the second is 2, ... Parameters: precision - the total number of decimal digits exception: SQLException - if a database access error occurs |
setReadMethod | public void setReadMethod(int columnIndex, Method readMethod)(Code) | | |
setReadOnly | public void setReadOnly(int columnIndex, boolean readOnly) throws SQLException(Code) | | |
setScale | public void setScale(int columnIndex, int scale) throws SQLException(Code) | | Sets the designated column's number of digits to the
right of the decimal point to the given int .
Parameters: columnIndex - the first column is 1, the second is 2, ... Parameters: scale - the number of digits to right of decimal point exception: SQLException - if a database access error occurs |
setSchemaName | public void setSchemaName(int columnIndex, String schemaName) throws SQLException(Code) | | Sets the name of the designated column's table's schema, if any, to
the given String .
Parameters: columnIndex - the first column is 1, the second is 2, ... Parameters: schemaName - the schema name exception: SQLException - if a database access error occurs |
setSearchable | public void setSearchable(int columnIndex, boolean property) throws SQLException(Code) | | Sets whether the designated column can be used in a where clause.
The default is false .
Parameters: columnIndex - the first column is 1, the second is 2, ... Parameters: property - true if the column can be used in aWHERE clause; false if it cannot exception: SQLException - if a database access error occurs |
setSigned | public void setSigned(int columnIndex, boolean property) throws SQLException(Code) | | Sets whether the designated column is a signed number.
The default is false .
Parameters: columnIndex - the first column is 1, the second is 2, ... Parameters: property - true if the column is a signed number;false if it is not exception: SQLException - if a database access error occurs |
setTableName | public void setTableName(int columnIndex, String tableName) throws SQLException(Code) | | Sets the designated column's table name, if any, to the given
String .
Parameters: columnIndex - the first column is 1, the second is 2, ... Parameters: tableName - the column's table name exception: SQLException - if a database access error occurs |
setThrowMissingFieldException | public void setThrowMissingFieldException(boolean throwMissingFieldException)(Code) | | |
setWritable | public void setWritable(int columnIndex, boolean writable)(Code) | | |
setWriteMethod | public void setWriteMethod(int columnIndex, Method writeMethod)(Code) | | |
|
|