Skip navigation links

Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.5.0)

E17060-02


oracle.odi.domain.topology
Class OdiOnDisconnectConfig

java.lang.Object
  extended by oracle.odi.domain.topology.OdiOnDisconnectConfig


public class OdiOnDisconnectConfig
extends java.lang.Object

Holds configuration information related to OnDisconnect command to be applied to an OdiDataServer's connection when it is released. It is typically used to define DB session cleanup.

Since:
11.1.1.5.0

Constructor Summary
OdiOnDisconnectConfig(java.lang.String pCmd, LogLevel pLogLevel, java.util.Set<TransactionChannel> pTransactionChannels, boolean pShouldBePerformedOutsideTransactionChannels, boolean pShouldCommitCmd, boolean pShouldIgnoreErrors)
          Create a new OdiOnDisconnectConfig

 

Method Summary
 java.lang.String getCommand()
          Obtains the command to be performed during onDisconnect
 LogLevel getLogLevel()
          Obtains log level to be used when executing onDisconnect command.
 java.util.Set<TransactionChannel> getTransactionChannels()
          Obtains the transaction channels for which the onDisconnect command should be performed.
 boolean isShouldBePerformedOutsideTransactionChannels()
          Returns whether the on disconnect command should also be performed outside transaction channels (i.e.
 boolean isShouldCommitCommand()
          Returns whether the on disconnect command should be committed, or not.
 boolean isShouldIgnoreErrors()
          Return whether the on disconnect command's errors should be ignored, or not.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

OdiOnDisconnectConfig

public OdiOnDisconnectConfig(java.lang.String pCmd,
                             LogLevel pLogLevel,
                             java.util.Set<TransactionChannel> pTransactionChannels,
                             boolean pShouldBePerformedOutsideTransactionChannels,
                             boolean pShouldCommitCmd,
                             boolean pShouldIgnoreErrors)
                      throws java.lang.IllegalArgumentException
Create a new OdiOnDisconnectConfig
Parameters:
pCmd - - the onDisconnect command, can be null
pLogLevel - - the log level to be applied when executing the command
pTransactionChannels - - transaction channels to apply the command
pShouldBePerformedOutsideTransactionChannels - - whether the command can be performed outside session execution
pShouldCommitCmd - - whether the command should be committed
pShouldIgnoreErrors - - whether errors should be ignored
Throws:
java.lang.IllegalArgumentException - - in case of an illegal null parameter value

Method Detail

getLogLevel

public LogLevel getLogLevel()
Obtains log level to be used when executing onDisconnect command.
Returns:
a LogLevel

getCommand

public java.lang.String getCommand()
Obtains the command to be performed during onDisconnect
Returns:
a string containing onDisconnect statement, or null if undefined

isShouldCommitCommand

public boolean isShouldCommitCommand()
Returns whether the on disconnect command should be committed, or not.
Returns:
true if command should be committed, false otherwise.

isShouldIgnoreErrors

public boolean isShouldIgnoreErrors()
Return whether the on disconnect command's errors should be ignored, or not.
Returns:
true if errors should be ignored, false otherwise

getTransactionChannels

public java.util.Set<TransactionChannel> getTransactionChannels()
Obtains the transaction channels for which the onDisconnect command should be performed.
Returns:
a set of TransactionChannels

isShouldBePerformedOutsideTransactionChannels

public boolean isShouldBePerformedOutsideTransactionChannels()
Returns whether the on disconnect command should also be performed outside transaction channels (i.e. outside the context of a session execution).
Returns:
true if command should be performed outside transaction channels, false otherwise

Skip navigation links

Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.5.0)

E17060-02


Copyright © 2011, Oracle and/or its affiliates. All rights reserved.