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

java.lang.Object
  extended by org.apache.ws.jaxme.xs.xml.impl.XsObjectImpl
      extended by org.apache.ws.jaxme.pm.generator.jdbc.ConnectionDetails
All Implemented Interfaces:
XsObject
Direct Known Subclasses:
TableDetails

public class ConnectionDetails
extends XsObjectImpl

Author:
Jochen Wiedmann

Constructor Summary
protected ConnectionDetails(JaxMeJdbcSG pJdbcSG, XsObject pParent)
           
 
Method Summary
 void cloneFrom(ConnectionDetails pFrom)
          Copies the given details into the current.
 java.lang.String getDatasource()
          Returns the JDBC datasource.
 JaxMeJdbcSG.Mode getDbMode()
          Returns the database mode.
 java.lang.String getDriver()
          Returns the JDBC driver.
 java.lang.String getPassword()
          Returns the JDBC password.
 java.lang.String getUrl()
          Returns the JDBC URL.
 java.lang.String getUser()
          Returns the JDBC user.
 java.lang.Boolean isUsingDatasource()
          Returns, whether a JDBC datasource is being used.
 void setDatasource(java.lang.String pDatasource)
          Sets the JDBC datasource.
 void setDbMode(java.lang.String pMode)
          Sets the database mode.
 void setDriver(java.lang.String pDriver)
          Sets the JDBC driver.
 void setPassword(java.lang.String pPassword)
          Sets the JDBC password.
 void setUrl(java.lang.String pUrl)
          Sets the JDBC URL.
 void setUser(java.lang.String pUser)
          Sets the JDBC user.
 void setUsingDatasource(java.lang.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionDetails

protected ConnectionDetails(JaxMeJdbcSG pJdbcSG,
                            XsObject pParent)
Method Detail

setDriver

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


getDriver

public java.lang.String getDriver()
Returns the JDBC driver.


setUrl

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


getUrl

public java.lang.String getUrl()
Returns the JDBC URL.


setUser

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


getUser

public java.lang.String getUser()
Returns the JDBC user.


setPassword

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


getPassword

public java.lang.String getPassword()
Returns the JDBC password.


setDatasource

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

See Also:
setUsingDatasource(Boolean)

getDatasource

public java.lang.String getDatasource()
Returns the JDBC datasource.

See Also:
isUsingDatasource()

setUsingDatasource

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


isUsingDatasource

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


setDbMode

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


getDbMode

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


cloneFrom

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


validate

public void validate()
              throws org.xml.sax.SAXException
Description copied from interface: XsObject
Validates the internal state of the type, attribute, element, or whatever object.

Specified by:
validate in interface XsObject
Overrides:
validate in class XsObjectImpl
Throws:
org.xml.sax.SAXException