|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.marklogic.xdbc.XDBCConnectionFactory
A abstract factory class for creating XDBC Database Connection objects. To use this factory, first create a new instance of the factory using the static method newInstance(). Then call newXDBCConnection() to get a connection to an XML data source or data base.
| Field Summary | |
protected String |
host
|
protected int |
port
|
| Constructor Summary | |
protected |
XDBCConnectionFactory()
|
| Method Summary | |
String |
getHost()
Gets the host name or ip address used to create connections with this factory instance. |
int |
getPort()
Gets the port number used to create connections with this factory instance. |
static XDBCConnectionFactory |
newInstance()
Returns a new instance of an XDBCConnectionFactory which can be used to produce XDBCConnection objects. |
abstract XDBCConnection |
newXDBCConnection()
Creates and returns a new XDBCConnection object, representing a connection to an XML data source. |
abstract XDBCConnection |
newXDBCConnection(String host,
int port)
Creates and returns a new XDBCConnection object, representing a connection to an XML data source. |
abstract XDBCConnection |
newXDBCConnection(String host,
int port,
String prompt)
Creates and returns a new XDBCConnection object, representing a connection to an XML data source. |
abstract XDBCConnection |
newXDBCConnection(String host,
int port,
String user,
String password)
Creates and returns a new XDBCConnection object, representing a connection to an XML data source. |
void |
setHost(String host)
Sets the host name or ip address used to create connections with this factory instance. |
void |
setPort(int port)
Sets the port number used to create connections with this factory instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected String host
protected int port
| Constructor Detail |
protected XDBCConnectionFactory()
| Method Detail |
public static XDBCConnectionFactory newInstance()
throws XDBCException
XDBCException - if a factory configuration error occurs.
public abstract XDBCConnection newXDBCConnection()
throws XDBCException
XDBCException - if an error occurs while establishing the connection.
public abstract XDBCConnection newXDBCConnection(String host,
int port)
throws XDBCException
host - the String name or ip address of the data source host.port - the integer port number of the data source host.
XDBCException - if an error occurs while establishing the connection.
public abstract XDBCConnection newXDBCConnection(String host,
int port,
String prompt)
throws XDBCException
host - the String name or ip address of the data source host.port - the integer port number of the data source host.prompt - the String prompt distinguishing the data source.
XDBCException - if an error occurs while establishing the connection.
public abstract XDBCConnection newXDBCConnection(String host,
int port,
String user,
String password)
throws XDBCException
host - the String name or ip address of the data source host.port - the integer port number of the data source host.user - the user to use to connect.password - the password to use to connect.
XDBCException - if an error occurs while establishing the connection.
public String getHost()
throws XDBCException
XDBCException - if an error occurs while getting the host.
public int getPort()
throws XDBCException
XDBCException - if an error occurs while getting the port.
public void setHost(String host)
throws XDBCException
host - the String host name.
XDBCException - if an error occurs while setting the host.
public void setPort(int port)
throws XDBCException
port - the integer port number
XDBCException - if an error occurs while setting the port.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||