com.marklogic.xdmp
Class XDMPConnectionFactoryImpl
java.lang.Object
com.marklogic.xdbc.XDBCConnectionFactory
com.marklogic.xdmp.XDMPConnectionFactoryImpl
- public class XDMPConnectionFactoryImpl
- extends XDBCConnectionFactory
The XDMP implementation of an XDBCConnectionFactory. This is the default
connection factory implementation.
This is a private implementation class. Client code should
use XDBCConnectionFactory.
|
Method Summary |
XDBCConnection |
newXDBCConnection()
Creates and returns a new XDBCConnection object, representing a
connection to an XML data source. |
XDBCConnection |
newXDBCConnection(String host,
int port)
Creates and returns a new XDBCConnection object, representing a
connection to an XML data source. |
XDBCConnection |
newXDBCConnection(String host,
int port,
String prompt)
Creates and returns a new XDBCConnection object, representing a
connection to an XML data source. |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XDMPConnectionFactoryImpl
public XDMPConnectionFactoryImpl()
newXDBCConnection
public XDBCConnection newXDBCConnection()
throws XDBCException
- Creates and returns a new XDBCConnection object, representing a
connection to an XML data source. This connection is established
to the default host and port used to by the XDMPConnectionFactoryImpl
implementation.
- Specified by:
newXDBCConnection in class XDBCConnectionFactory
- Returns:
- the XDBCConnection object
- Throws:
XDBCException - if an error occurs while establishing the connection.
newXDBCConnection
public XDBCConnection newXDBCConnection(String host,
int port)
throws XDBCException
- Creates and returns a new XDBCConnection object, representing a
connection to an XML data source. This connection is established
to the host and port specified as parameters.
- Specified by:
newXDBCConnection in class XDBCConnectionFactory
- Parameters:
host - the String name or ip address of the data source host.port - the integer port number of the data source host.
- Returns:
- the XDBCConnection object
- Throws:
XDBCException - if an error occurs while establishing the connection.
newXDBCConnection
public XDBCConnection newXDBCConnection(String host,
int port,
String prompt)
throws XDBCException
- Creates and returns a new XDBCConnection object, representing a
connection to an XML data source. This connection is established
to the host and port specified as parameters. The specific credentials
used may be conditionalized on the prompt, if it is provided.
- Specified by:
newXDBCConnection in class XDBCConnectionFactory
- Parameters:
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.
- Returns:
- the XDBCConnection object
- Throws:
XDBCException - if an error occurs while establishing the connection.
newXDBCConnection
public XDBCConnection newXDBCConnection(String host,
int port,
String user,
String password)
throws XDBCException
- Creates and returns a new XDBCConnection object, representing a
connection to an XML data source. This connection is established
to the host and port specified as parameters, with the credentials
given.
- Specified by:
newXDBCConnection in class XDBCConnectionFactory
- Parameters:
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.
- Returns:
- the XDBCConnection object
- Throws:
XDBCException - if an error occurs while establishing the connection.