- 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected BooleanautoCommitprotected Stringdriverprotected StringinitScriptprotected StringinitSeparatorprotected Stringpasswordprotected List<Property>propertiesprotected Stringschemaprotected Stringurlprotected Stringuserprotected Stringusername
-
Constructor Summary
Constructors Constructor Description Jdbc()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidappendTo(XMLBuilder builder)booleanequals(Object that)StringgetDriver()The JDBC driver class.StringgetInitScript()A script to run after creating the JDBC connection, and before running the code generator.StringgetInitSeparator()The separator used to separate statements in the initScript, defaulting to ";".StringgetPassword()The JDBC connection password.List<Property>getProperties()StringgetSchema()Deprecated.Use database schema configuration elements instead.StringgetUrl()The JDBC connection URL.StringgetUser()The JDBC connection user.StringgetUsername()Just a synonym for "user" to be compatible with other Maven plugins.inthashCode()BooleanisAutoCommit()The value of the JDBC autocommit flag.voidsetAutoCommit(Boolean value)Sets the value of the autoCommit property.voidsetDriver(String value)The JDBC driver class.voidsetInitScript(String value)A script to run after creating the JDBC connection, and before running the code generator.voidsetInitSeparator(String value)The separator used to separate statements in the initScript, defaulting to ";".voidsetPassword(String value)The JDBC connection password.voidsetProperties(List<Property> properties)voidsetSchema(String value)Deprecated.Use database schema configuration elements instead.voidsetUrl(String value)The JDBC connection URL.voidsetUser(String value)The JDBC connection user.voidsetUsername(String value)Just a synonym for "user" to be compatible with other Maven plugins.StringtoString()JdbcwithAutoCommit(Boolean value)JdbcwithDriver(String value)The JDBC driver class.JdbcwithInitScript(String value)A script to run after creating the JDBC connection, and before running the code generator.JdbcwithInitSeparator(String value)The separator used to separate statements in the initScript, defaulting to ";".JdbcwithPassword(String value)The JDBC connection password.JdbcwithProperties(Collection<Property> values)JdbcwithProperties(List<Property> properties)JdbcwithProperties(Property... values)JdbcwithSchema(String value)Deprecated.Use database schema configuration elements instead.JdbcwithUrl(String value)The JDBC connection URL.JdbcwithUser(String value)The JDBC connection user.JdbcwithUsername(String value)Just a synonym for "user" to be compatible with other Maven plugins.
-
-
-
Field Detail
-
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
-
-
Method Detail
-
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)
Sets the value of the autoCommit property.- Parameters:
value- allowed object isBoolean
-
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 ";".
-
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.
-
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(Collection<Property> values)
-
appendTo
public final void appendTo(XMLBuilder builder)
- Specified by:
appendToin interfaceXMLAppendable
-
-