public final class OneShotDBConnection extends DBConnection
Constructor and Description |
---|
OneShotDBConnection(SiraPriseServer siraPriseServer,
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(SiraPriseServer siraPriseServer,
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(SiraPriseServer siraPriseServer,
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(SiraPriseServer siraPriseServer,
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(SiraPriseServer siraPriseServer,
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(SiraPriseServer siraPriseServer,
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(SiraPriseServer siraPriseServer,
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(SiraPriseServer siraPriseServer,
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(SiraPriseServer siraPriseServer,
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(SiraPriseServer siraPriseServer,
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(SiraPriseServer siraPriseServer,
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(SiraPriseServer siraPriseServer,
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(SiraPriseServer siraPriseServer,
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(SiraPriseServer siraPriseServer,
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(SiraPriseServer siraPriseServer,
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(SiraPriseServer siraPriseServer,
java.lang.String clientID,
Signer signer)
Creates a connection to the server on the specified host and port, and opens it for communication.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the connection.
|
commit, compileAndCacheQuery, compileQuery, endTransaction, execDmlCommand, execDmlCommandAndEndTransaction, execMultipleStatement, execMultipleStatement, execMultipleStatementAndEndTransaction, execMultipleStatementAndEndTransaction, execQueries, execQueriesAndEndTransaction, execQuery, execQueryAndEndTransaction, getDefaultTransactionAutoCommit, getSpecificationVersionForServer, isDefaultInitialAutoCommitForTransactions, isOpen, rollback, setDefaultTransactionAutoCommit, startTransaction, startTransaction, startTransaction, startTransaction, startTransaction, startTransaction, startTransaction, startTransaction, startTransaction, startTransaction, startTransaction, startTransaction, startTransaction, startTransaction, startTransaction, startTransaction, startTransaction, startTransaction, startTransaction, startTransaction, startTransaction, startTransaction, startTransaction, startTransaction, startTransaction, startTransaction
public OneShotDBConnection(SiraPriseServer siraPriseServer, 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
siraPriseServer
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.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 signaturejava.io.IOException
- if an I/O error occurs when creating the TCP socket.CommunicationProtocolException
- If an unexpected message was received during the handshakeDBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(SiraPriseServer siraPriseServer, java.util.Set<java.lang.String> signatureAlgorithmNames, java.lang.String clientID, boolean initialAutoCommitForTransactions, long requestConnectionIdleTime, Signer signer) throws java.io.IOException, CommunicationProtocolException, DBException
siraPriseServer
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.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 signaturejava.io.IOException
- if an I/O error occurs when creating the TCP socket.CommunicationProtocolException
- If an unexpected message was received during the handshakeDBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(SiraPriseServer siraPriseServer, 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
siraPriseServer
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.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 signaturejava.io.IOException
- if an I/O error occurs when creating the TCP socket.CommunicationProtocolException
- If an unexpected message was received during the handshakeDBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(SiraPriseServer siraPriseServer, java.util.Set<java.lang.String> signatureAlgorithmNames, java.lang.String clientID, boolean initialAutoCommitForTransactions, Signer privateKeyProvider) throws java.io.IOException, CommunicationProtocolException, DBException
siraPriseServer
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.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 signaturejava.io.IOException
- if an I/O error occurs when creating the TCP socket.CommunicationProtocolException
- If an unexpected message was received during the handshakeDBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(SiraPriseServer siraPriseServer, 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
siraPriseServer
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.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 signaturejava.io.IOException
- if an I/O error occurs when creating the TCP socket.CommunicationProtocolException
- If an unexpected message was received during the handshakeDBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(SiraPriseServer siraPriseServer, java.util.Set<java.lang.String> signatureAlgorithmNames, java.lang.String clientID, long requestConnectionIdleTime, Signer signer) throws java.io.IOException, CommunicationProtocolException, DBException
siraPriseServer
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.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 signaturejava.io.IOException
- if an I/O error occurs when creating the TCP socket.CommunicationProtocolException
- If an unexpected message was received during the handshakeDBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(SiraPriseServer siraPriseServer, 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
siraPriseServer
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.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 signaturejava.io.IOException
- if an I/O error occurs when creating the TCP socket.CommunicationProtocolException
- If an unexpected message was received during the handshakeDBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(SiraPriseServer siraPriseServer, java.util.Set<java.lang.String> signatureAlgorithmNames, java.lang.String clientID, Signer signer) throws java.io.IOException, CommunicationProtocolException, DBException
siraPriseServer
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.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 signaturejava.io.IOException
- if an I/O error occurs when creating the TCP socket.CommunicationProtocolException
- If an unexpected message was received during the handshakeDBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(SiraPriseServer siraPriseServer, java.lang.String clientID, boolean initialAutoCommitForTransactions, long requestConnectionIdleTime, java.util.Set<java.lang.String> encryptionAlgorithmNames, Signer signer) throws java.io.IOException, CommunicationProtocolException, DBException
siraPriseServer
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.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 signaturejava.io.IOException
- if an I/O error occurs when creating the TCP socket.CommunicationProtocolException
- If an unexpected message was received during the handshakeDBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(SiraPriseServer siraPriseServer, java.lang.String clientID, boolean initialAutoCommitForTransactions, long requestConnectionIdleTime, Signer signer) throws java.io.IOException, CommunicationProtocolException, DBException
siraPriseServer
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.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 signaturejava.io.IOException
- if an I/O error occurs when creating the TCP socket.CommunicationProtocolException
- If an unexpected message was received during the handshakeDBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(SiraPriseServer siraPriseServer, java.lang.String clientID, boolean initialAutoCommitForTransactions, java.util.Set<java.lang.String> encryptionAlgorithmNames, Signer signer) throws java.io.IOException, CommunicationProtocolException, DBException
siraPriseServer
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.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 signaturejava.io.IOException
- if an I/O error occurs when creating the TCP socket.CommunicationProtocolException
- If an unexpected message was received during the handshakeDBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(SiraPriseServer siraPriseServer, java.lang.String clientID, boolean initialAutoCommitForTransactions, Signer signer) throws java.io.IOException, CommunicationProtocolException, DBException
siraPriseServer
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.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 signaturejava.io.IOException
- if an I/O error occurs when creating the TCP socket.CommunicationProtocolException
- If an unexpected message was received during the handshakeDBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(SiraPriseServer siraPriseServer, java.lang.String clientID, long requestConnectionIdleTime, java.util.Set<java.lang.String> encryptionAlgorithmNames, Signer signer) throws java.io.IOException, CommunicationProtocolException, DBException
siraPriseServer
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.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 signaturejava.io.IOException
- if an I/O error occurs when creating the TCP socket.CommunicationProtocolException
- If an unexpected message was received during the handshakeDBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(SiraPriseServer siraPriseServer, java.lang.String clientID, long requestConnectionIdleTime, Signer signer) throws java.io.IOException, CommunicationProtocolException, DBException
siraPriseServer
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.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 signaturejava.io.IOException
- if an I/O error occurs when creating the TCP socket.CommunicationProtocolException
- If an unexpected message was received during the handshakeDBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(SiraPriseServer siraPriseServer, java.lang.String clientID, java.util.Set<java.lang.String> encryptionAlgorithmNames, Signer signer) throws java.io.IOException, CommunicationProtocolException, DBException
siraPriseServer
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.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 signaturejava.io.IOException
- if an I/O error occurs when creating the TCP socket.CommunicationProtocolException
- If an unexpected message was received during the handshakeDBException
- If an error was detected on the server during the handshakepublic OneShotDBConnection(SiraPriseServer siraPriseServer, java.lang.String clientID, Signer signer) throws java.io.IOException, CommunicationProtocolException, DBException
siraPriseServer
- The identification of the host. It may either be its DNS name or its IP address in dotted decimal.clientID
- The ID identifying the client of this connection to SIRA_PRISEsigner
- The Signer object that will be called upon to compute the needed signaturejava.io.IOException
- if an I/O error occurs when creating the TCP socket.CommunicationProtocolException
- If an unexpected message was received during the handshakeDBException
- If an error was detected on the server during the handshakepublic void close()
DBConnection
close
in interface java.lang.AutoCloseable
close
in class DBConnection