Annotation Type Schema


  • @Documented
    @Retention(RUNTIME)
    @Target(TYPE)
    public @interface Schema
    Defines the name of a database schema.

    If the schema name is not static you can use something like this:

    ProcedureCallerFactory.of(MyProcedures.class, dataSource)
      .withSchemaNamingStrategy(ignored -> computeSchemaName())
      .build();

    For PL/SQL packages or DB2 modules Namespace should be used.

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String value
      Defines the name of the database schema.
    • Element Detail

      • value

        String value
        Defines the name of the database schema.
        Returns:
        the name of the database schema
        Default:
        ""