org.apache.ws.jaxme.pm.generator.jdbc

Class ConnectionDetails

public class ConnectionDetails extends XsObjectImpl

Author: Jochen Wiedmann

Constructor Summary
protected ConnectionDetails(JaxMeJdbcSG pJdbcSG, XsObject pParent)
Method Summary
voidcloneFrom(ConnectionDetails pFrom)
Copies the given details into the current.
StringgetDatasource()
Returns the JDBC datasource.
JaxMeJdbcSG.ModegetDbMode()
Returns the database mode.
StringgetDriver()
Returns the JDBC driver.
StringgetPassword()
Returns the JDBC password.
StringgetUrl()
Returns the JDBC URL.
StringgetUser()
Returns the JDBC user.
BooleanisUsingDatasource()
Returns, whether a JDBC datasource is being used.
voidsetDatasource(String pDatasource)
Sets the JDBC datasource.
voidsetDbMode(String pMode)
Sets the database mode.
voidsetDriver(String pDriver)
Sets the JDBC driver.
voidsetPassword(String pPassword)
Sets the JDBC password.
voidsetUrl(String pUrl)
Sets the JDBC URL.
voidsetUser(String pUser)
Sets the JDBC user.
voidsetUsingDatasource(Boolean pUsingDatasource)
Sets, whether a JDBC datasource is being used.
voidvalidate()

Constructor Detail

ConnectionDetails

protected ConnectionDetails(JaxMeJdbcSG pJdbcSG, XsObject pParent)

Method Detail

cloneFrom

public void cloneFrom(ConnectionDetails pFrom)
Copies the given details into the current.

getDatasource

public String getDatasource()
Returns the JDBC datasource.

See Also: isUsingDatasource

getDbMode

public JaxMeJdbcSG.Mode getDbMode()
Returns the database mode. Either of GENERIC (default), or ORACLE.

getDriver

public String getDriver()
Returns the JDBC driver.

getPassword

public String getPassword()
Returns the JDBC password.

getUrl

public String getUrl()
Returns the JDBC URL.

getUser

public String getUser()
Returns the JDBC user.

isUsingDatasource

public Boolean isUsingDatasource()
Returns, whether a JDBC datasource is being used. By default the JDBC driver and URL are used.

setDatasource

public void setDatasource(String pDatasource)
Sets the JDBC datasource.

See Also: setUsingDatasource

setDbMode

public void setDbMode(String pMode)
Sets the database mode. Must be either of GENERIC (default), or ORACLE.

setDriver

public void setDriver(String pDriver)
Sets the JDBC driver.

setPassword

public void setPassword(String pPassword)
Sets the JDBC password.

setUrl

public void setUrl(String pUrl)
Sets the JDBC URL.

setUser

public void setUser(String pUser)
Sets the JDBC user.

setUsingDatasource

public void setUsingDatasource(Boolean pUsingDatasource)
Sets, whether a JDBC datasource is being used. By default the JDBC driver and URL are used.

validate

public void validate()