Annotation Interface LazySQLStoredProcedure


@Documented @Target(METHOD) @Retention(SOURCE) public @interface LazySQLStoredProcedure
Author:
Thomas Oster (mail@thomas-oster.de)
  • Element Details

    • params

      String[] params
      Default:
      {""}
    • useObjectAsInput

      boolean useObjectAsInput
      Default:
      true
    • methodName

      String methodName
      Default:
      ""
    • manageConnectionWithDatasource

      boolean manageConnectionWithDatasource
      If true, the db-connection will be opened with a try-with-resources block. The Connection will be closed after the method has finished. If dependencyInjection is enabled, the DataSource will be injected in the LazyDB class, otherwise the DataSource will be the first parameter instead of a connection.
      Default:
      false
    • convertSqlExceptionToRuntimeException

      boolean convertSqlExceptionToRuntimeException
      If true, the SQL Excetpion will be caught and a runtime Exception will be thrown, so that the method signature does not contain a checked exception.
      Returns:
      Default:
      false