    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

##

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

##

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

##

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

##

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

getString

     public String getString(int parameterIndex) throws SQLException

  Results in an "unexcepted method call" exception.

  Throws: SQLException
    anytime this method is called

getBytes

     public byte[] getBytes(int parameterIndex) throws SQLException

  Results in an "unexcepted method call" exception.

  Throws: SQLException
    anytime this method is called

getDate

     public Date getDate(int parameterIndex) throws SQLException

  Results in an "unexcepted method call" exception.

  Throws: SQLException
    anytime this method is called

getTime

     public Time getTime(int parameterIndex) throws SQLException

  Results in an "unexcepted method call" exception.

  Throws: SQLException
    anytime this method is called

getTimestamp

     public Timestamp getTimestamp(int parameterIndex) throws SQLException

  Results in an "unexcepted method call" exception.

  Throws: SQLException
    anytime this method is called

getBooleanNoNull

     public boolean getBooleanNoNull(int parameterIndex) throws SQLException

  Results in an "unexcepted method call" exception.

  Throws: SQLException
    anytime this method is called

getByteNoNull

     public byte getByteNoNull(int parameterIndex) throws SQLException

  Results in an "unexcepted method call" exception.

  Throws: SQLException
    anytime this method is called

getShortNoNull

     public short getShortNoNull(int parameterIndex) throws SQLException

  Results in an "unexcepted method call" exception.

  Throws: SQLException
    anytime this method is called

getIntNoNull

     public int getIntNoNull(int parameterIndex) throws SQLException

  Results in an "unexcepted method call" exception.

  Throws: SQLException
    anytime this method is called

getLongNoNull

     public long getLongNoNull(int parameterIndex) throws SQLException

  Results in an "unexcepted method call" exception.

  Throws: SQLException
    anytime this method is called

getFloatNoNull

     public float getFloatNoNull(int parameterIndex) throws SQLException

  Results in an "unexcepted method call" exception.

  Throws: SQLException
    anytime this method is called

getDoubleNoNull

     public double getDoubleNoNull(int parameterIndex) throws SQLException

  Results in an "unexcepted method call" exception.

  Throws: SQLException
    anytime this method is called

getBooleanWrapper

     public Boolean getBooleanWrapper(int columnIndex) throws SQLException

  Results in an "unexcepted method call" exception.

  Throws: SQLException
    anytime this method is called

getByteWrapper

     public Byte getByteWrapper(int columnIndex) throws SQLException

  Results in an "unexcepted method call" exception.

  Throws: SQLException
    anytime this method is called

getShortWrapper

     public Short getShortWrapper(int columnIndex) throws SQLException

  Results in an "unexcepted method call" exception.

  Throws: SQLException
    anytime this method is called

getIntWrapper

     public Integer getIntWrapper(int columnIndex) throws SQLException

  Results in an "unexcepted method call" exception.

  Throws: SQLException
    anytime this method is called

getLongWrapper

     public Long getLongWrapper(int columnIndex) throws SQLException

  Results in an "unexcepted method call" exception.

  Throws: SQLException
    anytime this method is called

getFloatWrapper

     public Float getFloatWrapper(int columnIndex) throws SQLException

  Results in an "unexcepted method call" exception.

  Throws: SQLException
    anytime this method is called

getDoubleWrapper

     public Double getDoubleWrapper(int columnIndex) throws SQLException

  Results in an "unexcepted method call" exception.

  Throws: SQLException
    anytime this method is called

getObject

     public Object getObject(int columnIndex,
                             Class objectType) throws SQLException

  Results in an "unexcepted method call" exception.

  Throws: SQLException
    anytime this method is called

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