Compiere 3.1

org.compiere.util
Class CPreparedStatement

java.lang.Object
  extended by org.compiere.util.CStatement
      extended by org.compiere.util.CPreparedStatement
All Implemented Interfaces:
PreparedStatement, Statement, Wrapper

public class CPreparedStatement
extends CStatement
implements PreparedStatement

Compiere Prepared Statement

Version:
$Id: CPreparedStatement.java,v 1.3 2006/07/30 00:54:36 jjanke Exp $
Author:
Jorg Janke 11/09/06 Jinglun Zhang - add m_connRO logic to release share locks with DB2 database

Field Summary
 
Fields inherited from class org.compiere.util.CStatement
log, p_remoteErrors, p_stmt, p_vo
 
Fields inherited from interface java.sql.Statement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
 
Constructor Summary
CPreparedStatement(CStatementVO vo)
          Remote Constructor
CPreparedStatement(int resultSetType, int resultSetConcurrency, String sql0, String trxName)
          Prepared Statement Constructor
 
Method Summary
 void addBatch()
          Method addBatch
 void clearParameters()
          Method clearParameters
 void close()
          Release share locks if it is DB2
 boolean execute()
          Method execute
 ResultSet executeQuery()
          Execute Query
 ResultSet executeQuery(String sql0)
          Execute Query
 int executeUpdate()
          Execute Update
 int executeUpdate(String sql0)
          Execute Update
 ResultSetMetaData getMetaData()
          Method getMetaData
 ParameterMetaData getParameterMetaData()
          Method getParameterMetaData
 RowSet local_getRowSet()
          Get Result as RowSet for local system.
 int remote_executeUpdate()
          Execute Update.
 RowSet remote_getRowSet()
          Get Result as RowSet for Remote.
 void setArray(int parameterIndex, Array x)
          Method setArray
 void setAsciiStream(int parameterIndex, InputStream x)
          setAsciiStream
 void setAsciiStream(int parameterIndex, InputStream x, int length)
          Method setAsciiStream
 void setAsciiStream(int parameterIndex, InputStream x, long length)
          setAsciiStream
 void setBigDecimal(int parameterIndex, BigDecimal x)
          Method setBigDecimal
 void setBinaryStream(int parameterIndex, InputStream x)
          setBinaryStream
 void setBinaryStream(int parameterIndex, InputStream x, int length)
          Method setBinaryStream
 void setBinaryStream(int parameterIndex, InputStream x, long length)
          setBinaryStream
 void setBlob(int parameterIndex, Blob x)
          Method setBlob
 void setBlob(int parameterIndex, InputStream inputStream)
          setBlob
 void setBlob(int parameterIndex, InputStream inputStream, long length)
          setBlob
 void setBoolean(int parameterIndex, boolean x)
          Method setBoolean
 void setByte(int parameterIndex, byte x)
          Method setByte
 void setBytes(int parameterIndex, byte[] x)
          Method setBytes
 void setCharacterStream(int parameterIndex, Reader reader)
          setCharacterStream
 void setCharacterStream(int parameterIndex, Reader reader, int length)
          Method setCharacterStream
 void setCharacterStream(int parameterIndex, Reader reader, long length)
          setCharacterStream
 void setClob(int parameterIndex, Clob x)
          Method setClob
 void setClob(int parameterIndex, Reader reader)
          setClob
 void setClob(int parameterIndex, Reader reader, long length)
          setClob
 void setDate(int parameterIndex, Date x)
          Method setDate
 void setDate(int parameterIndex, Date x, Calendar cal)
          Method setDate
 void setDouble(int parameterIndex, double x)
          Method setDouble
 void setFloat(int parameterIndex, float x)
          Method setFloat
 void setInt(int parameterIndex, int x)
          Method setInt
 void setLong(int parameterIndex, long x)
          Method setLong
 void setNCharacterStream(int parameterIndex, Reader value)
          setNCharacterStream
 void setNCharacterStream(int parameterIndex, Reader value, long length)
          setNCharacterStream
 void setNClob(int parameterIndex, NClob value)
          setNClob
 void setNClob(int parameterIndex, Reader reader)
          setNClob
 void setNClob(int parameterIndex, Reader reader, long length)
          setNClob
 void setNString(int parameterIndex, String value)
          setNString
 void setNull(int parameterIndex, int sqlType)
          Set Null
 void setNull(int parameterIndex, int sqlType, String typeName)
          Method setNull
 void setObject(int parameterIndex, Object x)
          Method setObject
 void setObject(int parameterIndex, Object x, int targetSqlType)
          Method setObject
 void setObject(int parameterIndex, Object x, int targetSqlType, int scale)
          Method setObject
 void setRef(int parameterIndex, Ref x)
          Method setRef
 void setRowId(int parameterIndex, RowId x)
          setRowId
 void setShort(int parameterIndex, short x)
          Method setShort
 void setSQLXML(int parameterIndex, SQLXML xmlObject)
          setSQLXML
 void setString(int parameterIndex, String x)
          Method setString
 void setTime(int parameterIndex, Time x)
          Method setTime
 void setTime(int parameterIndex, Time x, Calendar cal)
          Method setTime
 void setTimestamp(int parameterIndex, Timestamp x)
          Method setTimestamp
 void setTimestamp(int parameterIndex, Timestamp x, Calendar cal)
          Method setTimestamp
 void setUnicodeStream(int parameterIndex, InputStream x, int length)
          Deprecated.  
 void setURL(int parameterIndex, URL x)
          Method setURL
 String toString()
          String representation
 
Methods inherited from class org.compiere.util.CStatement
addBatch, cancel, clearBatch, clearWarnings, commit, execute, execute, execute, execute, executeBatch, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getSql, getUpdateCount, getWarnings, isClosed, isPoolable, isWrapperFor, local_getConnection, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, unwrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.sql.Statement
addBatch, cancel, clearBatch, clearWarnings, execute, execute, execute, execute, executeBatch, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout
 
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
 

Constructor Detail

CPreparedStatement

public CPreparedStatement(int resultSetType,
                          int resultSetConcurrency,
                          String sql0,
                          String trxName)
Prepared Statement Constructor

Parameters:
resultSetType - - ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.TYPE_SCROLL_SENSITIVE
resultSetConcurrency - - ResultSet.CONCUR_READ_ONLY or ResultSet.CONCUR_UPDATABLE
sql0 - unconverted sql statement
trxName - transaction name or null

CPreparedStatement

public CPreparedStatement(CStatementVO vo)
Remote Constructor

Parameters:
vo - value object
Method Detail

close

public void close()
           throws SQLException
Release share locks if it is DB2

Specified by:
close in interface Statement
Overrides:
close in class CStatement
Throws:
SQLException
See Also:
Statement.close()

executeQuery

public ResultSet executeQuery()
                       throws SQLException
Execute Query

Specified by:
executeQuery in interface PreparedStatement
Returns:
ResultSet or RowSet
Throws:
SQLException
See Also:
PreparedStatement.executeQuery()

executeQuery

public ResultSet executeQuery(String sql0)
                       throws SQLException
Execute Query

Specified by:
executeQuery in interface Statement
Overrides:
executeQuery in class CStatement
Parameters:
sql0 - unconverted SQL to execute
Returns:
ResultSet or RowSet
Throws:
SQLException
See Also:
Statement.executeQuery(String)

executeUpdate

public int executeUpdate()
                  throws SQLException
Execute Update

Specified by:
executeUpdate in interface PreparedStatement
Returns:
no of updated rows
Throws:
SQLException
See Also:
PreparedStatement.executeUpdate()

executeUpdate

public int executeUpdate(String sql0)
                  throws SQLException
Execute Update

Specified by:
executeUpdate in interface Statement
Overrides:
executeUpdate in class CStatement
Parameters:
sql0 - unconverted sql
Returns:
no of updated rows
Throws:
SQLException
See Also:
Statement.executeUpdate(String)

execute

public boolean execute()
                throws SQLException
Method execute

Specified by:
execute in interface PreparedStatement
Returns:
boolean
Throws:
SQLException
See Also:
PreparedStatement.execute()

getMetaData

public ResultSetMetaData getMetaData()
                              throws SQLException
Method getMetaData

Specified by:
getMetaData in interface PreparedStatement
Returns:
ResultSetMetaData
Throws:
SQLException
See Also:
PreparedStatement.getMetaData()

getParameterMetaData

public ParameterMetaData getParameterMetaData()
                                       throws SQLException
Method getParameterMetaData

Specified by:
getParameterMetaData in interface PreparedStatement
Returns:
ParameterMetaData
Throws:
SQLException
See Also:
PreparedStatement.getParameterMetaData()

addBatch

public void addBatch()
              throws SQLException
Method addBatch

Specified by:
addBatch in interface PreparedStatement
Throws:
SQLException
See Also:
PreparedStatement.addBatch()

setNull

public void setNull(int parameterIndex,
                    int sqlType)
             throws SQLException
Set Null

Specified by:
setNull in interface PreparedStatement
Parameters:
parameterIndex - index
sqlType - type
Throws:
SQLException

setNull

public void setNull(int parameterIndex,
                    int sqlType,
                    String typeName)
             throws SQLException
Method setNull

Specified by:
setNull in interface PreparedStatement
Parameters:
parameterIndex - int
sqlType - int
typeName - String
Throws:
SQLException
See Also:
PreparedStatement.setNull(int, int, String)

setBoolean

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

Specified by:
setBoolean in interface PreparedStatement
Parameters:
parameterIndex - int
x - boolean
Throws:
SQLException
See Also:
PreparedStatement.setBoolean(int, boolean)

setByte

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

Specified by:
setByte in interface PreparedStatement
Parameters:
parameterIndex - int
x - byte
Throws:
SQLException
See Also:
PreparedStatement.setByte(int, byte)

setShort

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

Specified by:
setShort in interface PreparedStatement
Parameters:
parameterIndex - int
x - short
Throws:
SQLException
See Also:
PreparedStatement.setShort(int, short)

setInt

public void setInt(int parameterIndex,
                   int x)
            throws SQLException
Method setInt

Specified by:
setInt in interface PreparedStatement
Parameters:
parameterIndex - int
x - int
Throws:
SQLException
See Also:
PreparedStatement.setInt(int, int)

setLong

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

Specified by:
setLong in interface PreparedStatement
Parameters:
parameterIndex - int
x - long
Throws:
SQLException
See Also:
PreparedStatement.setLong(int, long)

setFloat

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

Specified by:
setFloat in interface PreparedStatement
Parameters:
parameterIndex - int
x - float
Throws:
SQLException
See Also:
PreparedStatement.setFloat(int, float)

setDouble

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

Specified by:
setDouble in interface PreparedStatement
Parameters:
parameterIndex - int
x - double
Throws:
SQLException
See Also:
PreparedStatement.setDouble(int, double)

setBigDecimal

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

Specified by:
setBigDecimal in interface PreparedStatement
Parameters:
parameterIndex - int
x - BigDecimal
Throws:
SQLException
See Also:
PreparedStatement.setBigDecimal(int, BigDecimal)

setString

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

Specified by:
setString in interface PreparedStatement
Parameters:
parameterIndex - int
x - String
Throws:
SQLException
See Also:
PreparedStatement.setString(int, String)

setBytes

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

Specified by:
setBytes in interface PreparedStatement
Parameters:
parameterIndex - int
x - byte[]
Throws:
SQLException
See Also:
PreparedStatement.setBytes(int, byte[])

setDate

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

Specified by:
setDate in interface PreparedStatement
Parameters:
parameterIndex - int
x - java.sql.Date
Throws:
SQLException
See Also:
PreparedStatement.setDate(int, java.sql.Date)

setTime

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

Specified by:
setTime in interface PreparedStatement
Parameters:
parameterIndex - int
x - Time
Throws:
SQLException
See Also:
PreparedStatement.setTime(int, Time)

setTimestamp

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

Specified by:
setTimestamp in interface PreparedStatement
Parameters:
parameterIndex - int
x - Timestamp
Throws:
SQLException
See Also:
PreparedStatement.setTimestamp(int, Timestamp)

setAsciiStream

public void setAsciiStream(int parameterIndex,
                           InputStream x,
                           int length)
                    throws SQLException
Method setAsciiStream

Specified by:
setAsciiStream in interface PreparedStatement
Parameters:
parameterIndex - int
x - InputStream
length - int
Throws:
SQLException
See Also:
PreparedStatement.setAsciiStream(int, InputStream, int)

setUnicodeStream

@Deprecated
public void setUnicodeStream(int parameterIndex,
                                        InputStream x,
                                        int length)
                      throws SQLException
Deprecated. 

Specified by:
setUnicodeStream in interface PreparedStatement
Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
x - a java.io.InputStream object that contains the Unicode parameter value as two-byte Unicode characters
length - the number of bytes in the stream
Throws:
SQLException - if a database access error occurs see java.sql.PreparedStatement#setUnicodeStream(int, InputStream, int)

setBinaryStream

public void setBinaryStream(int parameterIndex,
                            InputStream x,
                            int length)
                     throws SQLException
Method setBinaryStream

Specified by:
setBinaryStream in interface PreparedStatement
Parameters:
parameterIndex - int
x - InputStream
length - int
Throws:
SQLException
See Also:
PreparedStatement.setBinaryStream(int, InputStream, int)

clearParameters

public void clearParameters()
                     throws SQLException
Method clearParameters

Specified by:
clearParameters in interface PreparedStatement
Throws:
SQLException
See Also:
PreparedStatement.clearParameters()

setObject

public void setObject(int parameterIndex,
                      Object x,
                      int targetSqlType,
                      int scale)
               throws SQLException
Method setObject

Specified by:
setObject in interface PreparedStatement
Parameters:
parameterIndex - int
x - Object
targetSqlType - int
scale - int
Throws:
SQLException
See Also:
PreparedStatement.setObject(int, Object, int, int)

setObject

public void setObject(int parameterIndex,
                      Object x,
                      int targetSqlType)
               throws SQLException
Method setObject

Specified by:
setObject in interface PreparedStatement
Parameters:
parameterIndex - int
x - Object
targetSqlType - int
Throws:
SQLException
See Also:
PreparedStatement.setObject(int, Object, int)

setObject

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

Specified by:
setObject in interface PreparedStatement
Parameters:
parameterIndex - int
x - Object
Throws:
SQLException
See Also:
PreparedStatement.setObject(int, Object)

setCharacterStream

public void setCharacterStream(int parameterIndex,
                               Reader reader,
                               int length)
                        throws SQLException
Method setCharacterStream

Specified by:
setCharacterStream in interface PreparedStatement
Parameters:
parameterIndex - int
reader - Reader
length - int
Throws:
SQLException
See Also:
PreparedStatement.setCharacterStream(int, Reader, int)

setRef

public void setRef(int parameterIndex,
                   Ref x)
            throws SQLException
Method setRef

Specified by:
setRef in interface PreparedStatement
Parameters:
parameterIndex - int
x - Ref
Throws:
SQLException
See Also:
PreparedStatement.setRef(int, Ref)

setBlob

public void setBlob(int parameterIndex,
                    Blob x)
             throws SQLException
Method setBlob

Specified by:
setBlob in interface PreparedStatement
Parameters:
parameterIndex - int
x - Blob
Throws:
SQLException
See Also:
PreparedStatement.setBlob(int, Blob)

setClob

public void setClob(int parameterIndex,
                    Clob x)
             throws SQLException
Method setClob

Specified by:
setClob in interface PreparedStatement
Parameters:
parameterIndex - int
x - Clob
Throws:
SQLException
See Also:
PreparedStatement.setClob(int, Clob)

setArray

public void setArray(int parameterIndex,
                     Array x)
              throws SQLException
Method setArray

Specified by:
setArray in interface PreparedStatement
Parameters:
parameterIndex - int
x - Array
Throws:
SQLException
See Also:
PreparedStatement.setArray(int, Array)

setDate

public void setDate(int parameterIndex,
                    Date x,
                    Calendar cal)
             throws SQLException
Method setDate

Specified by:
setDate in interface PreparedStatement
Parameters:
parameterIndex - int
x - java.sql.Date
cal - Calendar
Throws:
SQLException
See Also:
PreparedStatement.setDate(int, java.sql.Date, Calendar)

setTime

public void setTime(int parameterIndex,
                    Time x,
                    Calendar cal)
             throws SQLException
Method setTime

Specified by:
setTime in interface PreparedStatement
Parameters:
parameterIndex - int
x - Time
cal - Calendar
Throws:
SQLException
See Also:
PreparedStatement.setTime(int, Time, Calendar)

setTimestamp

public void setTimestamp(int parameterIndex,
                         Timestamp x,
                         Calendar cal)
                  throws SQLException
Method setTimestamp

Specified by:
setTimestamp in interface PreparedStatement
Parameters:
parameterIndex - int
x - Timestamp
cal - Calendar
Throws:
SQLException
See Also:
PreparedStatement.setTimestamp(int, Timestamp, Calendar)

setURL

public void setURL(int parameterIndex,
                   URL x)
            throws SQLException
Method setURL

Specified by:
setURL in interface PreparedStatement
Parameters:
parameterIndex - int
x - URL
Throws:
SQLException
See Also:
PreparedStatement.setURL(int, URL)

toString

public String toString()
String representation

Overrides:
toString in class Object
Returns:
info

local_getRowSet

public RowSet local_getRowSet()
Get Result as RowSet for local system. Get explicit connection as connection is closed when closing RowSet

Returns:
result as RowSet

remote_getRowSet

public RowSet remote_getRowSet()
Get Result as RowSet for Remote. Get shared connection for RMI! If RowSet is transfred via RMI, closing the RowSet does not close the connection

Overrides:
remote_getRowSet in class CStatement
Returns:
result as RowSet

remote_executeUpdate

public int remote_executeUpdate()
Execute Update.

Overrides:
remote_executeUpdate in class CStatement
Returns:
row count

setAsciiStream

public void setAsciiStream(int parameterIndex,
                           InputStream x)
                    throws SQLException
setAsciiStream

Specified by:
setAsciiStream in interface PreparedStatement
Parameters:
parameterIndex -
x -
Throws:
SQLException
See Also:
PreparedStatement.setAsciiStream(int, java.io.InputStream)

setAsciiStream

public void setAsciiStream(int parameterIndex,
                           InputStream x,
                           long length)
                    throws SQLException
setAsciiStream

Specified by:
setAsciiStream in interface PreparedStatement
Parameters:
parameterIndex -
x -
length -
Throws:
SQLException
See Also:
PreparedStatement.setAsciiStream(int, java.io.InputStream, long)

setBinaryStream

public void setBinaryStream(int parameterIndex,
                            InputStream x)
                     throws SQLException
setBinaryStream

Specified by:
setBinaryStream in interface PreparedStatement
Parameters:
parameterIndex -
x -
Throws:
SQLException
See Also:
PreparedStatement.setBinaryStream(int, java.io.InputStream)

setBinaryStream

public void setBinaryStream(int parameterIndex,
                            InputStream x,
                            long length)
                     throws SQLException
setBinaryStream

Specified by:
setBinaryStream in interface PreparedStatement
Parameters:
parameterIndex -
x -
length -
Throws:
SQLException
See Also:
PreparedStatement.setBinaryStream(int, java.io.InputStream, long)

setBlob

public void setBlob(int parameterIndex,
                    InputStream inputStream)
             throws SQLException
setBlob

Specified by:
setBlob in interface PreparedStatement
Parameters:
parameterIndex -
inputStream -
Throws:
SQLException
See Also:
PreparedStatement.setBlob(int, java.io.InputStream)

setBlob

public void setBlob(int parameterIndex,
                    InputStream inputStream,
                    long length)
             throws SQLException
setBlob

Specified by:
setBlob in interface PreparedStatement
Parameters:
parameterIndex -
inputStream -
length -
Throws:
SQLException
See Also:
PreparedStatement.setBlob(int, java.io.InputStream, long)

setCharacterStream

public void setCharacterStream(int parameterIndex,
                               Reader reader)
                        throws SQLException
setCharacterStream

Specified by:
setCharacterStream in interface PreparedStatement
Parameters:
parameterIndex -
reader -
Throws:
SQLException
See Also:
PreparedStatement.setCharacterStream(int, java.io.Reader)

setCharacterStream

public void setCharacterStream(int parameterIndex,
                               Reader reader,
                               long length)
                        throws SQLException
setCharacterStream

Specified by:
setCharacterStream in interface PreparedStatement
Parameters:
parameterIndex -
reader -
length -
Throws:
SQLException
See Also:
PreparedStatement.setCharacterStream(int, java.io.Reader, long)

setClob

public void setClob(int parameterIndex,
                    Reader reader)
             throws SQLException
setClob

Specified by:
setClob in interface PreparedStatement
Parameters:
parameterIndex -
reader -
Throws:
SQLException
See Also:
PreparedStatement.setClob(int, java.io.Reader)

setClob

public void setClob(int parameterIndex,
                    Reader reader,
                    long length)
             throws SQLException
setClob

Specified by:
setClob in interface PreparedStatement
Parameters:
parameterIndex -
reader -
length -
Throws:
SQLException
See Also:
PreparedStatement.setClob(int, java.io.Reader, long)

setNCharacterStream

public void setNCharacterStream(int parameterIndex,
                                Reader value)
                         throws SQLException
setNCharacterStream

Specified by:
setNCharacterStream in interface PreparedStatement
Parameters:
parameterIndex -
value -
Throws:
SQLException
See Also:
PreparedStatement.setNCharacterStream(int, java.io.Reader)

setNCharacterStream

public void setNCharacterStream(int parameterIndex,
                                Reader value,
                                long length)
                         throws SQLException
setNCharacterStream

Specified by:
setNCharacterStream in interface PreparedStatement
Parameters:
parameterIndex -
value -
length -
Throws:
SQLException
See Also:
PreparedStatement.setNCharacterStream(int, java.io.Reader, long)

setNClob

public void setNClob(int parameterIndex,
                     NClob value)
              throws SQLException
setNClob

Specified by:
setNClob in interface PreparedStatement
Parameters:
parameterIndex -
value -
Throws:
SQLException
See Also:
PreparedStatement.setNClob(int, java.sql.NClob)

setNClob

public void setNClob(int parameterIndex,
                     Reader reader)
              throws SQLException
setNClob

Specified by:
setNClob in interface PreparedStatement
Parameters:
parameterIndex -
reader -
Throws:
SQLException
See Also:
PreparedStatement.setNClob(int, java.io.Reader)

setNClob

public void setNClob(int parameterIndex,
                     Reader reader,
                     long length)
              throws SQLException
setNClob

Specified by:
setNClob in interface PreparedStatement
Parameters:
parameterIndex -
reader -
length -
Throws:
SQLException
See Also:
PreparedStatement.setNClob(int, java.io.Reader, long)

setNString

public void setNString(int parameterIndex,
                       String value)
                throws SQLException
setNString

Specified by:
setNString in interface PreparedStatement
Parameters:
parameterIndex -
value -
Throws:
SQLException
See Also:
PreparedStatement.setNString(int, java.lang.String)

setRowId

public void setRowId(int parameterIndex,
                     RowId x)
              throws SQLException
setRowId

Specified by:
setRowId in interface PreparedStatement
Parameters:
parameterIndex -
x -
Throws:
SQLException
See Also:
PreparedStatement.setRowId(int, java.sql.RowId)

setSQLXML

public void setSQLXML(int parameterIndex,
                      SQLXML xmlObject)
               throws SQLException
setSQLXML

Specified by:
setSQLXML in interface PreparedStatement
Parameters:
parameterIndex -
xmlObject -
Throws:
SQLException
See Also:
PreparedStatement.setSQLXML(int, java.sql.SQLXML)

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.