com.ibm.broker.config.appdev.nodes

Class DatabaseNode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable


    public class DatabaseNode
    extends Node

    DatabaseNode instance

    Database node interacts with a database using ESQL statements. The ESQL code can specify the data from the input message, and perhaps transform it in some way (for example, to perform a calculation), and assign the result to a database table

     Change Activity:
     -------- ----------- -------------   ------------------------------------
     Reason:  Date:       Originator:     Comments:
     -------- ----------- -------------   ------------------------------------
     xxxxx.x  2010-08-10  dstorey         creation
     xxxxx.x  xxxx-xx-xx  generated       7.0.0.2 Release
     
    See Also:
    Serialized Form
    • Constructor Detail

      • DatabaseNode

        public DatabaseNode()
    • Method Detail

      • getInputTerminals

        public InputTerminal[] getInputTerminals()
        Description copied from class: Node
        Gets the full list of available InputTerminals for this Node
        Specified by:
        getInputTerminals in class Node
        Returns:
        InputTerminal[]
      • getOutputTerminals

        public OutputTerminal[] getOutputTerminals()
        Description copied from class: Node
        Gets the full list of available OutputTerminals for this Node
        Specified by:
        getOutputTerminals in class Node
        Returns:
        OutputTerminal[]
      • getTypeName

        public java.lang.String getTypeName()
        Description copied from class: Node
        Gets the node type of this node
        Specified by:
        getTypeName in class Node
        Returns:
        String; the node type
      • setDataSource

        public DatabaseNode setDataSource(java.lang.String value)
        Set the DatabaseNode "Data source" property
        Parameters:
        value - String ; the value to set the property "Data source"
      • getDataSource

        public java.lang.String getDataSource()
        Get the DatabaseNode "Data source" property
        Returns:
        String; the value of the property "Data source"
      • setConnectDatasourceBeforeFlowStarts

        public DatabaseNode setConnectDatasourceBeforeFlowStarts(boolean value)
        Set the DatabaseNode "Connect before flow starts" property
        Parameters:
        value - boolean ; the value to set the property "Connect before flow starts"
      • getConnectDatasourceBeforeFlowStarts

        public boolean getConnectDatasourceBeforeFlowStarts()
        Get the DatabaseNode "Connect before flow starts" property
        Returns:
        boolean; the value of the property "Connect before flow starts"
      • setStatement

        public DatabaseNode setStatement(ESQLModule value)
        Set the DatabaseNode "Statement" property
        Parameters:
        value - ESQLModule ; the value to set the property "Statement"
      • getStatement

        public ESQLModule getStatement()
        Get the DatabaseNode "Statement" property
        Returns:
        ESQLModule ; the value of the property "Statement"
      • getTransaction

        public DatabaseNode.ENUM_DATABASE_TRANSACTION getTransaction()
        Get the DatabaseNode "Transaction" property
        Returns:
        ENUM_DATABASE_TRANSACTION; the value of the property "Transaction"
      • setTreatWarningsAsErrors

        public DatabaseNode setTreatWarningsAsErrors(boolean value)
        Set the DatabaseNode "Treat warnings as errors" property
        Parameters:
        value - boolean ; the value to set the property "Treat warnings as errors"
      • getTreatWarningsAsErrors

        public boolean getTreatWarningsAsErrors()
        Get the DatabaseNode "Treat warnings as errors" property
        Returns:
        boolean; the value of the property "Treat warnings as errors"
      • setThrowExceptionOnDatabaseError

        public DatabaseNode setThrowExceptionOnDatabaseError(boolean value)
        Set the DatabaseNode "Throw exception on database error" property
        Parameters:
        value - boolean ; the value to set the property "Throw exception on database error"
      • getThrowExceptionOnDatabaseError

        public boolean getThrowExceptionOnDatabaseError()
        Get the DatabaseNode "Throw exception on database error" property
        Returns:
        boolean; the value of the property "Throw exception on database error"
      • getNodeName

        public java.lang.String getNodeName()
        Description copied from class: Node
        Gets the label name of this node
          MessageFlow mf1 = patternInstanceManager.getMessageFlow("MyFlowProject", "mf1.msgflow");
          Node inputMQNode = mf1.getNodeByName("My Input Node");
          inputMQNode.setNodeName("Renamed Input Node");
         
        Overrides:
        getNodeName in class Node
        Returns:
        String; the node name