|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Extension of the java.util.Map such that it has the same getters and setters like java.sql.ResultSet. This interface adds new features to the javax.resource.cci.MappedRecord. You can use ResultMap instead of MappedRecord, but you are not required to do it.
| Inner classes inherited from class java.util.Map |
java.util.Map.Entry |
| Method Summary | |
int |
findColumn(java.lang.String fieldName)
Maps the given ResultMap column name to its
ResultMap column index. |
java.sql.Array |
getArray(java.lang.String fieldName)
Not implemented |
java.io.InputStream |
getAsciiStream(java.lang.String fieldName)
Not supported. |
java.math.BigDecimal |
getBigDecimal(java.lang.String fieldName)
Gets the value of the designated field of this ResultMap object as a
java.math.BigDecimal with full precision. |
java.io.InputStream |
getBinaryStream(java.lang.String fieldName)
Gets the value of the designated field of this ResultMap object as a stream of uninterpreted
bytes.
|
java.sql.Blob |
getBlob(java.lang.String fieldName)
Returns the value of the designated field of this ResultMap object as a Blob object
in the Java programming language. |
boolean |
getBoolean(java.lang.String fieldName)
Gets the value of the designated field of this ResultMap object as
a boolean in the Java programming language. |
byte |
getByte(java.lang.String fieldName)
Gets the value of the designated field of this ResultMap object as
a byte in the Java programming language. |
byte[] |
getBytes(java.lang.String fieldName)
Gets the value of the designated field of this ResultMap object as
a byte array in the Java programming language.
|
java.io.Reader |
getCharacterStream(java.lang.String fieldName)
Gets the value of the designated field of this ResultMap object as a
java.io.Reader object. |
java.sql.Clob |
getClob(java.lang.String fieldName)
Returns the value of the designated field of this ResultMap object as a Clob object
in the Java programming language. |
java.sql.Date |
getDate(java.lang.String fieldName)
Gets the value of the designated field of this ResultMap object as
a java.sql.Date object in the Java programming language. |
java.sql.Date |
getDate(java.lang.String fieldName,
java.util.Calendar cal)
Returns the value of the designated field of this ResultMap object as a java.sql.Date object
in the Java programming language.
|
double |
getDouble(java.lang.String fieldName)
Gets the value of the designated field of this ResultMap object as
a double in the Java programming language. |
float |
getFloat(java.lang.String fieldName)
Gets the value of the designated field of this ResultMap object as
a float in the Java programming language. |
int |
getInt(java.lang.String fieldName)
Gets the value of the designated field of this ResultMap object as
an int in the Java programming language. |
long |
getLong(java.lang.String fieldName)
Gets the value of the designated field of this ResultMap object as
a long in the Java programming language. |
java.lang.Object |
getObject(java.lang.String fieldName)
Gets the value of the designated field of this ResultMap object as
an Object in the Java programming language.
|
java.lang.Object |
getObject(java.lang.String colName,
java.util.Map map)
Returns the value of the designated field of this ResultMap object as an Object
in the Java programming language.
|
java.sql.Ref |
getRef(java.lang.String fieldName)
Returns the value of the designated field of this ResultMap object as a Ref object
in the Java programming language. |
short |
getShort(java.lang.String fieldName)
Gets the value of the designated field of this ResultMap object as
a short in the Java programming language. |
java.lang.String |
getString(java.lang.String fieldName)
Gets the value of the designated field of this ResultMap object as
a String in the Java programming language. |
java.sql.Time |
getTime(java.lang.String fieldName)
Gets the value of the designated field of this ResultMap object as
a java.sql.Time object in the Java programming language. |
java.sql.Time |
getTime(java.lang.String fieldName,
java.util.Calendar cal)
Returns the value of the designated field of this ResultMap object as a java.sql.Time object
in the Java programming language.
|
java.sql.Timestamp |
getTimestamp(java.lang.String fieldName)
Not supported. |
java.sql.Timestamp |
getTimestamp(java.lang.String fieldName,
java.util.Calendar cal)
Not supported. |
void |
updateAsciiStream(java.lang.String fieldName,
java.io.InputStream x,
int length)
Updates the designated field with an ascii stream value. |
void |
updateBigDecimal(java.lang.String fieldName,
java.math.BigDecimal x)
Updates the designated field with a java.sql.BigDecimal
value.
|
void |
updateBinaryStream(java.lang.String fieldName,
java.io.InputStream x,
int length)
Updates the designated field with a binary stream value. |
void |
updateBoolean(java.lang.String fieldName,
boolean x)
Updates the designated field with a boolean value.
|
void |
updateByte(java.lang.String fieldName,
byte x)
Updates the designated field with a byte value.
|
void |
updateBytes(java.lang.String fieldName,
byte[] x)
Updates the designated field with a boolean value.
|
void |
updateCharacterStream(java.lang.String fieldName,
java.io.Reader reader,
int length)
Updates the designated field with a character stream value. |
void |
updateDate(java.lang.String fieldName,
java.sql.Date x)
Updates the designated field with a java.sql.Date value.
|
void |
updateDouble(java.lang.String fieldName,
double x)
Updates the designated field with a double value.
|
void |
updateFloat(java.lang.String fieldName,
float x)
Updates the designated field with a float value.
|
void |
updateInt(java.lang.String fieldName,
int x)
Updates the designated field with an int value.
|
void |
updateLong(java.lang.String fieldName,
long x)
Updates the designated field with a long value.
|
void |
updateNull(java.lang.String fieldName)
Updates the designated field with a null value.
|
void |
updateObject(java.lang.String fieldName,
java.lang.Object x)
Updates the designated field with an Object value.
|
void |
updateShort(java.lang.String fieldName,
short x)
Updates the designated field with a short value.
|
void |
updateString(java.lang.String fieldName,
java.lang.String x)
Updates the designated field with a String value.
|
void |
updateTime(java.lang.String fieldName,
java.sql.Time x)
Updates the designated field with a java.sql.Time value.
|
void |
updateTimestamp(java.lang.String fieldName,
java.sql.Timestamp x)
Not supported. |
| Methods inherited from interface javax.resource.cci.Record |
clone, equals, getRecordName, getRecordShortDescription, hashCode, setRecordName, setRecordShortDescription |
| Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
| Method Detail |
public java.lang.String getString(java.lang.String fieldName)
throws java.sql.SQLException
ResultMap object as
a String in the Java programming language.fieldName - the name of the fieldNULL, the
value returned is nulljava.sql.SQLException - if an error occurs
public boolean getBoolean(java.lang.String fieldName)
throws java.sql.SQLException
ResultMap object as
a boolean in the Java programming language.fieldName - the name of the fieldNULL, the
value returned is falsejava.sql.SQLException - if an error occurs
public byte getByte(java.lang.String fieldName)
throws java.sql.SQLException
ResultMap object as
a byte in the Java programming language.fieldName - the name of the fieldNULL, the
value returned is 0java.sql.SQLException - if an error occurs
public short getShort(java.lang.String fieldName)
throws java.sql.SQLException
ResultMap object as
a short in the Java programming language.fieldName - the name of the fieldNULL, the
value returned is 0java.sql.SQLException - if an error occurs
public int getInt(java.lang.String fieldName)
throws java.sql.SQLException
ResultMap object as
an int in the Java programming language.fieldName - the name of the fieldNULL, the
value returned is 0java.sql.SQLException - if an error occurs
public long getLong(java.lang.String fieldName)
throws java.sql.SQLException
ResultMap object as
a long in the Java programming language.fieldName - the name of the fieldNULL, the
value returned is 0java.sql.SQLException - if an error occurs
public float getFloat(java.lang.String fieldName)
throws java.sql.SQLException
ResultMap object as
a float in the Java programming language.fieldName - the name of the fieldNULL, the
value returned is 0java.sql.SQLException - if an error occurs
public double getDouble(java.lang.String fieldName)
throws java.sql.SQLException
ResultMap object as
a double in the Java programming language.fieldName - the name of the fieldNULL, the
value returned is 0java.sql.SQLException - if an error occurs
public byte[] getBytes(java.lang.String fieldName)
throws java.sql.SQLException
ResultMap object as
a byte array in the Java programming language.
The bytes represent the raw values returned by the driver.fieldName - the name of the fieldNULL, the
value returned is nulljava.sql.SQLException - if an error occurs
public java.sql.Date getDate(java.lang.String fieldName)
throws java.sql.SQLException
ResultMap object as
a java.sql.Date object in the Java programming language.fieldName - the name of the fieldNULL, the
value returned is nulljava.sql.SQLException - if an error occurs
public java.sql.Time getTime(java.lang.String fieldName)
throws java.sql.SQLException
ResultMap object as
a java.sql.Time object in the Java programming language.fieldName - the name of the fieldNULL,
the value returned is nulljava.sql.SQLException - if an error occurs
public java.sql.Timestamp getTimestamp(java.lang.String fieldName)
throws java.sql.SQLException
UnsupportedOperationException -
public java.io.InputStream getAsciiStream(java.lang.String fieldName)
throws java.sql.SQLException
UnsupportedOperationException -
public java.io.InputStream getBinaryStream(java.lang.String fieldName)
throws java.sql.SQLException
ResultMap object as a stream of uninterpreted
bytes.
The value can then be read in chunks from the
stream. This method is particularly
suitable for retrieving large LONGVARBINARY
values.
Note: All the data in the returned stream must be
read prior to getting the value of any other column. The next
call to a getXXX method implicitly closes the stream. Also, a
stream may return 0 when the method available
is called whether there is data available or not.
fieldName - the name of the fieldNULL, the result is nulljava.sql.SQLException - if an error occurs
public java.lang.Object getObject(java.lang.String fieldName)
throws java.sql.SQLException
Gets the value of the designated field
of this ResultMap object as
an Object in the Java programming language.
This method will return the value of the given column as a Java object. The type of the Java object will be the default Java object type corresponding to the column's SQL type, following the mapping for built-in types specified in the JDBC specification.
This method may also be used to read datatabase-specific
abstract data types.
In the JDBC 2.0 API, the behavior of the method
getObject is extended to materialize
data of SQL user-defined types. When a column contains
a structured or distinct value, the behavior of this method is as
if it were a call to: getObject(columnIndex,
this.getStatement().getConnection().getTypeMap()).
fieldName - the name of the fieldjava.lang.Object holding the field's valuejava.sql.SQLException - if an error occurs
public int findColumn(java.lang.String fieldName)
throws java.sql.SQLException
ResultMap column name to its
ResultMap column index.fieldName - the name of the columnjava.sql.SQLException - if an error occurs
public java.io.Reader getCharacterStream(java.lang.String fieldName)
throws java.sql.SQLException
ResultMap object as a
java.io.Reader object.fieldName - the name of the columnjava.io.Reader object that contains the column
value; if the value is SQL NULL, the value returned is
null in the Java programming language.
public java.math.BigDecimal getBigDecimal(java.lang.String fieldName)
throws java.sql.SQLException
ResultMap object as a
java.math.BigDecimal with full precision.fieldName - the column nameNULL, the value returned is
null in the Java programming language.java.sql.SQLException - if an error occurs
public void updateNull(java.lang.String fieldName)
throws java.sql.SQLException
null value.
The updateXXX methods are used to update column values in the
current row or the insert row. The updateXXX methods do not
update the underlying database; instead the updateRow or
insertRow methods are called to update the database.fieldName - the name of the columnjava.sql.SQLException - if an error occurs
public void updateBoolean(java.lang.String fieldName,
boolean x)
throws java.sql.SQLException
boolean value.
The updateXXX methods are used to update column values in the
current row or the insert row. The updateXXX methods do not
update the underlying database; instead the updateRow or
insertRow methods are called to update the database.fieldName - the name of the columnx - the new column valuejava.sql.SQLException - if an error occurs
public void updateByte(java.lang.String fieldName,
byte x)
throws java.sql.SQLException
byte value.
The updateXXX methods are used to update column values in the
current row or the insert row. The updateXXX methods do not
update the underlying database; instead the updateRow or
insertRow methods are called to update the database.fieldName - the name of the columnx - the new column valuejava.sql.SQLException - if an error occurs
public void updateShort(java.lang.String fieldName,
short x)
throws java.sql.SQLException
short value.
The updateXXX methods are used to update column values in the
current row or the insert row. The updateXXX methods do not
update the underlying database; instead the updateRow or
insertRow methods are called to update the database.fieldName - the name of the columnx - the new column valuejava.sql.SQLException - if an error occurs
public void updateInt(java.lang.String fieldName,
int x)
throws java.sql.SQLException
int value.
The updateXXX methods are used to update column values in the
current row or the insert row. The updateXXX methods do not
update the underlying database; instead the updateRow or
insertRow methods are called to update the database.fieldName - the name of the columnx - the new column valuejava.sql.SQLException - if an error occurs
public void updateLong(java.lang.String fieldName,
long x)
throws java.sql.SQLException
long value.
The updateXXX methods are used to update column values in the
current row or the insert row. The updateXXX methods do not
update the underlying database; instead the updateRow or
insertRow methods are called to update the database.fieldName - the name of the columnx - the new column valuejava.sql.SQLException - if an error occurs
public void updateFloat(java.lang.String fieldName,
float x)
throws java.sql.SQLException
float value.
The updateXXX methods are used to update column values in the
current row or the insert row. The updateXXX methods do not
update the underlying database; instead the updateRow or
insertRow methods are called to update the database.fieldName - the name of the columnx - the new column valuejava.sql.SQLException - if an error occurs
public void updateDouble(java.lang.String fieldName,
double x)
throws java.sql.SQLException
double value.
The updateXXX methods are used to update column values in the
current row or the insert row. The updateXXX methods do not
update the underlying database; instead the updateRow or
insertRow methods are called to update the database.fieldName - the name of the columnx - the new column valuejava.sql.SQLException - if an error occurs
public void updateBigDecimal(java.lang.String fieldName,
java.math.BigDecimal x)
throws java.sql.SQLException
java.sql.BigDecimal
value.
The updateXXX methods are used to update column values in the
current row or the insert row. The updateXXX methods do not
update the underlying database; instead the updateRow or
insertRow methods are called to update the database.fieldName - the name of the columnx - the new column valuejava.sql.SQLException - if an error occurs
public void updateString(java.lang.String fieldName,
java.lang.String x)
throws java.sql.SQLException
String value.
The updateXXX methods are used to update column values in the
current row or the insert row. The updateXXX methods do not
update the underlying database; instead the updateRow or
insertRow methods are called to update the database.fieldName - the name of the columnx - the new column valuejava.sql.SQLException - if an error occurs
public void updateBytes(java.lang.String fieldName,
byte[] x)
throws java.sql.SQLException
boolean value.
The updateXXX methods are used to update column values in the
current row or the insert row. The updateXXX methods do not
update the underlying database; instead the updateRow or
insertRow methods are called to update the database.
Updates a column with a byte array value.
The updateXXX methods are used to update column values in the
current row, or the insert row. The updateXXX methods do not
update the underlying database; instead the updateRow or insertRow
methods are called to update the database.fieldName - the name of the columnx - the new column valuejava.sql.SQLException - if an error occurs
public void updateDate(java.lang.String fieldName,
java.sql.Date x)
throws java.sql.SQLException
java.sql.Date value.
The updateXXX methods are used to update column values in the
current row or the insert row. The updateXXX methods do not
update the underlying database; instead the updateRow or
insertRow methods are called to update the database.fieldName - the name of the columnx - the new column valuejava.sql.SQLException - if an error occurs
public void updateTime(java.lang.String fieldName,
java.sql.Time x)
throws java.sql.SQLException
java.sql.Time value.
The updateXXX methods are used to update column values in the
current row or the insert row. The updateXXX methods do not
update the underlying database; instead the updateRow or
insertRow methods are called to update the database.fieldName - the name of the columnx - the new column valuejava.sql.SQLException - if an error occurs
public void updateTimestamp(java.lang.String fieldName,
java.sql.Timestamp x)
throws java.sql.SQLException
UnsupportedOperationException -
public void updateAsciiStream(java.lang.String fieldName,
java.io.InputStream x,
int length)
throws java.sql.SQLException
updateXXX methods are used to update column values in the
current row or the insert row. The updateXXX methods do not
update the underlying database; instead the updateRow or
insertRow methods are called to update the database.fieldName - the name of the columnx - the new column valuelength - the length of the streamjava.sql.SQLException - if an error occurs
public void updateBinaryStream(java.lang.String fieldName,
java.io.InputStream x,
int length)
throws java.sql.SQLException
updateXXX methods are used to update column values in the
current row or the insert row. The updateXXX methods do not
update the underlying database; instead the updateRow or
insertRow methods are called to update the database.fieldName - the name of the columnx - the new column valuelength - the length of the streamjava.sql.SQLException - if an error occurs
public void updateCharacterStream(java.lang.String fieldName,
java.io.Reader reader,
int length)
throws java.sql.SQLException
updateXXX methods are used to update column values in the
current row or the insert row. The updateXXX methods do not
update the underlying database; instead the updateRow or
insertRow methods are called to update the database.fieldName - the name of the columnreader - the Readerlength - the length of the streamjava.sql.SQLException - if an error occurs
public void updateObject(java.lang.String fieldName,
java.lang.Object x)
throws java.sql.SQLException
Object value.
The updateXXX methods are used to update column values in the
current row or the insert row. The updateXXX methods do not
update the underlying database; instead the updateRow or
insertRow methods are called to update the database.fieldName - the name of the columnx - the new column valuejava.sql.SQLException - if an error occurs
public java.lang.Object getObject(java.lang.String colName,
java.util.Map map)
throws java.sql.SQLException
ResultMap object as an Object
in the Java programming language.
This method uses the specified Map object for
custom mapping if appropriate.colName - the name of the column from which to retrieve the valuemap - a java.util.Map object that contains the mapping
from SQL type names to classes in the Java programming languageObject representing the SQL value in the specified column
public java.sql.Ref getRef(java.lang.String fieldName)
throws java.sql.SQLException
ResultMap object as a Ref object
in the Java programming language.fieldName - the column nameRef object representing the SQL REF value in
the specified column
public java.sql.Blob getBlob(java.lang.String fieldName)
throws java.sql.SQLException
ResultMap object as a Blob object
in the Java programming language.fieldName - the name of the column from which to retrieve the valueBlob object representing the BLOB value in
the specified column
public java.sql.Clob getClob(java.lang.String fieldName)
throws java.sql.SQLException
ResultMap object as a Clob object
in the Java programming language.fieldName - the name of the column from which to retrieve the valueClob object representing the CLOB
value in the specified column
public java.sql.Array getArray(java.lang.String fieldName)
throws java.sql.SQLException
UnsupportedOperationException -
public java.sql.Date getDate(java.lang.String fieldName,
java.util.Calendar cal)
throws java.sql.SQLException
ResultMap object as a java.sql.Date object
in the Java programming language.
This method uses the given calendar to construct an appropriate millisecond
value for the date if the underlying database does not store
timezone information.fieldName - the name of the field from which to retrieve the valuecal - the java.util.Calendar object
to use in constructing the datejava.sql.Date object;
if the value is SQL NULL,
the value returned is null in the Java programming languagejava.sql.SQLException - if an error occurs
public java.sql.Time getTime(java.lang.String fieldName,
java.util.Calendar cal)
throws java.sql.SQLException
ResultMap object as a java.sql.Time object
in the Java programming language.
This method uses the given calendar to construct an appropriate millisecond
value for the time if the underlying database does not store
timezone information.fieldName - the name of the fieldcal - the java.util.Calendar object
to use in constructing the timejava.sql.Time object;
if the value is SQL NULL,
the value returned is null in the Java programming languagejava.sql.SQLException - if an error occurs
public java.sql.Timestamp getTimestamp(java.lang.String fieldName,
java.util.Calendar cal)
throws java.sql.SQLException
UnsupportedOperationException -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||