|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.sessions.DefaultConnector
public class DefaultConnector
Purpose:Use this Connector to build a java.sql.Connection in the "standard" fashion, via the DriverManager.
Constructor Summary | |
---|---|
DefaultConnector()
PUBLIC: Construct a Connector with default settings The database URL will still need to be set. |
|
DefaultConnector(String driverClassName,
String driverURLHeader,
String databaseURL)
PUBLIC: Construct a Connector with the specified settings. |
Method Summary | |
---|---|
void |
clearDriverClassAndDriver()
INTERNAL: Discard the cached driver class and driver. |
Object |
clone()
INTERNAL: Clone the connector. |
Connection |
connect(Properties properties,
Session session)
INTERNAL: Connect with the specified properties and session. |
String |
getConnectionDetails()
PUBLIC: Provide the details of my connection information. |
String |
getConnectionString()
PUBLIC: Return the JDBC connection string. |
String |
getDatabaseURL()
PUBLIC: The database URL is the JDBC URL for the database server. |
String |
getDriverClassName()
PUBLIC: The driver class is the name of the Java class for the JDBC driver being used (e.g. |
String |
getDriverURLHeader()
PUBLIC: The driver URL header is the string predetermined by the JDBC driver to be part of the URL connection string, (e.g. |
void |
setDatabaseURL(String databaseURL)
PUBLIC: The database URL is the JDBC URL for the database server. |
void |
setDriverClassName(String driverClassName)
PUBLIC: The driver class is the name of the Java class for the JDBC driver being used (e.g. |
void |
setDriverURLHeader(String driverURLHeader)
PUBLIC: The driver URL header is the string predetermined by the JDBC driver to be part of the URL connection string, (e.g. |
boolean |
shouldUseDriverManager(Properties properties,
Session session)
INTERNAL: Indicates whether DriverManager should be used. |
String |
toString()
PUBLIC: Print connection string. |
void |
toString(PrintWriter writer)
INTERNAL: Print something useful on the log. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultConnector()
public DefaultConnector(String driverClassName, String driverURLHeader, String databaseURL)
Method Detail |
---|
public Object clone()
clone
in interface Connector
clone
in class Object
public Connection connect(Properties properties, Session session) throws DatabaseException
connect
in interface Connector
DatabaseException
public boolean shouldUseDriverManager(Properties properties, Session session)
public String getConnectionString()
public String getConnectionDetails()
getConnectionDetails
in interface Connector
public String getDatabaseURL()
public String getDriverClassName()
public String getDriverURLHeader()
public void setDatabaseURL(String databaseURL)
public void setDriverClassName(String driverClassName)
public void setDriverURLHeader(String driverURLHeader)
public String toString()
toString
in class Object
public void toString(PrintWriter writer)
toString
in interface Connector
public void clearDriverClassAndDriver()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |