public class DefaultCreator extends Object implements PreparedStatementCreator, SqlProvider
Constructor and Description |
---|
DefaultCreator(@NotNull String sql) |
DefaultCreator(@NotNull String sql,
boolean getGeneratedKeys) |
Modifier and Type | Method and Description |
---|---|
@NotNull PreparedStatement |
create(@NotNull Connection connection)
Creates a PreparedStatement in this connection.
|
@NotNull String |
getSql()
Returns the sql statement related to this implementation.
|
public DefaultCreator(@NotNull @NotNull String sql)
public DefaultCreator(@NotNull @NotNull String sql, boolean getGeneratedKeys)
@NotNull public @NotNull PreparedStatement create(@NotNull @NotNull Connection connection) throws SQLException
PreparedStatementCreator
create
in interface PreparedStatementCreator
connection
- the connection for creating the PreparedStatementSQLException
- if something goes wrong during the PreparedStatement creation (no need to catch)@NotNull public @NotNull String getSql()
SqlProvider
getSql
in interface SqlProvider
Copyright © 2021. All rights reserved.