Class Jdbc

java.lang.Object
org.jooq.meta.jaxb.Jdbc
All Implemented Interfaces:
Serializable, XMLAppendable

public class Jdbc extends Object implements Serializable, XMLAppendable
JDBC connection configuration.
See Also:
  • Field Details

    • driver

      protected String driver
    • url

      protected String url
    • schema

      protected String schema
    • user

      protected String user
    • username

      protected String username
    • password

      protected String password
    • autoCommit

      protected Boolean autoCommit
    • initScript

      protected String initScript
    • initSeparator

      protected String initSeparator
    • properties

      protected List<Property> properties
  • Constructor Details

    • Jdbc

      public Jdbc()
  • Method Details

    • getDriver

      public String getDriver()
      The JDBC driver class.
    • setDriver

      public void setDriver(String value)
      The JDBC driver class.
    • getUrl

      public String getUrl()
      The JDBC connection URL.
    • setUrl

      public void setUrl(String value)
      The JDBC connection URL.
    • getSchema

      @Deprecated public String getSchema()
      Deprecated.
      Use database schema configuration elements instead.
    • setSchema

      @Deprecated public void setSchema(String value)
      Deprecated.
      Use database schema configuration elements instead.
    • getUser

      public String getUser()
      The JDBC connection user. Be sure this user has all required GRANTs to the dictionary views/tables to generate the desired artefacts.
    • setUser

      public void setUser(String value)
      The JDBC connection user. Be sure this user has all required GRANTs to the dictionary views/tables to generate the desired artefacts.
    • getUsername

      public String getUsername()
      Just a synonym for "user" to be compatible with other Maven plugins.
    • setUsername

      public void setUsername(String value)
      Just a synonym for "user" to be compatible with other Maven plugins.
    • getPassword

      public String getPassword()
      The JDBC connection password.
    • setPassword

      public void setPassword(String value)
      The JDBC connection password.
    • isAutoCommit

      public Boolean isAutoCommit()
      The value of the JDBC autocommit flag. The flag is not set by default, i.e. it keeps the default provided to jOOQ.
      Returns:
      possible object is Boolean
    • setAutoCommit

      public void setAutoCommit(Boolean value)
      The value of the JDBC autocommit flag. The flag is not set by default, i.e. it keeps the default provided to jOOQ.
      Parameters:
      value - allowed object is Boolean
    • getInitScript

      public String getInitScript()
      A script to run after creating the JDBC connection, and before running the code generator.
    • setInitScript

      public void setInitScript(String value)
      A script to run after creating the JDBC connection, and before running the code generator.
    • getInitSeparator

      public String getInitSeparator()
      The separator used to separate statements in the initScript, defaulting to ";".
    • setInitSeparator

      public void setInitSeparator(String value)
      The separator used to separate statements in the initScript, defaulting to ";".
    • getProperties

      public List<Property> getProperties()
    • setProperties

      public void setProperties(List<Property> properties)
    • withDriver

      public Jdbc withDriver(String value)
      The JDBC driver class.
    • withUrl

      public Jdbc withUrl(String value)
      The JDBC connection URL.
    • withSchema

      @Deprecated public Jdbc withSchema(String value)
      Deprecated.
      Use database schema configuration elements instead.
    • withUser

      public Jdbc withUser(String value)
      The JDBC connection user. Be sure this user has all required GRANTs to the dictionary views/tables to generate the desired artefacts.
    • withUsername

      public Jdbc withUsername(String value)
      Just a synonym for "user" to be compatible with other Maven plugins.
    • withPassword

      public Jdbc withPassword(String value)
      The JDBC connection password.
    • withAutoCommit

      public Jdbc withAutoCommit(Boolean value)
      The value of the JDBC autocommit flag. The flag is not set by default, i.e. it keeps the default provided to jOOQ.
    • withInitScript

      public Jdbc withInitScript(String value)
      A script to run after creating the JDBC connection, and before running the code generator.
    • withInitSeparator

      public Jdbc withInitSeparator(String value)
      The separator used to separate statements in the initScript, defaulting to ";".
    • withProperties

      public Jdbc withProperties(Property... values)
    • withProperties

      public Jdbc withProperties(Collection<Property> values)
    • withProperties

      public Jdbc withProperties(List<Property> properties)
    • appendTo

      public final void appendTo(XMLBuilder builder)
      Specified by:
      appendTo in interface XMLAppendable
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object that)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object