net.sf.farrago.runtime
Class FarragoJavaUdxIterator.PreparedStatementInvocationHandler

java.lang.Object
  extended by org.eigenbase.util.BarfingInvocationHandler
      extended by net.sf.farrago.runtime.FarragoJavaUdxIterator.PreparedStatementInvocationHandler
All Implemented Interfaces:
InvocationHandler
Enclosing class:
FarragoJavaUdxIterator

public class FarragoJavaUdxIterator.PreparedStatementInvocationHandler
extends BarfingInvocationHandler


Field Summary
private  FarragoJdbcParamDef[] dynamicParamDefs
           
 
Constructor Summary
FarragoJavaUdxIterator.PreparedStatementInvocationHandler(RelDataType paramRowType)
           
 
Method Summary
 void clearParameters()
           
 int executeUpdate()
           
 ParameterMetaData getParameterMetaData()
           
 void setBigDecimal(int parameterIndex, BigDecimal x)
           
 void setBoolean(int parameterIndex, boolean x)
           
 void setByte(int parameterIndex, byte x)
           
 void setBytes(int parameterIndex, byte[] x)
           
 void setDate(int parameterIndex, Date x)
           
 void setDate(int parameterIndex, Date x, Calendar c)
           
 void setDouble(int parameterIndex, double x)
           
private  void setDynamicParam(int parameterIndex, Object obj, Calendar calendar)
           
 void setFloat(int parameterIndex, float x)
           
 void setInt(int parameterIndex, int x)
           
 void setLong(int parameterIndex, long x)
           
 void setNull(int parameterIndex, int sqlType)
           
 void setObject(int parameterIndex, Object x)
           
 void setShort(int parameterIndex, short x)
           
 void setString(int parameterIndex, String x)
           
 void setTime(int parameterIndex, Time x)
           
 void setTime(int parameterIndex, Time x, Calendar c)
           
 void setTimestamp(int parameterIndex, Timestamp x)
           
 void setTimestamp(int parameterIndex, Timestamp x, Calendar c)
           
 
Methods inherited from class org.eigenbase.util.BarfingInvocationHandler
invoke, noMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dynamicParamDefs

private final FarragoJdbcParamDef[] dynamicParamDefs
Constructor Detail

FarragoJavaUdxIterator.PreparedStatementInvocationHandler

FarragoJavaUdxIterator.PreparedStatementInvocationHandler(RelDataType paramRowType)
Method Detail

executeUpdate

public int executeUpdate()
                  throws SQLException
Throws:
SQLException

getParameterMetaData

public ParameterMetaData getParameterMetaData()

clearParameters

public void clearParameters()
                     throws SQLException
Throws:
SQLException

setDynamicParam

private void setDynamicParam(int parameterIndex,
                             Object obj,
                             Calendar calendar)
                      throws SQLException
Throws:
SQLException

setNull

public void setNull(int parameterIndex,
                    int sqlType)
             throws SQLException
Throws:
SQLException

setBoolean

public void setBoolean(int parameterIndex,
                       boolean x)
                throws SQLException
Throws:
SQLException

setByte

public void setByte(int parameterIndex,
                    byte x)
             throws SQLException
Throws:
SQLException

setShort

public void setShort(int parameterIndex,
                     short x)
              throws SQLException
Throws:
SQLException

setInt

public void setInt(int parameterIndex,
                   int x)
            throws SQLException
Throws:
SQLException

setLong

public void setLong(int parameterIndex,
                    long x)
             throws SQLException
Throws:
SQLException

setFloat

public void setFloat(int parameterIndex,
                     float x)
              throws SQLException
Throws:
SQLException

setDouble

public void setDouble(int parameterIndex,
                      double x)
               throws SQLException
Throws:
SQLException

setBigDecimal

public void setBigDecimal(int parameterIndex,
                          BigDecimal x)
                   throws SQLException
Throws:
SQLException

setString

public void setString(int parameterIndex,
                      String x)
               throws SQLException
Throws:
SQLException

setBytes

public void setBytes(int parameterIndex,
                     byte[] x)
              throws SQLException
Throws:
SQLException

setDate

public void setDate(int parameterIndex,
                    Date x)
             throws SQLException
Throws:
SQLException

setDate

public void setDate(int parameterIndex,
                    Date x,
                    Calendar c)
             throws SQLException
Throws:
SQLException

setTime

public void setTime(int parameterIndex,
                    Time x)
             throws SQLException
Throws:
SQLException

setTime

public void setTime(int parameterIndex,
                    Time x,
                    Calendar c)
             throws SQLException
Throws:
SQLException

setTimestamp

public void setTimestamp(int parameterIndex,
                         Timestamp x)
                  throws SQLException
Throws:
SQLException

setTimestamp

public void setTimestamp(int parameterIndex,
                         Timestamp x,
                         Calendar c)
                  throws SQLException
Throws:
SQLException

setObject

public void setObject(int parameterIndex,
                      Object x)
               throws SQLException
Throws:
SQLException