public class DistributedTemplate<T extends Statement> extends Object implements Statement, Iterable<T>
| Modifier and Type | Field and Description |
|---|---|
protected DistributedConnection |
con |
protected T |
master |
protected List<T> |
stmts |
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO| Constructor and Description |
|---|
DistributedTemplate(DistributedConnection c) |
protected final DistributedConnection con
public DistributedTemplate(DistributedConnection c)
public void add(T s)
public void addBatch(String sql) throws SQLException
addBatch in interface StatementSQLExceptionpublic void cancel()
throws SQLException
cancel in interface StatementSQLExceptionpublic 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 arg0) throws SQLException
execute in interface StatementSQLExceptionpublic boolean execute(String arg0, int arg1) throws SQLException
execute in interface StatementSQLExceptionpublic boolean execute(String arg0, int[] arg1) throws SQLException
execute in interface StatementSQLExceptionpublic boolean execute(String arg0, String[] arg1) throws SQLException
execute in interface StatementSQLExceptionpublic int[] executeBatch()
throws SQLException
executeBatch in interface StatementSQLExceptionpublic ResultSet executeQuery() throws SQLException
SQLExceptionpublic ResultSet executeQuery(String arg0) throws SQLException
executeQuery in interface StatementSQLExceptionpublic int executeUpdate(String arg0) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic int executeUpdate(String arg0, int arg1) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic int executeUpdate(String arg0, int[] arg1) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic int executeUpdate(String arg0, String[] arg1) 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 ResultSet getGeneratedKeys() throws SQLException
getGeneratedKeys 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 arg0)
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 void setCursorName(String name) throws SQLException
setCursorName in interface StatementSQLExceptionpublic void setEscapeProcessing(boolean flag)
throws SQLException
setEscapeProcessing in interface StatementSQLExceptionpublic void setFetchDirection(int dir)
throws SQLException
setFetchDirection in interface StatementSQLExceptionpublic void setFetchSize(int size)
throws SQLException
setFetchSize in interface StatementSQLExceptionpublic void setMaxFieldSize(int size)
throws SQLException
setMaxFieldSize in interface StatementSQLExceptionpublic void setMaxRows(int n)
throws SQLException
setMaxRows in interface StatementSQLExceptionpublic void setQueryTimeout(int n)
throws SQLException
setQueryTimeout in interface StatementSQLExceptionpublic boolean isWrapperFor(Class<?> arg0) throws SQLException
isWrapperFor in interface WrapperSQLExceptionpublic <T> T unwrap(Class<T> arg0) throws SQLException
unwrap in interface WrapperSQLExceptionpublic boolean isClosed()
throws SQLException
isClosed in interface StatementSQLExceptionpublic boolean isPoolable()
throws SQLException
isPoolable in interface StatementSQLExceptionpublic void setPoolable(boolean arg0)
throws SQLException
setPoolable in interface StatementSQLExceptionpublic boolean isCloseOnCompletion()
throws SQLException
isCloseOnCompletion in interface StatementSQLExceptionpublic void closeOnCompletion()
throws SQLException
closeOnCompletion in interface StatementSQLExceptionCopyright © 2006–2017 Apache Software Foundation. All rights reserved.