Class symantec.itools.db.beans.binding.DefaultPersistentObjectMemberModel
All Packages Class Hierarchy This Package Previous Next Index
Class symantec.itools.db.beans.binding.DefaultPersistentObjectMemberModel
Object
|
+----symantec.itools.db.beans.binding.DefaultPersistentObjectMemberModel
- public class DefaultPersistentObjectMemberModel
- extends Object
- implements ExtendedPersistentObjectMemberModel, Serializable
This class is the default implementation of PersistentObjectMemberModel interface.
- Version:
- 1.0 07/23/98
- Author:
- Hristo Tonev
-
PROP_DATA_TYPE
-
-
PROP_INDEX
-
-
PROP_NAME
-
-
PROP_TYPE
-
-
PROP_WRITABLE
-
-
changeSupport
-
-
dataType
- Identify the SQL data type.
-
index
- The parameter/column index is 1-based.
-
name
- A human readable name
-
type
- The parameter type.
-
vetoableChangeSupport
-
-
writable
-
-
symantec.itools.db.beans.binding.DefaultPersistentObjectMemberModel()
- Default Constructor
-
symantec.itools.db.beans.binding.DefaultPersistentObjectMemberModel(DefaultPersistentObjectMemberModel)
- Copy Constructor
-
addPropertyChangeListener(PropertyChangeListener)
- Add a PropertyChangeListener to the listener list.
-
addVetoableChangeListener(VetoableChangeListener)
- Add a VetoableChangeListener to the listener list.
-
firePropertyChange(String, Object, Object)
- Support for reporting bound property changes.
-
fireVetoableChange(String, Object, Object)
- Support for reporting constrained property changes.
-
getDataType()
-
-
getIndex()
-
-
getName()
-
-
getType()
-
-
isWritable()
-
-
removePropertyChangeListener(PropertyChangeListener)
- Remove a PropertyChangeListener from the listener list.
-
removeVetoableChangeListener(VetoableChangeListener)
- Remove a VetoableChangeListener from the listener list.
-
setDataType(int)
-
-
setIndex(int)
-
-
setName(String)
-
-
setType(int)
-
-
setWritable(boolean)
-
PROP_DATA_TYPE
public static final java.lang.String PROP_DATA_TYPE
PROP_INDEX
public static final java.lang.String PROP_INDEX
PROP_NAME
public static final java.lang.String PROP_NAME
PROP_TYPE
public static final java.lang.String PROP_TYPE
PROP_WRITABLE
public static final java.lang.String PROP_WRITABLE
changeSupport
protected java.beans.PropertyChangeSupport changeSupport
dataType
protected int dataType
- Identify the SQL data type. The possible values are the constants from
java.sql.Types
index
protected int index
- The parameter/column index is 1-based.
If there is a "procedure return value" then its index will be 1
and the first procedure parameter will have index 2.
If there is not a "procedure return value" then
the first procedure parameter will have index 1.
For a "result column in ResultSet" the index value is the
column index within the result set.
The parameter indeces must be unique. The same is true
for the result set column indeces.
But a parameter and a result set column can have the same index.
name
protected java.lang.String name
- A human readable name
type
protected int type
- The parameter type. The possible values are:
IN parameter.
INOUT parameter.
OUT parameter
procedure return value
result column in ResultSet
vetoableChangeSupport
protected java.beans.VetoableChangeSupport vetoableChangeSupport
writable
protected boolean writable
-
DefaultPersistentObjectMemberModel
public DefaultPersistentObjectMemberModel()
- Default Constructor
DefaultPersistentObjectMemberModel
public DefaultPersistentObjectMemberModel(DefaultPersistentObjectMemberModel obj)
- Copy Constructor
addPropertyChangeListener
public synchronized void addPropertyChangeListener(PropertyChangeListener listener)
- Add a PropertyChangeListener to the listener list.
The listener is registered for all properties.
- Parameters:
- listener - The PropertyChangeListener to be added
addVetoableChangeListener
public synchronized void addVetoableChangeListener(VetoableChangeListener listener)
- Add a VetoableChangeListener to the listener list.
The listener is registered for all properties.
- Parameters:
- listener - The VetoableChangeListener to be added
firePropertyChange
protected void firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
- Support for reporting bound property changes. This method can be called
when a bound property has changed and it will send the appropriate
PropertyChangeEvent to any registered PropertyChangeListeners.
fireVetoableChange
protected void fireVetoableChange(String propertyName,
Object oldValue,
Object newValue) throws PropertyVetoException
- Support for reporting constrained property changes. This method can be called
when a constrained property has changed and it will send the appropriate
PropertyChangeEvent to any registered VetoableChangeListeners.
- Throws: PropertyVetoException
- when the attempt to set the property is vetoed
by the receiver.
getDataType
public int getDataType()
getIndex
public int getIndex()
getName
public java.lang.String getName()
getType
public int getType()
isWritable
public boolean isWritable()
removePropertyChangeListener
public synchronized void removePropertyChangeListener(PropertyChangeListener listener)
- Remove a PropertyChangeListener from the listener list.
This removes a PropertyChangeListener that was registered
for all properties.
- Parameters:
- listener - The PropertyChangeListener to be removed
removeVetoableChangeListener
public synchronized void removeVetoableChangeListener(VetoableChangeListener listener)
- Remove a VetoableChangeListener from the listener list.
This removes a VetoableChangeListener that was registered
for all properties.
- Parameters:
- listener - The VetoableChangeListener to be removed
setDataType
public void setDataType(int newDataType)
setIndex
public void setIndex(int newIndex)
setName
public void setName(String newName)
setType
public void setType(int newType)
setWritable
public void setWritable(boolean newWritable)
All Packages Class Hierarchy This Package Previous Next Index