Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.2)

E22562-02

oracle.apps.fnd.applcore.flex.runtime.util
Class DecodeStatement

java.lang.Object
  extended by oracle.apps.fnd.applcore.flex.runtime.util.DecodeStatement

public class DecodeStatement
extends java.lang.Object

Helper class for creating Oracle decode SQL statement.


Constructor Summary
DecodeStatement(java.lang.String expr)
          Constructs a decode statement.
 
Method Summary
 void addCase(java.lang.String search, java.lang.String result)
          Adds a pair of search/result.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DecodeStatement

public DecodeStatement(java.lang.String expr)
Constructs a decode statement.

Parameters:
expr - the value to compare
Throws:
java.lang.IllegalArgumentException - if the expression is null
Method Detail

addCase

public void addCase(java.lang.String search,
                    java.lang.String result)
Adds a pair of search/result.

Parameters:
search - the value that is compared against expression
result - the value returned, if expression is equal to search
Throws:
java.lang.IllegalArgumentException - if the search or result is null

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.2)

E22562-02

Copyright © 2011 Oracle. All Rights Reserved.