|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface extends from javax.resource.cci.Record. An implementation of this interface serves as a Record.
The WSRdbRecord is a record from which users can access the the ResultSet object and retrieve the out parameters of the CallableStatement.
One typical usage of this interface is that users call getMoreResults() and getResultSet() to get the result sets. After retrieving all the result sets, users can call getXXX() to get the out parameter values of the CallableStatement.
Here is one example:
In FunctionSet class, users write the following code:
cstmt = prepareCall(obj, "{call transfer{?,?,?,?)}"); cstmt.setString(1, fromAccountNumber); cstmt.setString(2, toAccountNumber); cstmt.setDouble(3, amount); cstmt.registerOutParameter(4, java.sql.Types.DATE); cstmt.execute();
In the CMP bean BusinessMethodExtractor class, users can access the result sets by calling WSRdbRecord.getMoreResults() and WSRdbRecord.getResultSet(), and access the out parameter values of the CallableStatement by calling WSRdbRecord.getXXX() methods.
WSRdbRecord record = (WSRdbRecord) indexedRecord; while (record.getMoreResults()) { java.sql.ResultSet rs = record.getResultSet(); // access the results. ... } // Get the out parameter values record.getDate(4);
Method Summary | |
---|---|
java.sql.Array |
getArray(int i)
Retrieves the value of the designated JDBC ARRAY parameter as an Array object in the Java programming language. |
java.sql.Array |
getArray(java.lang.String parameterName)
Retrieves the value of the designated JDBC ARRAY parameter as an Array object in the Java programming language. |
java.math.BigDecimal |
getBigDecimal(int parameterIndex)
Retrieves the value of the designated JDBC NUMERIC parameter as a java.math.BigDecimal object with as many digits to the right of the decimal point as the value contains. |
java.math.BigDecimal |
getBigDecimal(int parameterIndex,
int scale)
Deprecated. use getBigDecimal(int parameterIndex) or getBigDecimal(String parameterName) |
java.math.BigDecimal |
getBigDecimal(java.lang.String parameterName)
Retrieves the value of a JDBC NUMERIC parameter as a java.math.BigDecimal object with as many digits to the right of the decimal point as the value contains. |
java.sql.Blob |
getBlob(int i)
Retrieves the value of the designated JDBC BLOB parameter as a Blob object in the Java programming language. |
java.sql.Blob |
getBlob(java.lang.String parameterName)
Retrieves the value of a JDBC BLOB parameter as a Blob object in the Java programming language. |
boolean |
getBoolean(int parameterIndex)
Retrieves the value of the designated JDBC BIT parameter as a boolean in the Java programming language. |
boolean |
getBoolean(java.lang.String parameterName)
Retrieves the value of a JDBC BIT parameter as a boolean in the Java programming language. |
byte |
getByte(int parameterIndex)
Retrieves the value of the designated JDBC TINYINT parameter as a byte in the Java programming language. |
byte |
getByte(java.lang.String parameterName)
Retrieves the value of a JDBC TINYINT parameter as a byte in the Java programming language. |
byte[] |
getBytes(int parameterIndex)
Retrieves the value of the designated JDBC BINARY or VARBINARY parameter as an array of byte values in the Java programming language. |
byte[] |
getBytes(java.lang.String parameterName)
Retrieves the value of a JDBC BINARY or VARBINARY parameter as an array of byte values in the Java programming language. |
java.sql.Clob |
getClob(int i)
Retrieves the value of the designated JDBC CLOB parameter as a Clob object in the Java programming language. |
java.sql.Clob |
getClob(java.lang.String parameterName)
Retrieves the value of a JDBC CLOB parameter as a Clob object in the Java programming language. |
java.sql.Date |
getDate(int parameterIndex)
Retrieves the value of the designated JDBC DATE parameter as a java.sql.Date object. |
java.sql.Date |
getDate(int parameterIndex,
java.util.Calendar cal)
Retrieves the value of the designated JDBC DATE parameter as a java.sql.Date object, using the given Calendar object to construct the date. |
java.sql.Date |
getDate(java.lang.String parameterName)
Retrieves the value of a JDBC DATE parameter as a java.sql.Date object. |
java.sql.Date |
getDate(java.lang.String parameterName,
java.util.Calendar cal)
Retrieves the value of a JDBC DATE parameter as a java.sql.Date object, using the given Calendar object to construct the date. |
double |
getDouble(int parameterIndex)
Retrieves the value of the designated JDBC DOUBLE parameter as a double in the Java programming language. |
double |
getDouble(java.lang.String parameterName)
Retrieves the value of a JDBC DOUBLE parameter as a double in the Java programming language. |
float |
getFloat(int parameterIndex)
Retrieves the value of the designated JDBC FLOAT parameter as a float in the Java programming language. |
float |
getFloat(java.lang.String parameterName)
Retrieves the value of a JDBC FLOAT parameter as a float in the Java programming language. |
int |
getInt(int parameterIndex)
Retrieves the value of the designated JDBC INTEGER parameter as an int in the Java programming language. |
int |
getInt(java.lang.String parameterName)
Retrieves the value of a JDBC INTEGER parameter as an int in the Java programming language. |
long |
getLong(int parameterIndex)
Retrieves the value of the designated JDBC BIGINT parameter as a long in the Java programming language. |
long |
getLong(java.lang.String parameterName)
Retrieves the value of a JDBC BIGINT parameter as a long in the Java programming language. |
boolean |
getMoreResults()
Moves to this Record object's next result, returns true if it is a ResultSet object, and implicitly closes any current ResultSet object(s) obtained with the method getResultSet. |
java.lang.Object |
getObject(int parameterIndex)
Retrieves the value of the designated parameter as an Object in the Java programming language. |
java.lang.Object |
getObject(int i,
java.util.Map map)
Returns an object representing the value of OUT parameter i and uses map for the custom mapping of the parameter value. |
java.lang.Object |
getObject(java.lang.String parameterName)
Retrieves the value of a parameter as an Object in the Java programming language. |
java.lang.Object |
getObject(java.lang.String parameterName,
java.util.Map map)
Returns an object representing the value of OUT parameter i and uses map for the custom mapping of the parameter value. |
java.sql.Ref |
getRef(int i)
Retrieves the value of the designated JDBC REF( |
java.sql.Ref |
getRef(java.lang.String parameterName)
Retrieves the value of a JDBC REF( |
java.sql.ResultSet |
getResultSet()
Retrieves the current result as a ResultSet object. |
short |
getShort(int parameterIndex)
Retrieves the value of the designated JDBC SMALLINT parameter as a short in the Java programming language. |
short |
getShort(java.lang.String parameterName)
Retrieves the value of a JDBC SMALLINT parameter as a short in the Java programming language. |
java.lang.String |
getString(int parameterIndex)
Retrieves the value of the designated JDBC CHAR, VARCHAR, or LONGVARCHAR parameter as a String in the Java programming language. |
java.lang.String |
getString(java.lang.String parameterName)
Retrieves the value of a JDBC CHAR, VARCHAR, or LONGVARCHAR parameter as a String in the Java programming language. |
java.sql.Time |
getTime(int parameterIndex)
Retrieves the value of the designated JDBC TIME parameter as a java.sql.Time object. |
java.sql.Time |
getTime(int parameterIndex,
java.util.Calendar cal)
Retrieves the value of the designated JDBC TIME parameter as a java.sql.Time object, using the given Calendar object to construct the time. |
java.sql.Time |
getTime(java.lang.String parameterName)
Retrieves the value of a JDBC TIME parameter as a java.sql.Time object. |
java.sql.Time |
getTime(java.lang.String parameterName,
java.util.Calendar cal)
Retrieves the value of a JDBC TIME parameter as a java.sql.Time object, using the given Calendar object to construct the time. |
java.sql.Timestamp |
getTimestamp(int parameterIndex)
Retrieves the value of the designated JDBC TIMESTAMP parameter as a java.sql.Timestamp object. |
java.sql.Timestamp |
getTimestamp(int parameterIndex,
java.util.Calendar cal)
Retrieves the value of the designated JDBC TIMESTAMP parameter as a java.sql.Timestamp object, using the given Calendar object to construct the Timestamp object. |
java.sql.Timestamp |
getTimestamp(java.lang.String parameterName)
Retrieves the value of the designated JDBC TIMESTAMP parameter as a java.sql.Timestamp object. |
java.sql.Timestamp |
getTimestamp(java.lang.String parameterName,
java.util.Calendar cal)
Retrieves the value of a JDBC TIMESTAMP parameter as a java.sql.Timestamp object, using the given Calendar object to construct the Timestamp object. |
int |
getUpdateCount()
Retrieves the current result as an update count; if the result is a ResultSet object or there are no more results, -1 is returned. |
java.net.URL |
getURL(int parameterIndex)
Retrieves the value of the designated JDBC DATALINK parameter as a java.net.URL object. |
java.net.URL |
getURL(java.lang.String parameterName)
Retrieves the value of a JDBC DATALINK parameter as a java.net.URL object. |
boolean |
wasNull()
Retrieves whether the last OUT parameter read had the value of SQL NULL. |
Methods inherited from interface javax.resource.cci.Record |
---|
clone, equals, getRecordName, getRecordShortDescription, hashCode, setRecordName, setRecordShortDescription |
Method Detail |
public java.sql.ResultSet getResultSet() throws java.sql.SQLException
Retrieves the current result as a ResultSet object. This method should be called only once per result.
java.sql.SQLException
- if a database access error occurpublic int getUpdateCount() throws java.sql.SQLException
Retrieves the current result as an update count; if the result is a ResultSet object or there are no more results, -1 is returned. This method should be called only once per result.
java.sql.SQLException
- if a database access error occurspublic boolean getMoreResults() throws java.sql.SQLException
Moves to this Record object's next result, returns true if it is a ResultSet object, and implicitly closes any current ResultSet object(s) obtained with the method getResultSet.
There are no more results when the following is true:
(!getMoreResults() && (getUpdateCount() == -1)
java.sql.SQLException
- if a database access error occurspublic java.sql.Array getArray(int i) throws java.sql.SQLException
Retrieves the value of the designated JDBC ARRAY parameter as an Array object in the Java programming language.
i
- the first parameter is 1, the second is 2, and so onjava.sql.SQLException
- if a database access error occurs.public java.sql.Array getArray(java.lang.String parameterName) throws java.sql.SQLException
Retrieves the value of the designated JDBC ARRAY parameter as an Array object in the Java programming language.
i
- the first parameter is 1, the second is 2, and so onjava.sql.SQLException
- if a database access error occurspublic java.math.BigDecimal getBigDecimal(int parameterIndex) throws java.sql.SQLException
Retrieves the value of the designated JDBC NUMERIC parameter as a java.math.BigDecimal object with as many digits to the right of the decimal point as the value contains.
parameterIndex
- the first parameter is 1, the second is 2, and so onjava.sql.SQLException
- if a database access error occurspublic java.math.BigDecimal getBigDecimal(int parameterIndex, int scale) throws java.sql.SQLException
Retrieves the value of the designated JDBC NUMERIC parameter as a java.math.BigDecimal object with scale digits to the right of the decimal point.
parameterIndex
- the first parameter is 1, the second is 2, and so onscale
- the number of digits to the right of the decimal pointjava.sql.SQLException
- if a database access error occurspublic java.math.BigDecimal getBigDecimal(java.lang.String parameterName) throws java.sql.SQLException
Retrieves the value of a JDBC NUMERIC parameter as a java.math.BigDecimal object with as many digits to the right of the decimal point as the value contains.
parameterName
- the name of the parameterjava.sql.SQLException
- if a database access error occurspublic java.sql.Blob getBlob(int i) throws java.sql.SQLException
Retrieves the value of the designated JDBC BLOB parameter as a Blob object in the Java programming language.
i
- the first parameter is 1, the second is 2, and so onjava.sql.SQLException
- if a database access error occurspublic java.sql.Blob getBlob(java.lang.String parameterName) throws java.sql.SQLException
Retrieves the value of a JDBC BLOB parameter as a Blob object in the Java programming language.
parameterName
- the name of the parameterjava.sql.SQLException
- if a database access error occurspublic boolean getBoolean(int parameterIndex) throws java.sql.SQLException
Retrieves the value of the designated JDBC BIT parameter as a boolean in the Java programming language.
parameterIndex
- the first parameter is 1, the second is 2, and so onjava.sql.SQLException
- if a database access error occurspublic boolean getBoolean(java.lang.String parameterName) throws java.sql.SQLException
Retrieves the value of a JDBC BIT parameter as a boolean in the Java programming language.
parameterName
- the name of the parameterjava.sql.SQLException
- if a database access error occurspublic byte getByte(int parameterIndex) throws java.sql.SQLException
Retrieves the value of the designated JDBC TINYINT parameter as a byte in the Java programming language.
parameterIndex
- the first parameter is 1, the second is 2, and so onjava.sql.SQLException
- if a database access error occurspublic byte getByte(java.lang.String parameterName) throws java.sql.SQLException
Retrieves the value of a JDBC TINYINT parameter as a byte in the Java programming language.
parameterName
- the name of the parameterjava.sql.SQLException
- if a database access error occurspublic byte[] getBytes(int parameterIndex) throws java.sql.SQLException
Retrieves the value of the designated JDBC BINARY or VARBINARY parameter as an array of byte values in the Java programming language.
parameterIndex
- the first parameter is 1, the second is 2, and so onjava.sql.SQLException
- if a database access error occurspublic byte[] getBytes(java.lang.String parameterName) throws java.sql.SQLException
Retrieves the value of a JDBC BINARY or VARBINARY parameter as an array of byte values in the Java programming language.
parameterName
- the name of the parameterjava.sql.SQLException
- if a database access error occurspublic java.sql.Clob getClob(int i) throws java.sql.SQLException
Retrieves the value of the designated JDBC CLOB parameter as a Clob object in the Java programming language.
i
- the first parameter is 1, the second is 2, and so onjava.sql.SQLException
- if a database access error occurspublic java.sql.Clob getClob(java.lang.String parameterName) throws java.sql.SQLException
Retrieves the value of a JDBC CLOB parameter as a Clob object in the Java programming language.
parameterName
- the name of the parameterjava.sql.SQLException
- if a database access error occurspublic java.sql.Date getDate(int parameterIndex) throws java.sql.SQLException
Retrieves the value of the designated JDBC DATE parameter as a java.sql.Date object.
parameterIndex
- the first parameter is 1, the second is 2, and so onjava.sql.SQLException
- if a database access error occurspublic java.sql.Date getDate(int parameterIndex, java.util.Calendar cal) throws java.sql.SQLException
Retrieves the value of the designated JDBC DATE parameter as a java.sql.Date object, using the given Calendar object to construct the date. With a Calendar object, the driver can calculate the date taking into account a custom timezone and locale. If no Calendar object is specified, the driver uses the default timezone and locale.
parameterIndex
- the first parameter is 1, the second is 2, and so oncal
- the Calendar object the driver will use to construct the datejava.sql.SQLException
- if a database access error occurspublic java.sql.Date getDate(java.lang.String parameterName) throws java.sql.SQLException
Retrieves the value of a JDBC DATE parameter as a java.sql.Date object.
parameterName
- the name of the parameterjava.sql.SQLException
- if a database access error occurspublic java.sql.Date getDate(java.lang.String parameterName, java.util.Calendar cal) throws java.sql.SQLException
Retrieves the value of a JDBC DATE parameter as a java.sql.Date object, using the given Calendar object to construct the date. With a Calendar object, the driver can calculate the date taking into account a custom timezone and locale. If no Calendar object is specified, the driver uses the default timezone and locale.
parameterName
- the name of the parametercal
- the Calendar object the driver will use to construct the datejava.sql.SQLException
- if a database access error occurspublic double getDouble(int parameterIndex) throws java.sql.SQLException
Retrieves the value of the designated JDBC DOUBLE parameter as a double in the Java programming language.
parameterIndex
- the first parameter is 1, the second is 2, and so onjava.sql.SQLException
- if a database access error occurspublic double getDouble(java.lang.String parameterName) throws java.sql.SQLException
Retrieves the value of a JDBC DOUBLE parameter as a double in the Java programming language.
parameterName
- the name of the parameterjava.sql.SQLException
- if a database access error occurspublic float getFloat(int parameterIndex) throws java.sql.SQLException
Retrieves the value of the designated JDBC FLOAT parameter as a float in the Java programming language.
parameterIndex
- the first parameter is 1, the second is 2, and so onjava.sql.SQLException
- if a database access error occurspublic float getFloat(java.lang.String parameterName) throws java.sql.SQLException
Retrieves the value of a JDBC FLOAT parameter as a float in the Java programming language.
parameterName
- the name of the parameterjava.sql.SQLException
- if a database access error occurspublic int getInt(int parameterIndex) throws java.sql.SQLException
Retrieves the value of the designated JDBC INTEGER parameter as an int in the Java programming language.
parameterIndex
- the first parameter is 1, the second is 2, and so onjava.sql.SQLException
- if a database access error occurspublic int getInt(java.lang.String parameterName) throws java.sql.SQLException
Retrieves the value of a JDBC INTEGER parameter as an int in the Java programming language.
parameterName
- the name of the parameterjava.sql.SQLException
- if a database access error occurspublic long getLong(int parameterIndex) throws java.sql.SQLException
Retrieves the value of the designated JDBC BIGINT parameter as a long in the Java programming language.
parameterIndex
- the first parameter is 1, the second is 2, and so onjava.sql.SQLException
- if a database access error occurspublic long getLong(java.lang.String parameterName) throws java.sql.SQLException
Retrieves the value of a JDBC BIGINT parameter as a long in the Java programming language.
parameterName
- the name of the parameterjava.sql.SQLException
- if a database access error occurspublic java.lang.Object getObject(int parameterIndex) throws java.sql.SQLException
Retrieves the value of the designated parameter as an Object in the Java programming language. If the value is an SQL NULL, the driver returns a Java null.
This method returns a Java object whose type corresponds to the JDBC type that was registered for this parameter using the method registerOutParameter. By registering the target JDBC type as java.sql.Types.OTHER, this method can be used to read database-specific abstract data types.
parameterIndex
- the first parameter is 1, the second is 2, and so onjava.sql.SQLException
- if a database access error occurspublic java.lang.Object getObject(int i, java.util.Map map) throws java.sql.SQLException
Returns an object representing the value of OUT parameter i and uses map for the custom mapping of the parameter value.
This method returns a Java object whose type corresponds to the JDBC type that was registered for this parameter using the method registerOutParameter. By registering the target JDBC type as java.sql.Types.OTHER, this method can be used to read database-specific abstract data types.
i
- the first parameter is 1, the second is 2, and so onmap
- the mapping from SQL type names to Java classesjava.sql.SQLException
- if a database access error occurspublic java.lang.Object getObject(java.lang.String parameterName) throws java.sql.SQLException
Retrieves the value of a parameter as an Object in the Java programming language. If the value is an SQL NULL, the driver returns a Java null.
This method returns a Java object whose type corresponds to the JDBC type that was registered for this parameter using the method registerOutParameter. By registering the target JDBC type as java.sql.Types.OTHER, this method can be used to read database-specific abstract data types.
parameterName
- the name of the parameterjava.sql.SQLException
- if a database access error occurspublic java.lang.Object getObject(java.lang.String parameterName, java.util.Map map) throws java.sql.SQLException
Returns an object representing the value of OUT parameter i and uses map for the custom mapping of the parameter value.
This method returns a Java object whose type corresponds to the JDBC type that was registered for this parameter using the method registerOutParameter. By registering the target JDBC type as java.sql.Types.OTHER, this method can be used to read database-specific abstract data types.
parameterName
- the name of the parametermap
- the mapping from SQL type names to Java classesjava.sql.SQLException
- if a database access error occurspublic java.sql.Ref getRef(int i) throws java.sql.SQLException
Retrieves the value of the designated JDBC REF(
i
- the first parameter is 1, the second is 2, and so onjava.sql.SQLException
- if a database access error occurspublic java.sql.Ref getRef(java.lang.String parameterName) throws java.sql.SQLException
Retrieves the value of a JDBC REF(
parameterName
- the name of the parameterjava.sql.SQLException
- if a database access error occurspublic short getShort(int parameterIndex) throws java.sql.SQLException
Retrieves the value of the designated JDBC SMALLINT parameter as a short in the Java programming language.
parameterIndex
- the first parameter is 1, the second is 2, and so onjava.sql.SQLException
- if a database access error occurspublic short getShort(java.lang.String parameterName) throws java.sql.SQLException
Retrieves the value of a JDBC SMALLINT parameter as a short in the Java programming language.
parameterName
- the name of the parameterjava.sql.SQLException
- if a database access error occurspublic java.lang.String getString(int parameterIndex) throws java.sql.SQLException
Retrieves the value of the designated JDBC CHAR, VARCHAR, or LONGVARCHAR parameter as a String in the Java programming language.
For the fixed-length type JDBC CHAR, the String object returned has exactly the same value the JDBC CHAR value had in the database, including any padding added by the database.
parameterIndex
- the first parameter is 1, the second is 2, and so onjava.sql.SQLException
- if a database access error occurspublic java.lang.String getString(java.lang.String parameterName) throws java.sql.SQLException
Retrieves the value of a JDBC CHAR, VARCHAR, or LONGVARCHAR parameter as a String in the Java programming language.
For the fixed-length type JDBC CHAR, the String object returned has exactly the same value the JDBC CHAR value had in the database, including any padding added by the database.
parameterName
- - the name of the parameterjava.sql.SQLException
- if a database access error occurspublic java.sql.Time getTime(int parameterIndex) throws java.sql.SQLException
Retrieves the value of the designated JDBC TIME parameter as a java.sql.Time object.
parameterIndex
- the first parameter is 1, the second is 2, and so onjava.sql.SQLException
- if a database access error occurspublic java.sql.Time getTime(int parameterIndex, java.util.Calendar cal) throws java.sql.SQLException
Retrieves the value of the designated JDBC TIME parameter as a java.sql.Time object, using the given Calendar object to construct the time. With a Calendar object, the driver can calculate the time taking into account a custom timezone and locale. If no Calendar object is specified, the driver uses the default timezone and locale.
parameterIndex
- the first parameter is 1, the second is 2, and so oncal
- the Calendar object the driver will use to construct the timejava.sql.SQLException
- if a database access error occurspublic java.sql.Time getTime(java.lang.String parameterName) throws java.sql.SQLException
Retrieves the value of a JDBC TIME parameter as a java.sql.Time object.
parameterName
- the name of the parameterjava.sql.SQLException
- if a database access error occurspublic java.sql.Time getTime(java.lang.String parameterName, java.util.Calendar cal) throws java.sql.SQLException
Retrieves the value of a JDBC TIME parameter as a java.sql.Time object, using the given Calendar object to construct the time. With a Calendar object, the driver can calculate the time taking into account a custom timezone and locale. If no Calendar object is specified, the driver uses the default timezone and locale.
parameterName
- the name of the parametercal
- the Calendar object the driver will use to construct the timejava.sql.SQLException
- - if a database access error occurspublic java.sql.Timestamp getTimestamp(int parameterIndex) throws java.sql.SQLException
Retrieves the value of the designated JDBC TIMESTAMP parameter as a java.sql.Timestamp object.
parameterIndex
- the first parameter is 1, the second is 2, and so onjava.sql.SQLException
- if a database access error occurspublic java.sql.Timestamp getTimestamp(int parameterIndex, java.util.Calendar cal) throws java.sql.SQLException
Retrieves the value of the designated JDBC TIMESTAMP parameter as a java.sql.Timestamp object, using the given Calendar object to construct the Timestamp object. With a Calendar object, the driver can calculate the timestamp taking into account a custom timezone and locale. If no Calendar object is specified, the driver uses the default timezone and locale.
parameterIndex
- the first parameter is 1, the second is 2, and so oncal
- the Calendar object the driver will use to construct the timestampjava.sql.SQLException
- if a database access error occurspublic java.sql.Timestamp getTimestamp(java.lang.String parameterName) throws java.sql.SQLException
Retrieves the value of the designated JDBC TIMESTAMP parameter as a java.sql.Timestamp object.
parameterName
- the name of the parameterjava.sql.SQLException
- if a database access error occurspublic java.sql.Timestamp getTimestamp(java.lang.String parameterName, java.util.Calendar cal) throws java.sql.SQLException
Retrieves the value of a JDBC TIMESTAMP parameter as a java.sql.Timestamp object, using the given Calendar object to construct the Timestamp object. With a Calendar object, the driver can calculate the timestamp taking into account a custom timezone and locale. If no Calendar object is specified, the driver uses the default timezone and locale.
prameterName
- the name of the parametercal
- the Calendar object the driver will use to construct the timestampjava.sql.SQLException
- if a database access error occurspublic java.net.URL getURL(int parameterIndex) throws java.sql.SQLException
Retrieves the value of the designated JDBC DATALINK parameter as a java.net.URL object.
parameterIndex
- the first parameter is 1, the second is 2,...java.sql.SQLException
- if a database access error occurs, or if the URL being
returned is not a valid URL on the Java platformpublic java.net.URL getURL(java.lang.String parameterName) throws java.sql.SQLException
Retrieves the value of a JDBC DATALINK parameter as a java.net.URL object.
parameterName
- the name of the parameterjava.sql.SQLException
- if a database access error occurs, or if there is a problem
with the URLpublic boolean wasNull() throws java.sql.SQLException
Retrieves whether the last OUT parameter read had the value of SQL NULL. Note that this method should be called only after calling a getter method; otherwise, there is no value to use in determining whether it is null or not.
java.sql.SQLException
- if a database access error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |