|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.SIRAPRISE.client.DBConnection
be.SIRAPRISE.client.OneShotDBConnection
public final class OneShotDBConnection
A OneShotDBConnection has all the semantics of a DBConnection. The close() method actually closes the connection, such that the connection cannot be recycled for reuse in the context of a connection pool.
Constructor Summary | |
---|---|
OneShotDBConnection(java.lang.String host,
int port,
java.util.Set<java.lang.String> signatureAlgorithmNames,
java.lang.String clientID,
boolean initialAutoCommitForTransactions,
long requestConnectionIdleTime,
java.util.Set<java.lang.String> encryptionAlgorithmNames,
Signer signer)
Creates a connection to the server on the specified host and port with the given autoCommit setting, and opens it for communication. |
|
OneShotDBConnection(java.lang.String host,
int port,
java.util.Set<java.lang.String> signatureAlgorithmNames,
java.lang.String clientID,
boolean initialAutoCommitForTransactions,
long requestConnectionIdleTime,
Signer signer)
Creates a connection to the server on the specified host and port with the given autoCommit setting, and opens it for communication. |
|
OneShotDBConnection(java.lang.String host,
int port,
java.util.Set<java.lang.String> signatureAlgorithmNames,
java.lang.String clientID,
boolean initialAutoCommitForTransactions,
java.util.Set<java.lang.String> encryptionAlgorithmNames,
Signer signer)
Creates a connection to the server on the specified host and port, and opens it for communication. |
|
OneShotDBConnection(java.lang.String host,
int port,
java.util.Set<java.lang.String> signatureAlgorithmNames,
java.lang.String clientID,
boolean initialAutoCommitForTransactions,
Signer privateKeyProvider)
Creates a connection to the server on the specified host and port, and opens it for communication. |
|
OneShotDBConnection(java.lang.String host,
int port,
java.util.Set<java.lang.String> signatureAlgorithmNames,
java.lang.String clientID,
long requestConnectionIdleTime,
java.util.Set<java.lang.String> encryptionAlgorithmNames,
Signer signer)
Creates a connection to the server on the specified host and port, and opens it for communication. |
|
OneShotDBConnection(java.lang.String host,
int port,
java.util.Set<java.lang.String> signatureAlgorithmNames,
java.lang.String clientID,
long requestConnectionIdleTime,
Signer signer)
Creates a connection to the server on the specified host and port, and opens it for communication. |
|
OneShotDBConnection(java.lang.String host,
int port,
java.util.Set<java.lang.String> signatureAlgorithmNames,
java.lang.String clientID,
java.util.Set<java.lang.String> encryptionAlgorithmNames,
Signer signer)
Creates a connection to the server on the specified host and port, and opens it for communication. |
|
OneShotDBConnection(java.lang.String host,
int port,
java.util.Set<java.lang.String> signatureAlgorithmNames,
java.lang.String clientID,
Signer signer)
Creates a connection to the server on the specified host and port, and opens it for communication. |
|
OneShotDBConnection(java.lang.String host,
int port,
java.lang.String clientID,
boolean initialAutoCommitForTransactions,
long requestConnectionIdleTime,
java.util.Set<java.lang.String> encryptionAlgorithmNames,
Signer signer)
Creates a connection to the server on the specified host and port with the given autoCommit setting, and opens it for communication. |
|
OneShotDBConnection(java.lang.String host,
int port,
java.lang.String clientID,
boolean initialAutoCommitForTransactions,
long requestConnectionIdleTime,
Signer signer)
Creates a connection to the server on the specified host and port with the given autoCommit setting, and opens it for communication. |
|
OneShotDBConnection(java.lang.String host,
int port,
java.lang.String clientID,
boolean initialAutoCommitForTransactions,
java.util.Set<java.lang.String> encryptionAlgorithmNames,
Signer signer)
Creates a connection to the server on the specified host and port, and opens it for communication. |
|
OneShotDBConnection(java.lang.String host,
int port,
java.lang.String clientID,
boolean initialAutoCommitForTransactions,
Signer signer)
Creates a connection to the server on the specified host and port, and opens it for communication. |
|
OneShotDBConnection(java.lang.String host,
int port,
java.lang.String clientID,
long requestConnectionIdleTime,
java.util.Set<java.lang.String> encryptionAlgorithmNames,
Signer signer)
Creates a connection to the server on the specified host and port, and opens it for communication. |
|
OneShotDBConnection(java.lang.String host,
int port,
java.lang.String clientID,
long requestConnectionIdleTime,
Signer signer)
Creates a connection to the server on the specified host and port, and opens it for communication. |
|
OneShotDBConnection(java.lang.String host,
int port,
java.lang.String clientID,
java.util.Set<java.lang.String> encryptionAlgorithmNames,
Signer signer)
Creates a connection to the server on the specified host and port, and opens it for communication. |
|
OneShotDBConnection(java.lang.String host,
int port,
java.lang.String clientID,
Signer signer)
Creates a connection to the server on the specified host and port, and opens it for communication. |
Method Summary | |
---|---|
void |
close()
Closes the connection. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OneShotDBConnection(java.lang.String host, int port, java.util.Set<java.lang.String> signatureAlgorithmNames, java.lang.String clientID, boolean initialAutoCommitForTransactions, long requestConnectionIdleTime, java.util.Set<java.lang.String> encryptionAlgorithmNames, Signer signer) throws java.io.IOException, CommunicationProtocolException, DBException
host
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port
- The port to which to connect.signatureAlgorithmNames
- a specified set of usable signature algorithm namesclientID
- The ID identifying the client of this connection to sira_priseinitialAutoCommitForTransactions
- true if the transactions created on this connection should have their autocommit set to truerequestConnectionIdleTime
- The requested time in milliseconds that the connection is allowed to stay idleencryptionAlgorithmNames
- A specified set of usable encryption protocol namessigner
- The Signer object that will be called upon to compute the needed signature
java.io.IOException
- if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException
- If an unexpected message was received during the handshake
DBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(java.lang.String host, int port, java.util.Set<java.lang.String> signatureAlgorithmNames, java.lang.String clientID, boolean initialAutoCommitForTransactions, long requestConnectionIdleTime, Signer signer) throws java.io.IOException, CommunicationProtocolException, DBException
host
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port
- The port to which to connect.signatureAlgorithmNames
- a specified set of usable signature algorithm namesclientID
- The ID identifying the client of this connection to sira_priseinitialAutoCommitForTransactions
- true if the transactions created on this connection should have their autocommit set to truerequestConnectionIdleTime
- The requested time in milliseconds that the connection is allowed to stay idlesigner
- The Signer object that will be called upon to compute the needed signature
java.io.IOException
- if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException
- If an unexpected message was received during the handshake
DBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(java.lang.String host, int port, java.util.Set<java.lang.String> signatureAlgorithmNames, java.lang.String clientID, boolean initialAutoCommitForTransactions, java.util.Set<java.lang.String> encryptionAlgorithmNames, Signer signer) throws java.io.IOException, CommunicationProtocolException, DBException
host
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port
- The port to which to connect.signatureAlgorithmNames
- a specified set of usable signature algorithm namesclientID
- The ID identifying the client of this connection to sira_priseinitialAutoCommitForTransactions
- true if the transactions created on this connection should have their autocommit set to trueencryptionAlgorithmNames
- a specified set of usable encryption protocol namessigner
- The Signer object that will be called upon to compute the needed signature
java.io.IOException
- if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException
- If an unexpected message was received during the handshake
DBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(java.lang.String host, int port, java.util.Set<java.lang.String> signatureAlgorithmNames, java.lang.String clientID, boolean initialAutoCommitForTransactions, Signer privateKeyProvider) throws java.io.IOException, CommunicationProtocolException, DBException
host
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port
- The port to which to connect.signatureAlgorithmNames
- a specified set of usable signature algorithm namesclientID
- The ID identifying the client of this connection to sira_priseinitialAutoCommitForTransactions
- true if the transactions created on this connection should have their autocommit set to trueprivateKeyProvider
- The Signer object that will be called upon to compute the needed signature
java.io.IOException
- if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException
- If an unexpected message was received during the handshake
DBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(java.lang.String host, int port, java.util.Set<java.lang.String> signatureAlgorithmNames, java.lang.String clientID, long requestConnectionIdleTime, java.util.Set<java.lang.String> encryptionAlgorithmNames, Signer signer) throws java.io.IOException, CommunicationProtocolException, DBException
host
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port
- The port to which to connect.signatureAlgorithmNames
- a specified set of usable signature algorithm namesclientID
- The ID identifying the client of this connection to sira_priserequestConnectionIdleTime
- The requested time in milliseconds that the connection is allowed to stay idleencryptionAlgorithmNames
- a specified set of usable encryption protocol namessigner
- The Signer object that will be called upon to compute the needed signature
java.io.IOException
- if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException
- If an unexpected message was received during the handshake
DBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(java.lang.String host, int port, java.util.Set<java.lang.String> signatureAlgorithmNames, java.lang.String clientID, long requestConnectionIdleTime, Signer signer) throws java.io.IOException, CommunicationProtocolException, DBException
host
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port
- The port to which to connect.signatureAlgorithmNames
- a specified set of usable signature algorithm namesclientID
- The ID identifying the client of this connection to sira_priserequestConnectionIdleTime
- The requested time in milliseconds that the connection is allowed to stay idlesigner
- The Signer object that will be called upon to compute the needed signature
java.io.IOException
- if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException
- If an unexpected message was received during the handshake
DBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(java.lang.String host, int port, java.util.Set<java.lang.String> signatureAlgorithmNames, java.lang.String clientID, java.util.Set<java.lang.String> encryptionAlgorithmNames, Signer signer) throws java.io.IOException, CommunicationProtocolException, DBException
host
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port
- The port to which to connect.signatureAlgorithmNames
- a specified set of usable signature algorithm namesclientID
- The ID identifying the client of this connection to sira_priseencryptionAlgorithmNames
- a specified set of usable encryption protocol namessigner
- The Signer object that will be called upon to compute the needed signature
java.io.IOException
- if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException
- If an unexpected message was received during the handshake
DBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(java.lang.String host, int port, java.util.Set<java.lang.String> signatureAlgorithmNames, java.lang.String clientID, Signer signer) throws java.io.IOException, CommunicationProtocolException, DBException
host
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port
- The port to which to connect.signatureAlgorithmNames
- a specified set of usable signature algorithm namesclientID
- The ID identifying the client of this connection to sira_prisesigner
- The Signer object that will be called upon to compute the needed signature
java.io.IOException
- if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException
- If an unexpected message was received during the handshake
DBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(java.lang.String host, int port, java.lang.String clientID, boolean initialAutoCommitForTransactions, long requestConnectionIdleTime, java.util.Set<java.lang.String> encryptionAlgorithmNames, Signer signer) throws java.io.IOException, CommunicationProtocolException, DBException
host
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port
- The port to which to connect.clientID
- The ID identifying the client of this connection to sira_priseinitialAutoCommitForTransactions
- true if the transactions created on this connection should have their autocommit set to truerequestConnectionIdleTime
- The requested time in milliseconds that the connection is allowed to stay idleencryptionAlgorithmNames
- A specified set of usable encryption protocol namessigner
- The Signer object that will be called upon to compute the needed signature
java.io.IOException
- if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException
- If an unexpected message was received during the handshake
DBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(java.lang.String host, int port, java.lang.String clientID, boolean initialAutoCommitForTransactions, long requestConnectionIdleTime, Signer signer) throws java.io.IOException, CommunicationProtocolException, DBException
host
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port
- The port to which to connect.clientID
- The ID identifying the client of this connection to sira_priseinitialAutoCommitForTransactions
- true if the transactions created on this connection should have their autocommit set to truerequestConnectionIdleTime
- The requested time in milliseconds that the connection is allowed to stay idlesigner
- The Signer object that will be called upon to compute the needed signature
java.io.IOException
- if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException
- If an unexpected message was received during the handshake
DBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(java.lang.String host, int port, java.lang.String clientID, boolean initialAutoCommitForTransactions, java.util.Set<java.lang.String> encryptionAlgorithmNames, Signer signer) throws java.io.IOException, CommunicationProtocolException, DBException
host
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port
- The port to which to connect.clientID
- The ID identifying the client of this connection to sira_priseinitialAutoCommitForTransactions
- true if the transactions created on this connection should have their autocommit set to trueencryptionAlgorithmNames
- a specified set of usable encryption protocol namessigner
- The Signer object that will be called upon to compute the needed signature
java.io.IOException
- if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException
- If an unexpected message was received during the handshake
DBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(java.lang.String host, int port, java.lang.String clientID, boolean initialAutoCommitForTransactions, Signer signer) throws java.io.IOException, CommunicationProtocolException, DBException
host
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port
- The port to which to connect.clientID
- The ID identifying the client of this connection to sira_priseinitialAutoCommitForTransactions
- true if the transactions created on this connection should have their autocommit set to truesigner
- The Signer object that will be called upon to compute the needed signature
java.io.IOException
- if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException
- If an unexpected message was received during the handshake
DBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(java.lang.String host, int port, java.lang.String clientID, long requestConnectionIdleTime, java.util.Set<java.lang.String> encryptionAlgorithmNames, Signer signer) throws java.io.IOException, CommunicationProtocolException, DBException
host
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port
- The port to which to connect.clientID
- The ID identifying the client of this connection to sira_priserequestConnectionIdleTime
- The requested time in milliseconds that the connection is allowed to stay idleencryptionAlgorithmNames
- a specified set of usable encryption protocol namessigner
- The Signer object that will be called upon to compute the needed signature
java.io.IOException
- if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException
- If an unexpected message was received during the handshake
DBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(java.lang.String host, int port, java.lang.String clientID, long requestConnectionIdleTime, Signer signer) throws java.io.IOException, CommunicationProtocolException, DBException
host
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port
- The port to which to connect.clientID
- The ID identifying the client of this connection to sira_priserequestConnectionIdleTime
- The requested time in milliseconds that the connection is allowed to stay idlesigner
- The Signer object that will be called upon to compute the needed signature
java.io.IOException
- if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException
- If an unexpected message was received during the handshake
DBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(java.lang.String host, int port, java.lang.String clientID, java.util.Set<java.lang.String> encryptionAlgorithmNames, Signer signer) throws java.io.IOException, CommunicationProtocolException, DBException
host
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port
- The port to which to connect.clientID
- The ID identifying the client of this connection to sira_priseencryptionAlgorithmNames
- a specified set of usable encryption protocol namessigner
- The Signer object that will be called upon to compute the needed signature
java.io.IOException
- if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException
- If an unexpected message was received during the handshake
DBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(java.lang.String host, int port, java.lang.String clientID, Signer signer) throws java.io.IOException, CommunicationProtocolException, DBException
host
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.port
- The port to which to connect.clientID
- The ID identifying the client of this connection to sira_prisesigner
- The Signer object that will be called upon to compute the needed signature
java.io.IOException
- if an I/O error occurs when creating the TCP socket.
CommunicationProtocolException
- If an unexpected message was received during the handshake
DBException
- If an error was detected on the server during the handshakeMethod Detail |
---|
public void close()
DBConnection
close
in class DBConnection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |