Package xyz.block.ftl

Annotation SQLDatasource

  • All Implemented Interfaces:
    java.lang.annotation.Annotation

    @Retention(value = RetentionPolicy.RUNTIME) 
    public @interface SQLDatasource
    
                        

    Annotation to specify a SQL datasource. This can be added anywhere in your application.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract String name() The name of the datasource.
      abstract SQLDatabaseType type() The type of the SQL database.
      • Methods inherited from class java.lang.annotation.Annotation

        annotationType, equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • name

         abstract String name()

        The name of the datasource.

        Returns:

        the name of the datasource

      • type

         abstract SQLDatabaseType type()

        The type of the SQL database.

        Returns:

        the type of the SQL database