com.alibaba.druid.pool.ha
Class MultiDataSourcePreparedStatement

java.lang.Object
  extended by com.alibaba.druid.proxy.jdbc.WrapperProxyImpl
      extended by com.alibaba.druid.proxy.jdbc.StatementProxyImpl
          extended by com.alibaba.druid.proxy.jdbc.PreparedStatementProxyImpl
              extended by com.alibaba.druid.pool.ha.MultiDataSourcePreparedStatement
All Implemented Interfaces:
PreparedStatementProxy, StatementProxy, WrapperProxy, PreparedStatement, Statement, Wrapper

public class MultiDataSourcePreparedStatement
extends PreparedStatementProxyImpl


Field Summary
 
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
MultiDataSourcePreparedStatement(MultiDataSourceConnection connection, PreparedStatement statement, String sql, long id)
           
 
Method Summary
 boolean execute()
           
 ResultSet executeQuery()
           
 int executeUpdate()
           
 MultiDataSourceConnection getConnection()
           
 
Methods inherited from class com.alibaba.druid.proxy.jdbc.PreparedStatementProxyImpl
addBatch, clearParameters, getBatchSql, getLastExecuteSql, getMetaData, getParameterMetaData, getParameters, getRawObject, getSql, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNull, setNull, setObject, setObject, setObject, setParameter, setRef, setRowId, setShort, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL, unwrap
 
Methods inherited from class com.alibaba.druid.proxy.jdbc.StatementProxyImpl
addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, createChain, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getBatchSqlList, getConnectionProxy, getFetchDirection, getFetchSize, getGeneratedKeys, getLastExecuteTimeNano, getLastExecuteType, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getSqlStat, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isFirstResultSet, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLastExecuteTimeNano, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, setSqlStat
 
Methods inherited from class com.alibaba.druid.proxy.jdbc.WrapperProxyImpl
getAttributes, getId, isWrapperFor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.alibaba.druid.proxy.jdbc.StatementProxy
getBatchSqlList, getConnectionProxy, getLastExecuteTimeNano, getLastExecuteType, getSqlStat, isFirstResultSet, setLastExecuteTimeNano, setSqlStat
 
Methods inherited from interface java.sql.Statement
addBatch, cancel, clearBatch, clearWarnings, close, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, 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 com.alibaba.druid.proxy.jdbc.WrapperProxy
getAttributes, getId
 
Methods inherited from interface java.sql.Wrapper
isWrapperFor
 

Constructor Detail

MultiDataSourcePreparedStatement

public MultiDataSourcePreparedStatement(MultiDataSourceConnection connection,
                                        PreparedStatement statement,
                                        String sql,
                                        long id)
Method Detail

getConnection

public MultiDataSourceConnection getConnection()
Specified by:
getConnection in interface Statement
Overrides:
getConnection in class StatementProxyImpl

execute

public boolean execute()
                throws SQLException
Specified by:
execute in interface PreparedStatement
Overrides:
execute in class PreparedStatementProxyImpl
Throws:
SQLException

executeQuery

public ResultSet executeQuery()
                       throws SQLException
Specified by:
executeQuery in interface PreparedStatement
Overrides:
executeQuery in class PreparedStatementProxyImpl
Throws:
SQLException

executeUpdate

public int executeUpdate()
                  throws SQLException
Specified by:
executeUpdate in interface PreparedStatement
Overrides:
executeUpdate in class PreparedStatementProxyImpl
Throws:
SQLException


Copyright © 2012 Alibaba Group. All Rights Reserved.