atg.droplet.sql
Class SimpleSQLFormHandler.FlexibleDoublePropertyEditor
java.lang.Object
   java.beans.PropertyEditorSupport
java.beans.PropertyEditorSupport
       atg.droplet.sql.SimpleSQLFormHandler.FlexibleDoublePropertyEditor
atg.droplet.sql.SimpleSQLFormHandler.FlexibleDoublePropertyEditor
- All Implemented Interfaces: 
- java.beans.PropertyEditor
- Enclosing class:
- SimpleSQLFormHandler
- public static class SimpleSQLFormHandler.FlexibleDoublePropertyEditor 
- extends java.beans.PropertyEditorSupport
This class implements a property editor which does normal double
 parsing, but also check for 'true' treating it as 1.0 and 'false" as 0.0.
 This is necessary because some SQL databases (oracle) don't type numbers
 very strictly so they are used for booleans.
| Field Summary | 
| static java.lang.String | CLASS_VERSIONClass version string
 | 
 
 
 
| Methods inherited from class java.beans.PropertyEditorSupport | 
| addPropertyChangeListener, firePropertyChange, getCustomEditor, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
CLASS_VERSION
public static final java.lang.String CLASS_VERSION
- Class version string
 
- See Also:
- Constant Field Values
 
SimpleSQLFormHandler.FlexibleDoublePropertyEditor
public SimpleSQLFormHandler.FlexibleDoublePropertyEditor()
setAsText
public void setAsText(java.lang.String pStr)
               throws java.lang.IllegalArgumentException
- 
- Specified by:
- setAsTextin interface- java.beans.PropertyEditor
- Overrides:
- setAsTextin class- java.beans.PropertyEditorSupport
 
- 
- Throws:
- java.lang.IllegalArgumentException
 
getJavaInitializationString
public java.lang.String getJavaInitializationString()
- 
- Specified by:
- getJavaInitializationStringin interface- java.beans.PropertyEditor
- Overrides:
- getJavaInitializationStringin class- java.beans.PropertyEditorSupport
 
- 
 
getAsText
public java.lang.String getAsText()
- 
- Specified by:
- getAsTextin interface- java.beans.PropertyEditor
- Overrides:
- getAsTextin class- java.beans.PropertyEditorSupport
 
-