Package com.sas.rio
Class MVAPreparedStatement
java.lang.Object
com.sas.rio.MVAStatement
com.sas.rio.MVAPreparedStatement
- All Implemented Interfaces:
- com.sas.rio.RIOStatementInterface,
com.sas.sql.RIOStatement,AutoCloseable,PreparedStatement,Statement,Wrapper
- Direct Known Subclasses:
MVACallableStatement
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.
- See Also:
-
Field Summary
Fields inherited from class com.sas.rio.MVAStatement
_closeOnCompletion, _currentResultSet, describe, librefs, m_sasifyTableNames, maxFieldSizeFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBatch()voidbooleanexecute()ResultSetintResultSetMetaDataParameterMetaDataThe MVAPreparedStatement implementation ofgetParameterMetaData()is not supported.voidsetArray(int parameterIndex, Array x) The MVAPreparedStatement implementation ofsetArray(int, java.sql.Array)is not supported.voidsetAsciiStream(int parameterIndex, InputStream x) The MVAPreparedStatement implementation ofsetAsciiStream(int, java.io.InputStream)is not supported.voidsetAsciiStream(int parameterIndex, InputStream x, int length) The MVAPreparedStatement implementation ofsetAsciiStream(int, java.io.InputStream, int)is not supported.voidsetAsciiStream(int parameterIndex, InputStream x, long length) The MVAPreparedStatement implementation ofsetAsciiStream(int, java.io.InputStream, long)is not supported.voidsetBigDecimal(int parameterIndex, BigDecimal x) The MVAPreparedStatement implementation ofsetLong(int, BigDecimal)is not supported.voidsetBinaryStream(int parameterIndex, InputStream x) The MVAPreparedStatement implementation ofsetBinaryStream(int, java.io.InputStream)is not supported.voidsetBinaryStream(int parameterIndex, InputStream x, int length) Sets a parameter to a Java java.io.InputStream.voidsetBinaryStream(int parameterIndex, InputStream x, long length) The MVAPreparedStatement implementation ofsetBinaryStream(int, java.io.InputStream, long)is not supported.voidsetBlob(int parameterIndex, InputStream inputStream) The MVAPreparedStatement implementation ofsetBlob(int, java.io.InputStream)is not supported.voidsetBlob(int parameterIndex, InputStream inputStream, long length) The MVAPreparedStatement implementation ofsetBlob(int, java.io.InputStream, long)is not supported.voidsetBlob(int parameterIndex, Blob x) The MVAPreparedStatement implementation ofsetBlob(int, java.sql.Blob)is not supported.voidsetBoolean(int parameterIndex, boolean x) voidsetByte(int parameterIndex, byte x) voidsetBytes(int parameterIndex, byte[] x) Sets a parameter to a Java byte array value.voidsetCharacterStream(int parameterIndex, Reader reader) The MVAPreparedStatement implementation ofsetCharacterStream(int, java.io.Reader)is not supported.voidsetCharacterStream(int parameterIndex, Reader reader, int length) The MVAPreparedStatement implementation ofsetCharacterStream(int, java.io.Reader, int)is not supported.voidsetCharacterStream(int parameterIndex, Reader reader, long length) The MVAPreparedStatement implementation ofsetCharacterStream(int, java.io.Reader, long)is not supported.voidsetClob(int parameterIndex, Reader reader) The MVAPreparedStatement implementation ofsetClob(int, java.io.Reader)is not supported.voidsetClob(int parameterIndex, Reader reader, long length) The MVAPreparedStatement implementation ofsetClob(int, java.io.Reader, long)is not supported.voidsetClob(int parameterIndex, Clob x) The MVAPreparedStatement implementation ofsetClob(int, java.sql.Clob)is not supported.voidsetDate(int parameterIndex, Date x) voidsetDate(int parameterIndex, Date x, Calendar cal) voidsetDouble(int parameterIndex, double x) voidsetFloat(int parameterIndex, float x) voidsetInt(int parameterIndex, int x) voidsetLong(int parameterIndex, long x) The MVAPreparedStatement implementation ofsetLong(int, long)is not supported.voidsetNCharacterStream(int parameterIndex, Reader value) The MVAPreparedStatement implementation ofsetNCharacterStream(int, java.io.Reader)is not supported.voidsetNCharacterStream(int parameterIndex, Reader value, long length) The MVAPreparedStatement implementation ofsetNCharacterStream(int, java.io.Reader, long)is not supported.voidsetNClob(int parameterIndex, Reader reader) The MVAPreparedStatement implementation ofsetNClob(int, java.io.Reader)is not supported.voidsetNClob(int parameterIndex, Reader reader, long length) The MVAPreparedStatement implementation ofsetNClob(int, java.io.Reader, long)is not supported.voidsetNClob(int parameterIndex, NClob value) The MVAPreparedStatement implementation ofsetNClob(int, java.sql.NClob)is not supported.voidsetNString(int parameterIndex, String value) The MVAPreparedStatement implementation ofsetNString(int, String)is not supported.voidsetNull(int parameterIndex, int sqlType) The MVAPreparedStatement implementation ofsetNull(int, int)will set character columns to a blank, and numeric columns to '.', the numeric missing value.voidsetNull(int parameterIndex, int sqlType, String x) The MVAPreparedStatement implementation ofsetNull(int, int, String)is not supported.voidsetObject(int parameterIndex, Object x) voidsetObject(int parameterIndex, Object x, int sqlType) voidsetObject(int parameterIndex, Object x, int sqlType, int scale) voidsetRef(int parameterIndex, Ref x) The MVAPreparedStatement implementation ofsetRef(int, java.sql.Ref)is not supported.voidsetRowId(int parameterIndex, RowId x) The MVAPreparedStatement implementation ofsetRowId(int, java.sql.RowId)is not supported.voidsetShort(int parameterIndex, short x) voidsetSQLXML(int parameterIndex, SQLXML xmlObject) The MVAPreparedStatement implementation ofsetSQLXML(int, SQLXML)is not supported.voidsetString(int parameterIndex, String x) voidsetTime(int parameterIndex, Time x) voidsetTime(int parameterIndex, Time x, Calendar cal) voidsetTimestamp(int parameterIndex, Timestamp x) voidsetTimestamp(int parameterIndex, Timestamp x, Calendar cal) voidsetUnicodeStream(int parameterIndex, InputStream x, int length) The MVAPreparedStatement implementation ofsetUnicodeStream(int, java.io.InputStream, int)is not supported.voidsetURL(int parameterIndex, URL x) The MVAPreparedStatement implementation ofsetURL(int, java.net.URL)is not supported.Methods inherited from class com.sas.rio.MVAStatement
addBatch, addBatch2, cancel, checkClosed, clearBatch, clearWarnings, close, closeOnCompletion, createDualResultSet, createTable, deleteRioTable, deleteRioTable, deleteTable, deleteTable, execute, execute, execute, execute, execute2, executeBatch, executeQuery, executeQuery2, executeUpdate, executeUpdate, executeUpdate, executeUpdate, executeUpdate2, getConnection, getDualRioTable, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getRioTable, getRioTable, getRioUtil, getTable, getTable, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, isWrapperFor, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, unwrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.sql.PreparedStatement
executeLargeUpdate, setObject, setObjectMethods inherited from interface java.sql.Statement
addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, execute, execute, execute, execute, executeBatch, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, isSimpleIdentifier, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeoutMethods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
-
Method Details
-
execute
public boolean execute() throws SQLException- Specified by:
executein interfacePreparedStatement- Throws:
SQLException
-
executeQuery
public ResultSet executeQuery() throws SQLException- Specified by:
executeQueryin interfacePreparedStatement- Throws:
SQLException
-
executeUpdate
public int executeUpdate() throws SQLException- Specified by:
executeUpdatein interfacePreparedStatement- Throws:
SQLException
-
setNull
public void setNull(int parameterIndex, int sqlType) throws SQLException The MVAPreparedStatement implementation ofsetNull(int, int)will set character columns to a blank, and numeric columns to '.', the numeric missing value.- Specified by:
setNullin interfacePreparedStatement- Throws:
SQLException
-
setBoolean
public void setBoolean(int parameterIndex, boolean x) throws SQLException - Specified by:
setBooleanin interfacePreparedStatement- Throws:
SQLException
-
setByte
public void setByte(int parameterIndex, byte x) throws SQLException - Specified by:
setBytein interfacePreparedStatement- Throws:
SQLException
-
setShort
public void setShort(int parameterIndex, short x) throws SQLException - Specified by:
setShortin interfacePreparedStatement- Throws:
SQLException
-
setInt
public void setInt(int parameterIndex, int x) throws SQLException - Specified by:
setIntin interfacePreparedStatement- Throws:
SQLException
-
setLong
public void setLong(int parameterIndex, long x) throws SQLException The MVAPreparedStatement implementation ofsetLong(int, long)is not supported. The SAS IOM JDBC driver does not support the BIGINT SQL type.- Specified by:
setLongin interfacePreparedStatement- Throws:
SQLException
-
setFloat
public void setFloat(int parameterIndex, float x) throws SQLException - Specified by:
setFloatin interfacePreparedStatement- Throws:
SQLException
-
setDouble
public void setDouble(int parameterIndex, double x) throws SQLException - Specified by:
setDoublein interfacePreparedStatement- Throws:
SQLException
-
setBigDecimal
public void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException The MVAPreparedStatement implementation ofsetLong(int, BigDecimal)is not supported. The SAS IOM JDBC driver does not support the NUMERIC SQL type.- Specified by:
setBigDecimalin interfacePreparedStatement- Throws:
SQLException
-
setString
public void setString(int parameterIndex, String x) throws SQLException - Specified by:
setStringin interfacePreparedStatement- Throws:
SQLException
-
setBytes
public void setBytes(int parameterIndex, byte[] x) throws SQLException Sets a parameter to a Java byte array value. This method is not supported.- Specified by:
setBytesin interfacePreparedStatement- Throws:
SQLException- This exception is always thrown because SAS software does not support SQL type BINARY.
-
setDate
public void setDate(int parameterIndex, Date x) throws SQLException - Specified by:
setDatein interfacePreparedStatement- Throws:
SQLException
-
setTime
public void setTime(int parameterIndex, Time x) throws SQLException - Specified by:
setTimein interfacePreparedStatement- Throws:
SQLException
-
setTimestamp
public void setTimestamp(int parameterIndex, Timestamp x) throws SQLException - Specified by:
setTimestampin interfacePreparedStatement- Throws:
SQLException
-
setAsciiStream
public void setAsciiStream(int parameterIndex, InputStream x, int length) throws SQLException The MVAPreparedStatement implementation ofsetAsciiStream(int, java.io.InputStream, int)is not supported.- Specified by:
setAsciiStreamin interfacePreparedStatement- Throws:
SQLException
-
setUnicodeStream
public void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLException The MVAPreparedStatement implementation ofsetUnicodeStream(int, java.io.InputStream, int)is not supported.- Specified by:
setUnicodeStreamin interfacePreparedStatement- Throws:
SQLException
-
setBinaryStream
public void setBinaryStream(int parameterIndex, InputStream x, int length) throws SQLException Sets a parameter to a Java java.io.InputStream. This method is not supported.- Specified by:
setBinaryStreamin interfacePreparedStatement- Throws:
SQLException- This exception is always thrown because SAS software does not support SQL type LONGVARBINARY.
-
clearParameters
public void clearParameters() throws SQLException- Specified by:
clearParametersin interfacePreparedStatement- Throws:
SQLException
-
setObject
public void setObject(int parameterIndex, Object x, int sqlType, int scale) throws SQLException - Specified by:
setObjectin interfacePreparedStatement- Throws:
SQLException
-
setObject
public void setObject(int parameterIndex, Object x) throws SQLException - Specified by:
setObjectin interfacePreparedStatement- Throws:
SQLException
-
setObject
public void setObject(int parameterIndex, Object x, int sqlType) throws SQLException - Specified by:
setObjectin interfacePreparedStatement- Throws:
SQLException
-
addBatch
public void addBatch() throws SQLException- Specified by:
addBatchin interfacePreparedStatement- Throws:
SQLException
-
setCharacterStream
public void setCharacterStream(int parameterIndex, Reader reader, int length) throws SQLException The MVAPreparedStatement implementation ofsetCharacterStream(int, java.io.Reader, int)is not supported.- Specified by:
setCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setRef
public void setRef(int parameterIndex, Ref x) throws SQLException The MVAPreparedStatement implementation ofsetRef(int, java.sql.Ref)is not supported. The SAS IOM JDBC driver does not support the SQL Ref type.- Specified by:
setRefin interfacePreparedStatement- Throws:
SQLException
-
setBlob
public void setBlob(int parameterIndex, Blob x) throws SQLException The MVAPreparedStatement implementation ofsetBlob(int, java.sql.Blob)is not supported. The SAS IOM JDBC driver does not support the SQL Blob type.- Specified by:
setBlobin interfacePreparedStatement- Throws:
SQLException
-
setClob
public void setClob(int parameterIndex, Clob x) throws SQLException The MVAPreparedStatement implementation ofsetClob(int, java.sql.Clob)is not supported. The SAS IOM JDBC driver does not support the SQL Clob type.- Specified by:
setClobin interfacePreparedStatement- Throws:
SQLException
-
setArray
public void setArray(int parameterIndex, Array x) throws SQLException The MVAPreparedStatement implementation ofsetArray(int, java.sql.Array)is not supported. The SAS IOM JDBC driver does not support the SQL Array type.- Specified by:
setArrayin interfacePreparedStatement- Throws:
SQLException
-
getMetaData
public ResultSetMetaData getMetaData() throws SQLException- Specified by:
getMetaDatain interfacePreparedStatement- Throws:
SQLException
-
setDate
public void setDate(int parameterIndex, Date x, Calendar cal) throws SQLException - Specified by:
setDatein interfacePreparedStatement- Throws:
SQLException
-
setTime
public void setTime(int parameterIndex, Time x, Calendar cal) throws SQLException - Specified by:
setTimein interfacePreparedStatement- Throws:
SQLException
-
setTimestamp
public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal) throws SQLException - Specified by:
setTimestampin interfacePreparedStatement- Throws:
SQLException
-
setNull
public void setNull(int parameterIndex, int sqlType, String x) throws SQLException The MVAPreparedStatement implementation ofsetNull(int, int, String)is not supported.- Specified by:
setNullin interfacePreparedStatement- Throws:
SQLException
-
getParameterMetaData
public ParameterMetaData getParameterMetaData() throws SQLExceptionThe MVAPreparedStatement implementation ofgetParameterMetaData()is not supported.- Specified by:
getParameterMetaDatain interfacePreparedStatement- Throws:
SQLException
-
setURL
public void setURL(int parameterIndex, URL x) throws SQLException The MVAPreparedStatement implementation ofsetURL(int, java.net.URL)is not supported.- Specified by:
setURLin interfacePreparedStatement- Throws:
SQLException
-
setRowId
public void setRowId(int parameterIndex, RowId x) throws SQLException The MVAPreparedStatement implementation ofsetRowId(int, java.sql.RowId)is not supported.- Specified by:
setRowIdin interfacePreparedStatement- Throws:
SQLException
-
setNString
public void setNString(int parameterIndex, String value) throws SQLException The MVAPreparedStatement implementation ofsetNString(int, String)is not supported.- Specified by:
setNStringin interfacePreparedStatement- Throws:
SQLException
-
setNCharacterStream
public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException The MVAPreparedStatement implementation ofsetNCharacterStream(int, java.io.Reader, long)is not supported.- Specified by:
setNCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setNClob
public void setNClob(int parameterIndex, NClob value) throws SQLException The MVAPreparedStatement implementation ofsetNClob(int, java.sql.NClob)is not supported.- Specified by:
setNClobin interfacePreparedStatement- Throws:
SQLException
-
setClob
public void setClob(int parameterIndex, Reader reader, long length) throws SQLException The MVAPreparedStatement implementation ofsetClob(int, java.io.Reader, long)is not supported.- Specified by:
setClobin interfacePreparedStatement- Throws:
SQLException
-
setBlob
public void setBlob(int parameterIndex, InputStream inputStream, long length) throws SQLException The MVAPreparedStatement implementation ofsetBlob(int, java.io.InputStream, long)is not supported.- Specified by:
setBlobin interfacePreparedStatement- Throws:
SQLException
-
setNClob
public void setNClob(int parameterIndex, Reader reader, long length) throws SQLException The MVAPreparedStatement implementation ofsetNClob(int, java.io.Reader, long)is not supported.- Specified by:
setNClobin interfacePreparedStatement- Throws:
SQLException
-
setSQLXML
public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException The MVAPreparedStatement implementation ofsetSQLXML(int, SQLXML)is not supported.- Specified by:
setSQLXMLin interfacePreparedStatement- Throws:
SQLException
-
setAsciiStream
public void setAsciiStream(int parameterIndex, InputStream x, long length) throws SQLException The MVAPreparedStatement implementation ofsetAsciiStream(int, java.io.InputStream, long)is not supported.- Specified by:
setAsciiStreamin interfacePreparedStatement- Throws:
SQLException
-
setBinaryStream
public void setBinaryStream(int parameterIndex, InputStream x, long length) throws SQLException The MVAPreparedStatement implementation ofsetBinaryStream(int, java.io.InputStream, long)is not supported.- Specified by:
setBinaryStreamin interfacePreparedStatement- Throws:
SQLException
-
setCharacterStream
public void setCharacterStream(int parameterIndex, Reader reader, long length) throws SQLException The MVAPreparedStatement implementation ofsetCharacterStream(int, java.io.Reader, long)is not supported.- Specified by:
setCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setAsciiStream
public void setAsciiStream(int parameterIndex, InputStream x) throws SQLException The MVAPreparedStatement implementation ofsetAsciiStream(int, java.io.InputStream)is not supported.- Specified by:
setAsciiStreamin interfacePreparedStatement- Throws:
SQLException
-
setBinaryStream
public void setBinaryStream(int parameterIndex, InputStream x) throws SQLException The MVAPreparedStatement implementation ofsetBinaryStream(int, java.io.InputStream)is not supported.- Specified by:
setBinaryStreamin interfacePreparedStatement- Throws:
SQLException
-
setCharacterStream
public void setCharacterStream(int parameterIndex, Reader reader) throws SQLException The MVAPreparedStatement implementation ofsetCharacterStream(int, java.io.Reader)is not supported.- Specified by:
setCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setNCharacterStream
public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException The MVAPreparedStatement implementation ofsetNCharacterStream(int, java.io.Reader)is not supported.- Specified by:
setNCharacterStreamin interfacePreparedStatement- Throws:
SQLException
-
setClob
public void setClob(int parameterIndex, Reader reader) throws SQLException The MVAPreparedStatement implementation ofsetClob(int, java.io.Reader)is not supported.- Specified by:
setClobin interfacePreparedStatement- Throws:
SQLException
-
setBlob
public void setBlob(int parameterIndex, InputStream inputStream) throws SQLException The MVAPreparedStatement implementation ofsetBlob(int, java.io.InputStream)is not supported.- Specified by:
setBlobin interfacePreparedStatement- Throws:
SQLException
-
setNClob
public void setNClob(int parameterIndex, Reader reader) throws SQLException The MVAPreparedStatement implementation ofsetNClob(int, java.io.Reader)is not supported.- Specified by:
setNClobin interfacePreparedStatement- Throws:
SQLException
-