public class CassandraStatement extends Object implements CassandraStatementExtras, Comparable<Object>, Statement
PreparedStatement.| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<String> |
batchQueries |
protected CassandraConnection |
connection
The connection.
|
protected com.datastax.driver.core.ConsistencyLevel |
consistencyLevel |
protected String |
cql
The cql.
|
protected ResultSet |
currentResultSet |
protected boolean |
escapeProcessing |
protected int |
fetchDirection |
protected int |
fetchSize |
static int |
MAX_ASYNC_QUERIES |
protected int |
maxFieldSize |
protected int |
maxRows |
protected static String |
NOT_SUPPORTED |
protected int |
resultSetConcurrency |
protected int |
resultSetHoldability |
protected int |
resultSetType |
static String |
semiColonRegex |
protected com.datastax.driver.core.Statement |
statement |
protected int |
updateCount |
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO| Modifier and Type | Method and Description |
|---|---|
void |
addBatch(String query) |
void |
cancel() |
protected void |
checkNotClosed() |
void |
clearBatch() |
void |
clearWarnings() |
void |
close() |
void |
closeOnCompletion() |
int |
compareTo(Object target) |
boolean |
execute(String query) |
boolean |
execute(String sql,
int autoGeneratedKeys) |
boolean |
execute(String arg0,
int[] arg1) |
boolean |
execute(String arg0,
String[] arg1) |
int[] |
executeBatch() |
ResultSet |
executeQuery(String query) |
int |
executeUpdate(String query) |
int |
executeUpdate(String sql,
int autoGeneratedKeys) |
int |
executeUpdate(String arg0,
int[] arg1) |
int |
executeUpdate(String arg0,
String[] arg1) |
Connection |
getConnection() |
com.datastax.driver.core.ConsistencyLevel |
getConsistencyLevel() |
int |
getFetchDirection() |
int |
getFetchSize() |
ResultSet |
getGeneratedKeys() |
int |
getMaxFieldSize() |
int |
getMaxRows() |
boolean |
getMoreResults() |
boolean |
getMoreResults(int current) |
int |
getQueryTimeout() |
ResultSet |
getResultSet() |
int |
getResultSetConcurrency() |
int |
getResultSetHoldability() |
int |
getResultSetType() |
int |
getUpdateCount() |
SQLWarning |
getWarnings() |
boolean |
isClosed() |
boolean |
isCloseOnCompletion() |
boolean |
isPoolable() |
boolean |
isWrapperFor(Class<?> iface) |
protected void |
resetResults() |
void |
setArray(int parameterIndex,
Array x) |
void |
setAsciiStream(int parameterIndex,
InputStream x) |
void |
setAsciiStream(int parameterIndex,
InputStream x,
int length) |
void |
setAsciiStream(int parameterIndex,
InputStream x,
long length) |
void |
setBinaryStream(int parameterIndex,
InputStream x) |
void |
setBinaryStream(int parameterIndex,
InputStream x,
int length) |
void |
setBinaryStream(int parameterIndex,
InputStream x,
long length) |
void |
setBlob(int parameterIndex,
InputStream inputStream,
long length) |
void |
setCharacterStream(int parameterIndex,
Reader reader) |
void |
setCharacterStream(int parameterIndex,
Reader reader,
long length) |
void |
setClob(int parameterIndex,
Clob x) |
void |
setClob(int parameterIndex,
Reader reader) |
void |
setClob(int parameterIndex,
Reader reader,
long length) |
void |
setConsistencyLevel(com.datastax.driver.core.ConsistencyLevel consistencyLevel) |
void |
setCursorName(String arg0) |
void |
setEscapeProcessing(boolean enable) |
void |
setFetchDirection(int direction) |
void |
setFetchSize(int size) |
void |
setMaxFieldSize(int arg0) |
void |
setMaxRows(int arg0) |
void |
setNCharacterStream(int parameterIndex,
Reader value) |
void |
setNCharacterStream(int parameterIndex,
Reader value,
long length) |
void |
setNClob(int parameterIndex,
NClob value) |
void |
setNClob(int parameterIndex,
Reader reader) |
void |
setNClob(int parameterIndex,
Reader reader,
long length) |
void |
setPoolable(boolean poolable) |
void |
setQueryTimeout(int arg0) |
void |
setRef(int parameterIndex,
Ref x) |
void |
setSQLXML(int parameterIndex,
SQLXML xmlObject) |
void |
setUnicodeStream(int parameterIndex,
InputStream x,
int length) |
<T> T |
unwrap(Class<T> iface) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancel, closeOnCompletion, execute, execute, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeUpdate, executeUpdate, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, isCloseOnCompletion, setCursorName, setLargeMaxRowspublic static final int MAX_ASYNC_QUERIES
public static final String semiColonRegex
protected CassandraConnection connection
protected String cql
protected int fetchDirection
protected int fetchSize
protected int maxFieldSize
protected int maxRows
protected int resultSetType
protected int resultSetConcurrency
protected int resultSetHoldability
protected ResultSet currentResultSet
protected int updateCount
protected boolean escapeProcessing
protected com.datastax.driver.core.Statement statement
protected com.datastax.driver.core.ConsistencyLevel consistencyLevel
protected static final String NOT_SUPPORTED
public void addBatch(String query) throws SQLException
addBatch in interface StatementSQLExceptionprotected final void checkNotClosed()
throws SQLException
SQLExceptionpublic void clearBatch()
throws SQLException
clearBatch in interface StatementSQLExceptionpublic void clearWarnings()
throws SQLException
clearWarnings in interface StatementSQLExceptionpublic void close()
throws SQLException
close in interface AutoCloseableclose in interface StatementSQLExceptionpublic boolean execute(String query) throws SQLException
execute in interface StatementSQLExceptionpublic boolean execute(String sql, int autoGeneratedKeys) throws SQLException
execute in interface StatementSQLExceptionpublic int[] executeBatch()
throws SQLException
executeBatch in interface StatementSQLExceptionpublic ResultSet executeQuery(String query) throws SQLException
executeQuery in interface StatementSQLExceptionpublic int executeUpdate(String query) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic Connection getConnection() throws SQLException
getConnection in interface StatementSQLExceptionpublic int getFetchDirection()
throws SQLException
getFetchDirection in interface StatementSQLExceptionpublic int getFetchSize()
throws SQLException
getFetchSize in interface StatementSQLExceptionpublic int getMaxFieldSize()
throws SQLException
getMaxFieldSize in interface StatementSQLExceptionpublic int getMaxRows()
throws SQLException
getMaxRows in interface StatementSQLExceptionpublic boolean getMoreResults()
throws SQLException
getMoreResults in interface StatementSQLExceptionpublic boolean getMoreResults(int current)
throws SQLException
getMoreResults in interface StatementSQLExceptionpublic int getQueryTimeout()
throws SQLException
getQueryTimeout in interface StatementSQLExceptionpublic ResultSet getResultSet() throws SQLException
getResultSet in interface StatementSQLExceptionpublic int getResultSetConcurrency()
throws SQLException
getResultSetConcurrency in interface StatementSQLExceptionpublic int getResultSetHoldability()
throws SQLException
getResultSetHoldability in interface StatementSQLExceptionpublic int getResultSetType()
throws SQLException
getResultSetType in interface StatementSQLExceptionpublic int getUpdateCount()
throws SQLException
getUpdateCount in interface StatementSQLExceptionpublic SQLWarning getWarnings() throws SQLException
getWarnings in interface StatementSQLExceptionpublic boolean isPoolable()
throws SQLException
isPoolable in interface StatementSQLExceptionpublic boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor in interface WrapperSQLExceptionprotected final void resetResults()
public void setEscapeProcessing(boolean enable)
throws SQLException
setEscapeProcessing in interface StatementSQLExceptionpublic void setFetchDirection(int direction)
throws SQLException
setFetchDirection in interface StatementSQLExceptionpublic void setFetchSize(int size)
throws SQLException
setFetchSize in interface StatementSQLExceptionpublic void setMaxFieldSize(int arg0)
throws SQLException
setMaxFieldSize in interface StatementSQLExceptionpublic void setMaxRows(int arg0)
throws SQLException
setMaxRows in interface StatementSQLExceptionpublic void setPoolable(boolean poolable)
throws SQLException
setPoolable in interface StatementSQLExceptionpublic void setQueryTimeout(int arg0)
throws SQLException
setQueryTimeout in interface StatementSQLExceptionpublic <T> T unwrap(Class<T> iface) throws SQLException
unwrap in interface WrapperSQLExceptionpublic com.datastax.driver.core.ConsistencyLevel getConsistencyLevel()
getConsistencyLevel in interface CassandraStatementExtraspublic void setConsistencyLevel(com.datastax.driver.core.ConsistencyLevel consistencyLevel)
setConsistencyLevel in interface CassandraStatementExtraspublic int compareTo(Object target)
compareTo in interface Comparable<Object>public void cancel()
throws SQLException
SQLExceptionpublic boolean execute(String arg0, int[] arg1) throws SQLException
SQLExceptionpublic boolean execute(String arg0, String[] arg1) throws SQLException
SQLExceptionpublic int executeUpdate(String arg0, int[] arg1) throws SQLException
SQLExceptionpublic int executeUpdate(String arg0, String[] arg1) throws SQLException
SQLExceptionpublic ResultSet getGeneratedKeys() throws SQLException
SQLExceptionpublic void setCursorName(String arg0) throws SQLException
SQLExceptionpublic void closeOnCompletion()
throws SQLException
SQLExceptionpublic boolean isCloseOnCompletion()
throws SQLException
SQLExceptionpublic void setArray(int parameterIndex,
Array x)
throws SQLException
SQLExceptionpublic void setAsciiStream(int parameterIndex,
InputStream x)
throws SQLException
SQLExceptionpublic void setAsciiStream(int parameterIndex,
InputStream x,
int length)
throws SQLException
SQLExceptionpublic void setAsciiStream(int parameterIndex,
InputStream x,
long length)
throws SQLException
SQLExceptionpublic void setBinaryStream(int parameterIndex,
InputStream x)
throws SQLException
SQLExceptionpublic void setBinaryStream(int parameterIndex,
InputStream x,
int length)
throws SQLException
SQLExceptionpublic void setBinaryStream(int parameterIndex,
InputStream x,
long length)
throws SQLException
SQLExceptionpublic void setBlob(int parameterIndex,
InputStream inputStream,
long length)
throws SQLException
SQLExceptionpublic void setCharacterStream(int parameterIndex,
Reader reader)
throws SQLException
SQLExceptionpublic void setCharacterStream(int parameterIndex,
Reader reader,
long length)
throws SQLException
SQLExceptionpublic void setClob(int parameterIndex,
Clob x)
throws SQLException
SQLExceptionpublic void setClob(int parameterIndex,
Reader reader)
throws SQLException
SQLExceptionpublic void setClob(int parameterIndex,
Reader reader,
long length)
throws SQLException
SQLExceptionpublic void setNCharacterStream(int parameterIndex,
Reader value)
throws SQLException
SQLExceptionpublic void setNCharacterStream(int parameterIndex,
Reader value,
long length)
throws SQLException
SQLExceptionpublic void setNClob(int parameterIndex,
NClob value)
throws SQLException
SQLExceptionpublic void setNClob(int parameterIndex,
Reader reader)
throws SQLException
SQLExceptionpublic void setNClob(int parameterIndex,
Reader reader,
long length)
throws SQLException
SQLExceptionpublic void setRef(int parameterIndex,
Ref x)
throws SQLException
SQLExceptionpublic void setSQLXML(int parameterIndex,
SQLXML xmlObject)
throws SQLException
SQLExceptionpublic void setUnicodeStream(int parameterIndex,
InputStream x,
int length)
throws SQLException
SQLExceptionCopyright © 2015–2016. All rights reserved.