All Packages    This Package  Previous  Next  

Class sqlj.runtime.profile.ref.RTStatementJDBCPrepared

java.lang.Object
   |
   +----sqlj.runtime.profile.ref.RTStatementJDBCBase
           |
           +----sqlj.runtime.profile.ref.RTStatementJDBCPrepared

public class RTStatementJDBCPrepared
extends RTStatementJDBCBase
implements RTStatement
This class implements the RTStatement interface using a JDBC prepared statement. The superclass RTStatementJDBCBase handles all prepared statement related calls. The remaining callable statement "get" calls cannot be implemented using a JDBC prepared statement, so they all raise a runtime exception whenever called.

Note that in general, this object will only be used when the statement type in the profile indicates PREPARED. This means that the "get" methods should never be called, and therefore the runtime exceptions should never result.

See Also:
getStatementType

Constructor Index

 o RTStatementJDBCPrepared(PreparedStatement)
Creates a new statement object that uses the passed PreparedStatement to implement its methods.

Method Index

 o getBigDecimal(int)
Results in an "unexcepted method call" exception.
 o getBooleanNoNull(int)
Results in an "unexcepted method call" exception.
 o getBooleanWrapper(int)
Results in an "unexcepted method call" exception.
 o getByteNoNull(int)
Results in an "unexcepted method call" exception.
 o getBytes(int)
Results in an "unexcepted method call" exception.
 o getByteWrapper(int)
Results in an "unexcepted method call" exception.
 o getDate(int)
Results in an "unexcepted method call" exception.
 o getDoubleNoNull(int)
Results in an "unexcepted method call" exception.
 o getDoubleWrapper(int)
Results in an "unexcepted method call" exception.
 o getFloatNoNull(int)
Results in an "unexcepted method call" exception.
 o getFloatWrapper(int)
Results in an "unexcepted method call" exception.
 o getIntNoNull(int)
Results in an "unexcepted method call" exception.
 o getIntWrapper(int)
Results in an "unexcepted method call" exception.
 o getJDBCCallableStatement()
Results in an exception.
 o getLongNoNull(int)
Results in an "unexcepted method call" exception.
 o getLongWrapper(int)
Results in an "unexcepted method call" exception.
 o getObject(int, Class)
Results in an "unexcepted method call" exception.
 o getShortNoNull(int)
Results in an "unexcepted method call" exception.
 o getShortWrapper(int)
Results in an "unexcepted method call" exception.
 o getString(int)
Results in an "unexcepted method call" exception.
 o getTime(int)
Results in an "unexcepted method call" exception.
 o getTimestamp(int)
Results in an "unexcepted method call" exception.

Constructors

 o RTStatementJDBCPrepared
 public RTStatementJDBCPrepared(PreparedStatement preparedStmt)
Creates a new statement object that uses the passed PreparedStatement to implement its methods. Any "get" methods result in an exception.

Parameters:
preparedStmt - the underlying JDBC prepared statement

Methods

 o getJDBCCallableStatement
 public CallableStatement getJDBCCallableStatement() throws SQLException
Results in an exception. There is no callable statement available for this object.

Throws: SQLException
anytime this method is called
 o getString
 public String getString(int parameterIndex) throws SQLException
Results in an "unexcepted method call" exception.

Throws: SQLException
anytime this method is called
 o getBytes
 public byte[] getBytes(int parameterIndex) throws SQLException
Results in an "unexcepted method call" exception.

Throws: SQLException
anytime this method is called
 o getDate
 public Date getDate(int parameterIndex) throws SQLException
Results in an "unexcepted method call" exception.

Throws: SQLException
anytime this method is called
 o getTime
 public Time getTime(int parameterIndex) throws SQLException
Results in an "unexcepted method call" exception.

Throws: SQLException
anytime this method is called
 o getTimestamp
 public Timestamp getTimestamp(int parameterIndex) throws SQLException
Results in an "unexcepted method call" exception.

Throws: SQLException
anytime this method is called
 o getBooleanNoNull
 public boolean getBooleanNoNull(int parameterIndex) throws SQLException
Results in an "unexcepted method call" exception.

Throws: SQLException
anytime this method is called
 o getByteNoNull
 public byte getByteNoNull(int parameterIndex) throws SQLException
Results in an "unexcepted method call" exception.

Throws: SQLException
anytime this method is called
 o getShortNoNull
 public short getShortNoNull(int parameterIndex) throws SQLException
Results in an "unexcepted method call" exception.

Throws: SQLException
anytime this method is called
 o getIntNoNull
 public int getIntNoNull(int parameterIndex) throws SQLException
Results in an "unexcepted method call" exception.

Throws: SQLException
anytime this method is called
 o getLongNoNull
 public long getLongNoNull(int parameterIndex) throws SQLException
Results in an "unexcepted method call" exception.

Throws: SQLException
anytime this method is called
 o getFloatNoNull
 public float getFloatNoNull(int parameterIndex) throws SQLException
Results in an "unexcepted method call" exception.

Throws: SQLException
anytime this method is called
 o getDoubleNoNull
 public double getDoubleNoNull(int parameterIndex) throws SQLException
Results in an "unexcepted method call" exception.

Throws: SQLException
anytime this method is called
 o getBooleanWrapper
 public Boolean getBooleanWrapper(int columnIndex) throws SQLException
Results in an "unexcepted method call" exception.

Throws: SQLException
anytime this method is called
 o getByteWrapper
 public Byte getByteWrapper(int columnIndex) throws SQLException
Results in an "unexcepted method call" exception.

Throws: SQLException
anytime this method is called
 o getShortWrapper
 public Short getShortWrapper(int columnIndex) throws SQLException
Results in an "unexcepted method call" exception.

Throws: SQLException
anytime this method is called
 o getIntWrapper
 public Integer getIntWrapper(int columnIndex) throws SQLException
Results in an "unexcepted method call" exception.

Throws: SQLException
anytime this method is called
 o getLongWrapper
 public Long getLongWrapper(int columnIndex) throws SQLException
Results in an "unexcepted method call" exception.

Throws: SQLException
anytime this method is called
 o getFloatWrapper
 public Float getFloatWrapper(int columnIndex) throws SQLException
Results in an "unexcepted method call" exception.

Throws: SQLException
anytime this method is called
 o getDoubleWrapper
 public Double getDoubleWrapper(int columnIndex) throws SQLException
Results in an "unexcepted method call" exception.

Throws: SQLException
anytime this method is called
 o getObject
 public Object getObject(int columnIndex,
                         Class objectType) throws SQLException
Results in an "unexcepted method call" exception.

Throws: SQLException
anytime this method is called
 o getBigDecimal
 public BigDecimal getBigDecimal(int columnIndex) throws SQLException
Results in an "unexcepted method call" exception.

Throws: SQLException
anytime this method is called

All Packages    This Package  Previous  Next