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 Details

    • PrepareStatementCommand

      public PrepareStatementCommand(String sql, PrepareOptions options, boolean managed)
    • PrepareStatementCommand

      public PrepareStatementCommand(String sql, PrepareOptions options, boolean managed, List<Class<?>> parameterTypes)
  • Method Details

    • sql

      public String sql()
    • options

      public PrepareOptions options()
    • parameterTypes

      public List<Class<?>> parameterTypes()
      Returns:
      the list of the prepared statement parameter types or null when they are not yet determined.
    • isManaged

      public boolean isManaged()
      Indicate whether the prepared statement will be managed by the connection

      Managed 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.