All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.beans.samples.daps.sql.IsolationEditor

java.lang.Object
   |
   +----java.beans.PropertyEditorSupport
           |
           +----com.ibm.beans.samples.daps.sql.IsolationEditor

public class IsolationEditor
extends PropertyEditorSupport
The IsolationEditor implements a special case property editor for database isolation levels.

It is used by the ConnectionBeanInfo class.

See Also:
ConnectionBeanInfo

Variable Index

 o isolationStrings
Array of transaction isolation strings.
 o isolationValues
Array of transaction isolation values.

Constructor Index

 o IsolationEditor()
Default constructor.

Method Index

 o finalize()
Finalize this object.
 o getAsText()
Method to get the string representation of the current integer isolation value.
 o getTags()
Method to return the array of possible strings.
 o setAsText(String)
Method to set the isolation value and convert from text to integer.

Variables

 o isolationStrings
 protected static final transient String isolationStrings[]
Array of transaction isolation strings.

These are used in the setAsText and getAsText methods.

 o isolationValues
 protected static final transient int isolationValues[]
Array of transaction isolation values.

These are used in the setAsText and getAsText methods.

Constructors

 o IsolationEditor
 public IsolationEditor()
Default constructor.

Methods

 o finalize
 protected void finalize() throws Throwable
Finalize this object.

Throws: Throwable
Possibly thrown by the superclass.
Overrides:
finalize in class Object
 o getTags
 public String[] getTags()
Method to return the array of possible strings.

Returns:
The array of possible strings.
Overrides:
getTags in class PropertyEditorSupport
 o setAsText
 public void setAsText(String text) throws IllegalArgumentException
Method to set the isolation value and convert from text to integer.

Parameters:
text - The string representation of an isolation level.
Throws: IllegalArgumentException
Thrown if invalid isolation value
Overrides:
setAsText in class PropertyEditorSupport
 o getAsText
 public String getAsText()
Method to get the string representation of the current integer isolation value.

Returns:
The string representation of an isolation level.
Overrides:
getAsText in class PropertyEditorSupport

All Packages  Class Hierarchy  This Package  Previous  Next  Index