|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.commerce.axiom.document.jdbc.CallableStatement
The base class of any DocumentProvider callable statements.
This takes care of much of the extraneous methods. Subclasses needs to
implement the close()
, clearParameters()
,
execute()
, setObject(int, java.lang.Object)
, and getObject(int)
methods.
Subclasses can also override methods as needed to add
additional functionality.
Field Summary | |
protected Connection |
connection
The connection which spawned us. |
Constructor Summary | |
CallableStatement(Connection connection)
Constructor. |
Method Summary | |
void |
addBatch()
Not supported. |
void |
addBatch(java.lang.String sql)
Not supported. |
void |
cancel()
Intentionally empty. |
void |
clearBatch()
Not supported. |
abstract void |
clearParameters()
Clear the input/output parameters internally. |
void |
clearWarnings()
Intentionally blank. |
abstract void |
close()
Subclasses must implement this method. |
abstract boolean |
execute()
Execute the command with the set input parameters. |
boolean |
execute(java.lang.String sql)
Not supported. |
int[] |
executeBatch()
Not supported. |
java.sql.ResultSet |
executeQuery()
Not supported. |
java.sql.ResultSet |
executeQuery(java.lang.String sql)
Not supported. |
int |
executeUpdate()
This justs executes the statement. |
int |
executeUpdate(java.lang.String sql)
Not supported. |
java.sql.Array |
getArray(int index)
Not supported. |
java.math.BigDecimal |
getBigDecimal(int index)
Not supported. |
java.math.BigDecimal |
getBigDecimal(int index,
int scale)
Not supported. |
java.sql.Blob |
getBlob(int index)
Not supported. |
boolean |
getBoolean(int index)
Not supported. |
byte |
getByte(int index)
Not supported. |
byte[] |
getBytes(int index)
Not supported. |
java.sql.Clob |
getClob(int index)
Not supported. |
java.sql.Connection |
getConnection()
Return the connection which spawned us. |
java.sql.Date |
getDate(int index)
Not supported. |
java.sql.Date |
getDate(int index,
java.util.Calendar cal)
Not supported. |
protected DocumentProvider |
getDocumentProvider()
Get the DocumentProvider we can use. |
double |
getDouble(int index)
Not supported. |
int |
getFetchDirection()
Not supported. |
int |
getFetchSize()
Not supported. |
float |
getFloat(int index)
Not supported. |
int |
getInt(int index)
Not supported. |
long |
getLong(int index)
Not supported. |
int |
getMaxFieldSize()
Not supported. |
int |
getMaxRows()
Not supported. |
java.sql.ResultSetMetaData |
getMetaData()
Not supported. |
boolean |
getMoreResults()
Not supported. |
abstract java.lang.Object |
getObject(int index)
Return the output parameter at index. |
java.lang.Object |
getObject(int index,
java.util.Map map)
Return the output parameter at index. |
int |
getQueryTimeout()
Not supported. |
java.sql.Ref |
getRef(int index)
Not supported. |
java.sql.ResultSet |
getResultSet()
Not supported. |
int |
getResultSetConcurrency()
Not supported. |
int |
getResultSetType()
Not supported. |
short |
getShort(int index)
Not supported. |
java.lang.String |
getString(int index)
Not supported. |
java.sql.Time |
getTime(int index)
Not supported. |
java.sql.Time |
getTime(int index,
java.util.Calendar cal)
Not supported. |
java.sql.Timestamp |
getTimestamp(int index)
Not supported. |
java.sql.Timestamp |
getTimestamp(int index,
java.util.Calendar cal)
Not supported. |
int |
getUpdateCount()
Not supported. |
java.sql.SQLWarning |
getWarnings()
Intentionally blank. |
void |
registerOutParameter(int index,
int sqlType)
Intentionally blank. |
void |
registerOutParameter(int index,
int sqlType,
int scale)
Intentionally blank |
void |
registerOutParameter(int index,
int sqlType,
java.lang.String typeName)
Intentionally blank |
void |
setArray(int index,
java.sql.Array x)
Not supported. |
void |
setAsciiStream(int index,
java.io.InputStream x,
int length)
Not supported. |
void |
setBigDecimal(int index,
java.math.BigDecimal x)
Not supported. |
void |
setBinaryStream(int index,
java.io.InputStream x,
int length)
Not supported. |
void |
setBlob(int index,
java.sql.Blob x)
Not supported. |
void |
setBoolean(int index,
boolean x)
Not supported. |
void |
setByte(int index,
byte x)
Not supported. |
void |
setBytes(int index,
byte[] x)
Not supported. |
void |
setCharacterStream(int index,
java.io.Reader reader,
int length)
Not supported. |
void |
setClob(int index,
java.sql.Clob x)
Not supported. |
void |
setCursorName(java.lang.String name)
Not supported. |
void |
setDate(int index,
java.sql.Date x)
Not supported. |
void |
setDate(int index,
java.sql.Date x,
java.util.Calendar cal)
Not supported. |
void |
setDouble(int index,
double x)
Not supported. |
void |
setEscapeProcessing(boolean enable)
Not supported. |
void |
setFetchDirection(int direction)
Not supported. |
void |
setFetchSize(int rows)
Not supported. |
void |
setFloat(int index,
float x)
Not supported. |
void |
setInt(int index,
int x)
Not supported. |
void |
setLong(int index,
long x)
Not supported. |
void |
setMaxFieldSize(int max)
Not supported. |
void |
setMaxRows(int max)
Not supported. |
void |
setNull(int index,
int sqlType)
Not supported. |
void |
setNull(int index,
int sqlType,
java.lang.String typeName)
Not supported. |
abstract void |
setObject(int index,
java.lang.Object x)
Set the input parameter. |
void |
setObject(int index,
java.lang.Object x,
int sqlType)
Set the input parameter. |
void |
setObject(int index,
java.lang.Object x,
int sqlType,
int scale)
Set the input parameter. |
void |
setQueryTimeout(int seconds)
Not supported. |
void |
setRef(int index,
java.sql.Ref x)
Not supported. |
void |
setShort(int index,
short x)
Not supported. |
void |
setString(int index,
java.lang.String x)
Not supported. |
void |
setTime(int index,
java.sql.Time x)
Not supported. |
void |
setTime(int index,
java.sql.Time x,
java.util.Calendar cal)
Not supported. |
void |
setTimestamp(int index,
java.sql.Timestamp x)
Not supported. |
void |
setTimestamp(int index,
java.sql.Timestamp x,
java.util.Calendar cal)
Not supported. |
void |
setUnicodeStream(int index,
java.io.InputStream x,
int length)
Not supported. |
boolean |
wasNull()
Not supported. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Connection connection
Constructor Detail |
public CallableStatement(Connection connection)
connection
- the connection which spawned us.Method Detail |
protected DocumentProvider getDocumentProvider() throws DocumentException
public void addBatch(java.lang.String sql) throws java.sql.SQLException
addBatch
in interface java.sql.Statement
java.sql.SQLException
- always thrownpublic void cancel()
cancel
in interface java.sql.Statement
public void clearBatch() throws java.sql.SQLException
clearBatch
in interface java.sql.Statement
java.sql.SQLException
- always thrown.public void clearWarnings()
clearWarnings
in interface java.sql.Statement
public abstract void close() throws java.sql.SQLException
close
in interface java.sql.Statement
java.sql.SQLException
- thrown on an error.public boolean execute(java.lang.String sql) throws java.sql.SQLException
execute
in interface java.sql.Statement
java.sql.SQLException
- always thrown.public int[] executeBatch() throws java.sql.SQLException
executeBatch
in interface java.sql.Statement
java.sql.SQLException
- always thrown.public java.sql.ResultSet executeQuery(java.lang.String sql) throws java.sql.SQLException
executeQuery
in interface java.sql.Statement
java.sql.SQLException
- always thrown.public int executeUpdate(java.lang.String sql) throws java.sql.SQLException
executeUpdate
in interface java.sql.Statement
java.sql.SQLException
- always thrown.public java.sql.Connection getConnection()
getConnection
in interface java.sql.Statement
public int getFetchDirection() throws java.sql.SQLException
getFetchDirection
in interface java.sql.Statement
java.sql.SQLException
- always thrown.public int getFetchSize() throws java.sql.SQLException
getFetchSize
in interface java.sql.Statement
java.sql.SQLException
- always thrown.public int getMaxFieldSize() throws java.sql.SQLException
getMaxFieldSize
in interface java.sql.Statement
java.sql.SQLException
- always thrown.public int getMaxRows() throws java.sql.SQLException
getMaxRows
in interface java.sql.Statement
java.sql.SQLException
- always thrown.public boolean getMoreResults() throws java.sql.SQLException
getMoreResults
in interface java.sql.Statement
java.sql.SQLException
- always thrown.public int getQueryTimeout() throws java.sql.SQLException
getQueryTimeout
in interface java.sql.Statement
java.sql.SQLException
- always thrown.public java.sql.ResultSet getResultSet() throws java.sql.SQLException
getResultSet
in interface java.sql.Statement
java.sql.SQLException
- always thrown.public int getResultSetConcurrency() throws java.sql.SQLException
getResultSetConcurrency
in interface java.sql.Statement
java.sql.SQLException
- always thrown.public int getResultSetType() throws java.sql.SQLException
getResultSetType
in interface java.sql.Statement
java.sql.SQLException
- always thrown.public int getUpdateCount() throws java.sql.SQLException
getUpdateCount
in interface java.sql.Statement
java.sql.SQLException
- always thrown.public java.sql.SQLWarning getWarnings()
getWarnings
in interface java.sql.Statement
public void setCursorName(java.lang.String name) throws java.sql.SQLException
setCursorName
in interface java.sql.Statement
java.sql.SQLException
- always thrown.public void setEscapeProcessing(boolean enable) throws java.sql.SQLException
setEscapeProcessing
in interface java.sql.Statement
java.sql.SQLException
- always thrown.public void setFetchDirection(int direction) throws java.sql.SQLException
setFetchDirection
in interface java.sql.Statement
java.sql.SQLException
- always thrown.public void setFetchSize(int rows) throws java.sql.SQLException
setFetchSize
in interface java.sql.Statement
java.sql.SQLException
- always thrown.public void setMaxFieldSize(int max) throws java.sql.SQLException
setMaxFieldSize
in interface java.sql.Statement
java.sql.SQLException
- always thrown.public void setMaxRows(int max) throws java.sql.SQLException
setMaxRows
in interface java.sql.Statement
java.sql.SQLException
- always thrown.public void setQueryTimeout(int seconds) throws java.sql.SQLException
setQueryTimeout
in interface java.sql.Statement
java.sql.SQLException
- always thrown.public void addBatch() throws java.sql.SQLException
addBatch
in interface java.sql.PreparedStatement
java.sql.SQLException
- always thrown.public abstract void clearParameters() throws java.sql.SQLException
Subclasses must implement this.
clearParameters
in interface java.sql.PreparedStatement
java.sql.SQLException
- thrown on an error.public abstract boolean execute() throws java.sql.SQLException
The results will be placed in the various output parameters.
Subclasses must implement this.
execute
in interface java.sql.PreparedStatement
java.sql.SQLException
- thrown on an error.public java.sql.ResultSet executeQuery() throws java.sql.SQLException
executeQuery
in interface java.sql.PreparedStatement
java.sql.SQLException
- always thrown.public int executeUpdate() throws java.sql.SQLException
executeUpdate
in interface java.sql.PreparedStatement
java.sql.SQLException
- thrown on an error.execute(java.lang.String)
public java.sql.ResultSetMetaData getMetaData() throws java.sql.SQLException
getMetaData
in interface java.sql.PreparedStatement
java.sql.SQLException
- always thrown.public void setArray(int index, java.sql.Array x) throws java.sql.SQLException
setArray
in interface java.sql.PreparedStatement
java.sql.SQLException
- always thrown.public void setAsciiStream(int index, java.io.InputStream x, int length) throws java.sql.SQLException
setAsciiStream
in interface java.sql.PreparedStatement
java.sql.SQLException
- always thrown.public void setBigDecimal(int index, java.math.BigDecimal x) throws java.sql.SQLException
setBigDecimal
in interface java.sql.PreparedStatement
java.sql.SQLException
- always thrown.public void setBinaryStream(int index, java.io.InputStream x, int length) throws java.sql.SQLException
setBinaryStream
in interface java.sql.PreparedStatement
java.sql.SQLException
- always thrown.public void setBlob(int index, java.sql.Blob x) throws java.sql.SQLException
setBlob
in interface java.sql.PreparedStatement
java.sql.SQLException
- always thrown.public void setBoolean(int index, boolean x) throws java.sql.SQLException
setBoolean
in interface java.sql.PreparedStatement
java.sql.SQLException
- always thrown.public void setByte(int index, byte x) throws java.sql.SQLException
setByte
in interface java.sql.PreparedStatement
java.sql.SQLException
- always thrown.public void setBytes(int index, byte[] x) throws java.sql.SQLException
setBytes
in interface java.sql.PreparedStatement
java.sql.SQLException
- always thrown.public void setCharacterStream(int index, java.io.Reader reader, int length) throws java.sql.SQLException
setCharacterStream
in interface java.sql.PreparedStatement
java.sql.SQLException
- always thrown.public void setClob(int index, java.sql.Clob x) throws java.sql.SQLException
setClob
in interface java.sql.PreparedStatement
java.sql.SQLException
- always thrown.public void setDate(int index, java.sql.Date x) throws java.sql.SQLException
setDate
in interface java.sql.PreparedStatement
java.sql.SQLException
- always thrown.public void setDate(int index, java.sql.Date x, java.util.Calendar cal) throws java.sql.SQLException
setDate
in interface java.sql.PreparedStatement
java.sql.SQLException
- always thrown.public void setDouble(int index, double x) throws java.sql.SQLException
setDouble
in interface java.sql.PreparedStatement
java.sql.SQLException
- always thrown.public void setFloat(int index, float x) throws java.sql.SQLException
setFloat
in interface java.sql.PreparedStatement
java.sql.SQLException
- always thrown.public void setInt(int index, int x) throws java.sql.SQLException
setInt
in interface java.sql.PreparedStatement
java.sql.SQLException
- always thrown.public void setLong(int index, long x) throws java.sql.SQLException
setLong
in interface java.sql.PreparedStatement
java.sql.SQLException
- always thrown.public void setNull(int index, int sqlType) throws java.sql.SQLException
setNull
in interface java.sql.PreparedStatement
java.sql.SQLException
- always thrown.public void setNull(int index, int sqlType, java.lang.String typeName) throws java.sql.SQLException
setNull
in interface java.sql.PreparedStatement
java.sql.SQLException
- always thrown.public abstract void setObject(int index, java.lang.Object x) throws java.sql.SQLException
Subclasses need to implement this method as neccessary.
setObject
in interface java.sql.PreparedStatement
java.sql.SQLException
- thrown on an error.public void setObject(int index, java.lang.Object x, int sqlType) throws java.sql.SQLException
setObject
in interface java.sql.PreparedStatement
java.sql.SQLException
- thrown on an error.setObject(int, java.lang.Object)
public void setObject(int index, java.lang.Object x, int sqlType, int scale) throws java.sql.SQLException
setObject
in interface java.sql.PreparedStatement
java.sql.SQLException
- thrown on an error.setObject(int, java.lang.Object)
public void setRef(int index, java.sql.Ref x) throws java.sql.SQLException
setRef
in interface java.sql.PreparedStatement
java.sql.SQLException
- always thrown.public void setShort(int index, short x) throws java.sql.SQLException
setShort
in interface java.sql.PreparedStatement
java.sql.SQLException
- always thrown.public void setString(int index, java.lang.String x) throws java.sql.SQLException
setString
in interface java.sql.PreparedStatement
java.sql.SQLException
- always thrown.public void setTime(int index, java.sql.Time x) throws java.sql.SQLException
setTime
in interface java.sql.PreparedStatement
java.sql.SQLException
- always thrown.public void setTime(int index, java.sql.Time x, java.util.Calendar cal) throws java.sql.SQLException
setTime
in interface java.sql.PreparedStatement
java.sql.SQLException
- always thrown.public void setTimestamp(int index, java.sql.Timestamp x) throws java.sql.SQLException
setTimestamp
in interface java.sql.PreparedStatement
java.sql.SQLException
- always thrown.public void setTimestamp(int index, java.sql.Timestamp x, java.util.Calendar cal) throws java.sql.SQLException
setTimestamp
in interface java.sql.PreparedStatement
java.sql.SQLException
- always thrown.public void setUnicodeStream(int index, java.io.InputStream x, int length) throws java.sql.SQLException
setUnicodeStream
in interface java.sql.PreparedStatement
java.sql.SQLException
- always thrown.public java.sql.Array getArray(int index) throws java.sql.SQLException
getArray
in interface java.sql.CallableStatement
java.sql.SQLException
- always thrown.public java.math.BigDecimal getBigDecimal(int index) throws java.sql.SQLException
getBigDecimal
in interface java.sql.CallableStatement
java.sql.SQLException
- always thrown.public java.math.BigDecimal getBigDecimal(int index, int scale) throws java.sql.SQLException
getBigDecimal
in interface java.sql.CallableStatement
java.sql.SQLException
- always thrown.public java.sql.Blob getBlob(int index) throws java.sql.SQLException
getBlob
in interface java.sql.CallableStatement
java.sql.SQLException
- always thrown.public boolean getBoolean(int index) throws java.sql.SQLException
getBoolean
in interface java.sql.CallableStatement
java.sql.SQLException
- always thrown.public byte getByte(int index) throws java.sql.SQLException
getByte
in interface java.sql.CallableStatement
java.sql.SQLException
- always thrown.public byte[] getBytes(int index) throws java.sql.SQLException
getBytes
in interface java.sql.CallableStatement
java.sql.SQLException
- always thrown.public java.sql.Clob getClob(int index) throws java.sql.SQLException
getClob
in interface java.sql.CallableStatement
java.sql.SQLException
- always thrown.public java.sql.Date getDate(int index) throws java.sql.SQLException
getDate
in interface java.sql.CallableStatement
java.sql.SQLException
- always thrown.public java.sql.Date getDate(int index, java.util.Calendar cal) throws java.sql.SQLException
getDate
in interface java.sql.CallableStatement
java.sql.SQLException
- always thrown.public double getDouble(int index) throws java.sql.SQLException
getDouble
in interface java.sql.CallableStatement
java.sql.SQLException
- always thrown.public float getFloat(int index) throws java.sql.SQLException
getFloat
in interface java.sql.CallableStatement
java.sql.SQLException
- always thrown.public int getInt(int index) throws java.sql.SQLException
getInt
in interface java.sql.CallableStatement
java.sql.SQLException
- always thrown.public long getLong(int index) throws java.sql.SQLException
getLong
in interface java.sql.CallableStatement
java.sql.SQLException
- always thrown.public abstract java.lang.Object getObject(int index) throws java.sql.SQLException
Subclasses must implement this.
getObject
in interface java.sql.CallableStatement
index
- the output parameter index.java.sql.SQLException
- thrown on an error.public java.lang.Object getObject(int index, java.util.Map map) throws java.sql.SQLException
getObject
in interface java.sql.CallableStatement
index
- the output parameter index.map
- ignored.java.sql.SQLException
- thrown on an error.getObject(int)
public java.sql.Ref getRef(int index) throws java.sql.SQLException
getRef
in interface java.sql.CallableStatement
java.sql.SQLException
- always thrown.public short getShort(int index) throws java.sql.SQLException
getShort
in interface java.sql.CallableStatement
java.sql.SQLException
- always thrown.public java.lang.String getString(int index) throws java.sql.SQLException
getString
in interface java.sql.CallableStatement
java.sql.SQLException
- always thrown.public java.sql.Time getTime(int index) throws java.sql.SQLException
getTime
in interface java.sql.CallableStatement
java.sql.SQLException
- always thrown.public java.sql.Time getTime(int index, java.util.Calendar cal) throws java.sql.SQLException
getTime
in interface java.sql.CallableStatement
java.sql.SQLException
- always thrown.public java.sql.Timestamp getTimestamp(int index) throws java.sql.SQLException
getTimestamp
in interface java.sql.CallableStatement
java.sql.SQLException
- always thrown.public java.sql.Timestamp getTimestamp(int index, java.util.Calendar cal) throws java.sql.SQLException
getTimestamp
in interface java.sql.CallableStatement
java.sql.SQLException
- always thrown.public void registerOutParameter(int index, int sqlType) throws java.sql.SQLException
registerOutParameter
in interface java.sql.CallableStatement
public void registerOutParameter(int index, int sqlType, int scale) throws java.sql.SQLException
registerOutParameter
in interface java.sql.CallableStatement
public void registerOutParameter(int index, int sqlType, java.lang.String typeName) throws java.sql.SQLException
registerOutParameter
in interface java.sql.CallableStatement
public boolean wasNull() throws java.sql.SQLException
wasNull
in interface java.sql.CallableStatement
java.sql.SQLException
- always thrown.
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |