Class PrepareStatementCommand
java.lang.Object
io.vertx.sqlclient.spi.protocol.CommandBase<io.vertx.sqlclient.internal.PreparedStatement>
io.vertx.sqlclient.spi.protocol.PrepareStatementCommand
public class PrepareStatementCommand
extends CommandBase<io.vertx.sqlclient.internal.PreparedStatement>
-
Constructor Summary
ConstructorsConstructorDescriptionPrepareStatementCommand(String sql, PrepareOptions options, boolean managed) PrepareStatementCommand(String sql, PrepareOptions options, boolean managed, List<Class<?>> parameterTypes) -
Method Summary
-
Constructor Details
-
PrepareStatementCommand
-
PrepareStatementCommand
public PrepareStatementCommand(String sql, PrepareOptions options, boolean managed, List<Class<?>> parameterTypes)
-
-
Method Details
-
sql
-
options
-
parameterTypes
-
isManaged
public boolean isManaged()Indicate whether the prepared statement will be managed by the connectionManaged prepared statements survive a single interactions with the database and will be closed at some time by the connection (either with a cache eviction or when the prepared statement is closed).
Otherwise the prepared statement is ephermal and valid only for a single execution. It should be disposed after the prepared statement has been executed.
-