Annotation Interface LazySQLConfig


@Documented @Target(TYPE) @Retention(SOURCE) public @interface LazySQLConfig
Author:
Thomas Oster (mail@thomas-oster.de)
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    If set, the getters generated make the first letter uppercase if not, they are created
    If set, all DB Queris will be cached to that file
    If set, we try to register this driver before connecting to the db.Not necessary for all supported JDBC drivers
    URL for JDBC Connection (only used during compilation) e.g.
    boolean
    If set, we use @Inject for injecting the datasource in the generated classes
    Path to a JSON file with config parameters
    boolean
    wether this configuration is only for the annotated class (false) or for the whole project.
    password for the database connection
    Username for the database connection
  • Element Details

    • file

      String file
      Path to a JSON file with config parameters
      Returns:
      Default:
      ""
    • dburl

      String dburl
      URL for JDBC Connection (only used during compilation) e.g. jdbc:sqlserver://localhost;databaseName=whateveryoulike
      Returns:
      Default:
      ""
    • user

      String user
      Username for the database connection
      Returns:
      Default:
      ""
    • password

      String password
      password for the database connection
      Returns:
      Default:
      ""
    • global

      boolean global
      wether this configuration is only for the annotated class (false) or for the whole project. Annotations on the class override global ones.
      Returns:
      Default:
      true
    • cacheFilePath

      String cacheFilePath
      If set, all DB Queris will be cached to that file
      Returns:
      Default:
      ""
    • customDatabaseDriver

      String customDatabaseDriver
      If set, we try to register this driver before connecting to the db.Not necessary for all supported JDBC drivers
      Returns:
      Default:
      ""
    • dependencyInjection

      boolean dependencyInjection
      If set, we use @Inject for injecting the datasource in the generated classes
      Returns:
      Default:
      false
    • addJsonAnnotations

      boolean addJsonAnnotations
      If set, the getters generated make the first letter uppercase if not, they are created
      Returns:
      if getters/setters should be capitalized
      Default:
      false