Class PreparedStatementExecutionUnitBuilder
java.lang.Object
org.apache.shardingsphere.infra.executor.sql.prepare.driver.jdbc.builder.PreparedStatementExecutionUnitBuilder
- All Implemented Interfaces:
JDBCExecutionUnitBuilder,SQLExecutionUnitBuilder<JDBCExecutionUnit,,ExecutorJDBCStatementManager, Connection, StatementOption> org.apache.shardingsphere.spi.type.typed.TypedSPI
public final class PreparedStatementExecutionUnitBuilder
extends Object
implements JDBCExecutionUnitBuilder
JDBC prepared statement execution unit builder.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(ExecutionUnit executionUnit, ExecutorJDBCStatementManager statementManager, Connection connection, ConnectionMode connectionMode, StatementOption option) Build SQL execution unit.getType()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.shardingsphere.spi.type.typed.TypedSPI
getTypeAliases
-
Constructor Details
-
PreparedStatementExecutionUnitBuilder
public PreparedStatementExecutionUnitBuilder()
-
-
Method Details
-
build
public JDBCExecutionUnit build(ExecutionUnit executionUnit, ExecutorJDBCStatementManager statementManager, Connection connection, ConnectionMode connectionMode, StatementOption option) throws SQLException Description copied from interface:SQLExecutionUnitBuilderBuild SQL execution unit.- Specified by:
buildin interfaceSQLExecutionUnitBuilder<JDBCExecutionUnit,ExecutorJDBCStatementManager, Connection, StatementOption> - Parameters:
executionUnit- execution unitstatementManager- executor managerconnection- connectionconnectionMode- connection modeoption- storage resource option- Returns:
- SQL execution unit
- Throws:
SQLException- SQL exception
-
getType
- Specified by:
getTypein interfaceorg.apache.shardingsphere.spi.type.typed.TypedSPI
-