atg.droplet.sql
Class SimpleSQLFormHandler.FlexibleIntegerPropertyEditor
java.lang.Object
  
java.beans.PropertyEditorSupport
      
atg.droplet.sql.SimpleSQLFormHandler.FlexibleIntegerPropertyEditor
- All Implemented Interfaces: 
 - java.beans.PropertyEditor
 
- Enclosing class:
 - SimpleSQLFormHandler
 
public static class SimpleSQLFormHandler.FlexibleIntegerPropertyEditor
- extends java.beans.PropertyEditorSupport
 
This class implements a property editor which does normal integer
 parsing, but also check for 'true' treating it as 1 and 'false" as 0.
 This is necessary because some SQL databases use integer as their
 bit/boolean type.
| 
Field Summary | 
static java.lang.String | 
CLASS_VERSION
 
          Class 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.FlexibleIntegerPropertyEditor
public SimpleSQLFormHandler.FlexibleIntegerPropertyEditor()
setAsText
public void setAsText(java.lang.String pStr)
               throws java.lang.IllegalArgumentException
- Specified by:
 setAsText in interface java.beans.PropertyEditor- Overrides:
 setAsText in class java.beans.PropertyEditorSupport
 
- Throws:
 java.lang.IllegalArgumentException
 
getJavaInitializationString
public java.lang.String getJavaInitializationString()
- Specified by:
 getJavaInitializationString in interface java.beans.PropertyEditor- Overrides:
 getJavaInitializationString in class java.beans.PropertyEditorSupport
 
 
getAsText
public java.lang.String getAsText()
- Specified by:
 getAsText in interface java.beans.PropertyEditor- Overrides:
 getAsText in class java.beans.PropertyEditorSupport