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

Class ConnectionDetails

Implemented Interfaces:
XsObject
Known Direct Subclasses:
TableDetails

public class ConnectionDetails
extends XsObjectImpl

Author:
Jochen Wiedmann

Constructor Summary

ConnectionDetails(JaxMeJdbcSG pJdbcSG, XsObject pParent)

Method Summary

void
cloneFrom(ConnectionDetails pFrom)
Copies the given details into the current.
String
getDatasource()
Returns the JDBC datasource.
JaxMeJdbcSG.Mode
getDbMode()
Returns the database mode.
String
getDriver()
Returns the JDBC driver.
String
getPassword()
Returns the JDBC password.
String
getUrl()
Returns the JDBC URL.
String
getUser()
Returns the JDBC user.
Boolean
isUsingDatasource()
Returns, whether a JDBC datasource is being used.
void
setDatasource(String pDatasource)
Sets the JDBC datasource.
void
setDbMode(String pMode)
Sets the database mode.
void
setDriver(String pDriver)
Sets the JDBC driver.
void
setPassword(String pPassword)
Sets the JDBC password.
void
setUrl(String pUrl)
Sets the JDBC URL.
void
setUser(String pUser)
Sets the JDBC user.
void
setUsingDatasource(Boolean pUsingDatasource)
Sets, whether a JDBC datasource is being used.
void
validate()
Validates the internal state of the type, attribute, element, or whatever object.

Methods inherited from class org.apache.ws.jaxme.xs.xml.impl.XsObjectImpl

asXsQName, asXsQName, getContext, getLocator, getNamespaceSupport, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, isValidated, validate

Constructor Details

ConnectionDetails

protected ConnectionDetails(JaxMeJdbcSG pJdbcSG,
                            XsObject pParent)

Method Details

cloneFrom

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

getDatasource

public String getDatasource()
Returns the JDBC datasource.

getDbMode

public JaxMeJdbcSG.Mode getDbMode()
Returns the database mode. Either of JaxMeJdbcSG.Mode.GENERIC (default), or JaxMeJdbcSG.Mode.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.

setDbMode

public void setDbMode(String pMode)

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()
            throws SAXException
Validates the internal state of the type, attribute, element, or whatever object.
Specified by:
validate in interface XsObject
Overrides:
validate in interface XsObjectImpl