oracle.forms.demos.enhancedItems
Class InsertReplaceHelper
java.lang.Object
|
+--oracle.forms.demos.enhancedItems.InsertReplaceHelper
- public class InsertReplaceHelper
- extends java.lang.Object
Utility class for Insert/Replace PJCs for Oracle Forms Services 9i
Utility class for Insert/Replace PJCs This calls contains a few common static methods
but importantly also contains a shared variable which defines if we are in Insert or Replace mode
For more PJC Demos and White Papers see Forms on OTN
- Version:
- 9.0 06/Nov/2001
- Author:
- Duncan Mills
Field Summary |
static boolean |
isReplaceMode
is the system in Replace mode? |
Method Summary |
protected static java.lang.String |
getPropertyName(oracle.forms.properties.ID pid)
A convenience function to use the ID.getName() method to get the text version of this pid |
static boolean |
getReplaceMode()
Get the value of ReplaceMode |
static void |
setReplaceMode(boolean mode)
Set the value of ReplaceMode |
protected static boolean |
toBoolean(java.lang.Object value,
boolean defaultValue)
Converts a string value containing TRUE or FALSE
as a string to the equivilent boolean |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isReplaceMode
public static boolean isReplaceMode
- is the system in Replace mode?
InsertReplaceHelper
public InsertReplaceHelper()
setReplaceMode
public static void setReplaceMode(boolean mode)
- Set the value of ReplaceMode
getReplaceMode
public static boolean getReplaceMode()
- Get the value of ReplaceMode
toBoolean
protected static final boolean toBoolean(java.lang.Object value,
boolean defaultValue)
- Converts a string value containing TRUE or FALSE
as a string to the equivilent boolean
- Parameters:
value
- String containing the words True or false in any case or the Forms Constants PROPERTY_TRUE/PROPERTY_FALSE- Returns:
- boolean value of the value
getPropertyName
protected static final java.lang.String getPropertyName(oracle.forms.properties.ID pid)
- A convenience function to use the ID.getName() method to get the text version of this pid
- Parameters:
pid
- the property to display the name of- Returns:
- the property name