Class StatementExceptions

java.lang.Object
org.jdbi.v3.core.statement.StatementExceptions
All Implemented Interfaces:
JdbiConfig<StatementExceptions>

@Beta public class StatementExceptions extends Object implements JdbiConfig<StatementExceptions>
Configuration for StatementException and subclasses behavior.
  • Constructor Details

    • StatementExceptions

      public StatementExceptions()
  • Method Details

    • getLengthLimit

      public int getLengthLimit()
      Returns the limit hint to use to shorten strings.
      Returns:
      the limit hint to use to shorten strings.
    • setLengthLimit

      public StatementExceptions setLengthLimit(int lengthLimit)
      Set a hint on how long you'd like to shorten various variable-length strings to.
      Parameters:
      lengthLimit - the limit hint.
      Returns:
      this
    • getMessageRendering

      public StatementExceptions.MessageRendering getMessageRendering()
      Returns the statement exception message rendering strategy.
      Returns:
      the statement exception message rendering strategy.
    • setMessageRendering

      public StatementExceptions setMessageRendering(StatementExceptions.MessageRendering messageRendering)
      Configure exception statement message generation.
      Parameters:
      messageRendering - the message rendering strategy to use
      Returns:
      this
    • createCopy

      public StatementExceptions createCopy()
      Description copied from interface: JdbiConfig
      Returns a copy of this configuration object. Changes to the copy should not modify the original, and vice-versa.
      Specified by:
      createCopy in interface JdbiConfig<StatementExceptions>
      Returns:
      a copy of this configuration object.