|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.rio.MVAPreparedStatement
public class MVAPreparedStatement
An object that represents a precompiled SQL statement.
A SQL statement is precompiled and stored in a
PreparedStatement
object. This object can then be used to
efficiently execute this statement multiple times.
PreparedStatement
Field Summary |
---|
Fields inherited from class com.sas.rio.MVAStatement |
---|
_currentResultSet, describe, librefs, m_sasifyTableNames, maxFieldSize |
Method Summary | |
---|---|
void |
addBatch()
|
void |
clearParameters()
|
boolean |
execute()
|
java.sql.ResultSet |
executeQuery()
|
int |
executeUpdate()
|
java.sql.ResultSetMetaData |
getMetaData()
|
java.sql.ParameterMetaData |
getParameterMetaData()
The MVAPreparedStatement implementation of getParameterMetaData()
is not supported. |
void |
setArray(int parameterIndex,
java.sql.Array x)
The MVAPreparedStatement implementation of setArray(int, java.sql.Array)
is not supported. |
void |
setAsciiStream(int parameterIndex,
java.io.InputStream x)
The MVAPreparedStatement implementation of setAsciiStream(int, java.io.InputStream)
is not supported. |
void |
setAsciiStream(int parameterIndex,
java.io.InputStream x,
int length)
The MVAPreparedStatement implementation of setAsciiStream(int, java.io.InputStream, int)
is not supported. |
void |
setAsciiStream(int parameterIndex,
java.io.InputStream x,
long length)
The MVAPreparedStatement implementation of setAsciiStream(int, java.io.InputStream, long)
is not supported. |
void |
setBigDecimal(int parameterIndex,
java.math.BigDecimal x)
The MVAPreparedStatement implementation of setLong(int, BigDecimal)
is not supported. |
void |
setBinaryStream(int parameterIndex,
java.io.InputStream x)
The MVAPreparedStatement implementation of setBinaryStream(int, java.io.InputStream)
is not supported. |
void |
setBinaryStream(int parameterIndex,
java.io.InputStream x,
int length)
Sets a parameter to a Java java.io.InputStream. |
void |
setBinaryStream(int parameterIndex,
java.io.InputStream x,
long length)
The MVAPreparedStatement implementation of setBinaryStream(int, java.io.InputStream, long)
is not supported. |
void |
setBlob(int parameterIndex,
java.sql.Blob x)
The MVAPreparedStatement implementation of setBlob(int, java.sql.Blob)
is not supported. |
void |
setBlob(int parameterIndex,
java.io.InputStream inputStream)
The MVAPreparedStatement implementation of setBlob(int, java.io.InputStream)
is not supported. |
void |
setBlob(int parameterIndex,
java.io.InputStream inputStream,
long length)
The MVAPreparedStatement implementation of setBlob(int, java.io.InputStream, long)
is not supported. |
void |
setBoolean(int parameterIndex,
boolean x)
|
void |
setByte(int parameterIndex,
byte x)
|
void |
setBytes(int parameterIndex,
byte[] x)
Sets a parameter to a Java byte array value. |
void |
setCharacterStream(int parameterIndex,
java.io.Reader reader)
The MVAPreparedStatement implementation of setCharacterStream(int, java.io.Reader)
is not supported. |
void |
setCharacterStream(int parameterIndex,
java.io.Reader reader,
int length)
The MVAPreparedStatement implementation of setCharacterStream(int, java.io.Reader, int)
is not supported. |
void |
setCharacterStream(int parameterIndex,
java.io.Reader reader,
long length)
The MVAPreparedStatement implementation of setCharacterStream(int, java.io.Reader, long)
is not supported. |
void |
setClob(int parameterIndex,
java.sql.Clob x)
The MVAPreparedStatement implementation of setClob(int, java.sql.Clob)
is not supported. |
void |
setClob(int parameterIndex,
java.io.Reader reader)
The MVAPreparedStatement implementation of setClob(int, java.io.Reader)
is not supported. |
void |
setClob(int parameterIndex,
java.io.Reader reader,
long length)
The MVAPreparedStatement implementation of setClob(int, java.io.Reader, long)
is not supported. |
void |
setDate(int parameterIndex,
java.sql.Date x)
|
void |
setDate(int parameterIndex,
java.sql.Date x,
java.util.Calendar cal)
|
void |
setDouble(int parameterIndex,
double x)
|
void |
setFloat(int parameterIndex,
float x)
|
void |
setInt(int parameterIndex,
int x)
|
void |
setLong(int parameterIndex,
long x)
The MVAPreparedStatement implementation of setLong(int, long)
is not supported. |
void |
setNCharacterStream(int parameterIndex,
java.io.Reader value)
The MVAPreparedStatement implementation of setNCharacterStream(int, java.io.Reader)
is not supported. |
void |
setNCharacterStream(int parameterIndex,
java.io.Reader value,
long length)
The MVAPreparedStatement implementation of setNCharacterStream(int, java.io.Reader, long)
is not supported. |
void |
setNClob(int parameterIndex,
java.sql.NClob value)
The MVAPreparedStatement implementation of setNClob(int, java.sql.NClob)
is not supported. |
void |
setNClob(int parameterIndex,
java.io.Reader reader)
The MVAPreparedStatement implementation of setNClob(int, java.io.Reader)
is not supported. |
void |
setNClob(int parameterIndex,
java.io.Reader reader,
long length)
The MVAPreparedStatement implementation of setNClob(int, java.io.Reader, long)
is not supported. |
void |
setNString(int parameterIndex,
java.lang.String value)
The MVAPreparedStatement implementation of setNString(int, String)
is not supported. |
void |
setNull(int parameterIndex,
int sqlType)
The MVAPreparedStatement implementation of setNull(int, int) will
set character columns to a blank, and numeric columns to ' |
void |
setNull(int parameterIndex,
int sqlType,
java.lang.String x)
The MVAPreparedStatement implementation of setNull(int, int, String)
is not supported. |
void |
setObject(int parameterIndex,
java.lang.Object x)
|
void |
setObject(int parameterIndex,
java.lang.Object x,
int sqlType)
|
void |
setObject(int parameterIndex,
java.lang.Object x,
int sqlType,
int scale)
|
void |
setRef(int parameterIndex,
java.sql.Ref x)
The MVAPreparedStatement implementation of setRef(int, java.sql.Ref)
is not supported. |
void |
setRowId(int parameterIndex,
java.sql.RowId x)
The MVAPreparedStatement implementation of setRowId(int, java.sql.RowId)
is not supported. |
void |
setShort(int parameterIndex,
short x)
|
void |
setSQLXML(int parameterIndex,
java.sql.SQLXML xmlObject)
The MVAPreparedStatement implementation of setSQLXML(int, SQLXML)
is not supported. |
void |
setString(int parameterIndex,
java.lang.String x)
|
void |
setTime(int parameterIndex,
java.sql.Time x)
|
void |
setTime(int parameterIndex,
java.sql.Time x,
java.util.Calendar cal)
|
void |
setTimestamp(int parameterIndex,
java.sql.Timestamp x)
|
void |
setTimestamp(int parameterIndex,
java.sql.Timestamp x,
java.util.Calendar cal)
|
void |
setUnicodeStream(int parameterIndex,
java.io.InputStream x,
int length)
The MVAPreparedStatement implementation of setUnicodeStream(int, java.io.InputStream, int)
is not supported. |
void |
setURL(int parameterIndex,
java.net.URL x)
The MVAPreparedStatement implementation of setURL(int, java.net.URL)
is not supported. |
Method Detail |
---|
public boolean execute() throws java.sql.SQLException
execute
in interface java.sql.PreparedStatement
java.sql.SQLException
public java.sql.ResultSet executeQuery() throws java.sql.SQLException
executeQuery
in interface java.sql.PreparedStatement
java.sql.SQLException
public int executeUpdate() throws java.sql.SQLException
executeUpdate
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setNull(int parameterIndex, int sqlType) throws java.sql.SQLException
setNull(int, int)
will
set character columns to a blank, and numeric columns to '.', the numeric
missing value.
setNull
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBoolean(int parameterIndex, boolean x) throws java.sql.SQLException
setBoolean
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setByte(int parameterIndex, byte x) throws java.sql.SQLException
setByte
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setShort(int parameterIndex, short x) throws java.sql.SQLException
setShort
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setInt(int parameterIndex, int x) throws java.sql.SQLException
setInt
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setLong(int parameterIndex, long x) throws java.sql.SQLException
setLong(int, long)
is not supported. The SAS IOM JDBC driver does not support the BIGINT SQL type.
setLong
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setFloat(int parameterIndex, float x) throws java.sql.SQLException
setFloat
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setDouble(int parameterIndex, double x) throws java.sql.SQLException
setDouble
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBigDecimal(int parameterIndex, java.math.BigDecimal x) throws java.sql.SQLException
setLong(int, BigDecimal)
is not supported. The SAS IOM JDBC driver does not support the NUMERIC SQL type.
setBigDecimal
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setString(int parameterIndex, java.lang.String x) throws java.sql.SQLException
setString
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBytes(int parameterIndex, byte[] x) throws java.sql.SQLException
setBytes
in interface java.sql.PreparedStatement
java.sql.SQLException
- This exception is always thrown because SAS
software does not support SQL type BINARY.public void setDate(int parameterIndex, java.sql.Date x) throws java.sql.SQLException
setDate
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setTime(int parameterIndex, java.sql.Time x) throws java.sql.SQLException
setTime
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setTimestamp(int parameterIndex, java.sql.Timestamp x) throws java.sql.SQLException
setTimestamp
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setAsciiStream(int parameterIndex, java.io.InputStream x, int length) throws java.sql.SQLException
setAsciiStream(int, java.io.InputStream, int)
is not supported.
setAsciiStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setUnicodeStream(int parameterIndex, java.io.InputStream x, int length) throws java.sql.SQLException
setUnicodeStream(int, java.io.InputStream, int)
is not supported.
setUnicodeStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBinaryStream(int parameterIndex, java.io.InputStream x, int length) throws java.sql.SQLException
setBinaryStream
in interface java.sql.PreparedStatement
java.sql.SQLException
- This exception is always thrown because SAS
software does not support SQL type LONGVARBINARY.public void clearParameters() throws java.sql.SQLException
clearParameters
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setObject(int parameterIndex, java.lang.Object x, int sqlType, int scale) throws java.sql.SQLException
setObject
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setObject(int parameterIndex, java.lang.Object x) throws java.sql.SQLException
setObject
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setObject(int parameterIndex, java.lang.Object x, int sqlType) throws java.sql.SQLException
setObject
in interface java.sql.PreparedStatement
java.sql.SQLException
public void addBatch() throws java.sql.SQLException
addBatch
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setCharacterStream(int parameterIndex, java.io.Reader reader, int length) throws java.sql.SQLException
setCharacterStream(int, java.io.Reader, int)
is not supported.
setCharacterStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setRef(int parameterIndex, java.sql.Ref x) throws java.sql.SQLException
setRef(int, java.sql.Ref)
is not supported. The SAS IOM JDBC driver does not support the SQL Ref type.
setRef
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBlob(int parameterIndex, java.sql.Blob x) throws java.sql.SQLException
setBlob(int, java.sql.Blob)
is not supported. The SAS IOM JDBC driver does not support the SQL Blob type.
setBlob
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setClob(int parameterIndex, java.sql.Clob x) throws java.sql.SQLException
setClob(int, java.sql.Clob)
is not supported. The SAS IOM JDBC driver does not support the SQL Clob type.
setClob
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setArray(int parameterIndex, java.sql.Array x) throws java.sql.SQLException
setArray(int, java.sql.Array)
is not supported. The SAS IOM JDBC driver does not support the SQL Array type.
setArray
in interface java.sql.PreparedStatement
java.sql.SQLException
public java.sql.ResultSetMetaData getMetaData() throws java.sql.SQLException
getMetaData
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setDate(int parameterIndex, java.sql.Date x, java.util.Calendar cal) throws java.sql.SQLException
setDate
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setTime(int parameterIndex, java.sql.Time x, java.util.Calendar cal) throws java.sql.SQLException
setTime
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setTimestamp(int parameterIndex, java.sql.Timestamp x, java.util.Calendar cal) throws java.sql.SQLException
setTimestamp
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setNull(int parameterIndex, int sqlType, java.lang.String x) throws java.sql.SQLException
setNull(int, int, String)
is not supported.
setNull
in interface java.sql.PreparedStatement
java.sql.SQLException
public java.sql.ParameterMetaData getParameterMetaData() throws java.sql.SQLException
getParameterMetaData()
is not supported.
getParameterMetaData
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setURL(int parameterIndex, java.net.URL x) throws java.sql.SQLException
setURL(int, java.net.URL)
is not supported.
setURL
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setRowId(int parameterIndex, java.sql.RowId x) throws java.sql.SQLException
setRowId(int, java.sql.RowId)
is not supported.
setRowId
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setNString(int parameterIndex, java.lang.String value) throws java.sql.SQLException
setNString(int, String)
is not supported.
setNString
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setNCharacterStream(int parameterIndex, java.io.Reader value, long length) throws java.sql.SQLException
setNCharacterStream(int, java.io.Reader, long)
is not supported.
setNCharacterStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setNClob(int parameterIndex, java.sql.NClob value) throws java.sql.SQLException
setNClob(int, java.sql.NClob)
is not supported.
setNClob
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setClob(int parameterIndex, java.io.Reader reader, long length) throws java.sql.SQLException
setClob(int, java.io.Reader, long)
is not supported.
setClob
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBlob(int parameterIndex, java.io.InputStream inputStream, long length) throws java.sql.SQLException
setBlob(int, java.io.InputStream, long)
is not supported.
setBlob
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setNClob(int parameterIndex, java.io.Reader reader, long length) throws java.sql.SQLException
setNClob(int, java.io.Reader, long)
is not supported.
setNClob
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setSQLXML(int parameterIndex, java.sql.SQLXML xmlObject) throws java.sql.SQLException
setSQLXML(int, SQLXML)
is not supported.
setSQLXML
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setAsciiStream(int parameterIndex, java.io.InputStream x, long length) throws java.sql.SQLException
setAsciiStream(int, java.io.InputStream, long)
is not supported.
setAsciiStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBinaryStream(int parameterIndex, java.io.InputStream x, long length) throws java.sql.SQLException
setBinaryStream(int, java.io.InputStream, long)
is not supported.
setBinaryStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setCharacterStream(int parameterIndex, java.io.Reader reader, long length) throws java.sql.SQLException
setCharacterStream(int, java.io.Reader, long)
is not supported.
setCharacterStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setAsciiStream(int parameterIndex, java.io.InputStream x) throws java.sql.SQLException
setAsciiStream(int, java.io.InputStream)
is not supported.
setAsciiStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBinaryStream(int parameterIndex, java.io.InputStream x) throws java.sql.SQLException
setBinaryStream(int, java.io.InputStream)
is not supported.
setBinaryStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setCharacterStream(int parameterIndex, java.io.Reader reader) throws java.sql.SQLException
setCharacterStream(int, java.io.Reader)
is not supported.
setCharacterStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setNCharacterStream(int parameterIndex, java.io.Reader value) throws java.sql.SQLException
setNCharacterStream(int, java.io.Reader)
is not supported.
setNCharacterStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setClob(int parameterIndex, java.io.Reader reader) throws java.sql.SQLException
setClob(int, java.io.Reader)
is not supported.
setClob
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBlob(int parameterIndex, java.io.InputStream inputStream) throws java.sql.SQLException
setBlob(int, java.io.InputStream)
is not supported.
setBlob
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setNClob(int parameterIndex, java.io.Reader reader) throws java.sql.SQLException
setNClob(int, java.io.Reader)
is not supported.
setNClob
in interface java.sql.PreparedStatement
java.sql.SQLException
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |