API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.beans. DefaultPersistenceDelegate View Source
Author(s)
Philip Milne
Since
1.4
Version
1.21 02/21/07
Serial
Hierarchy
 Object
      PersistenceDelegate
          DefaultPersistenceDelegate
Implements
Subclasses
Description
public class DefaultPersistenceDelegate
  The DefaultPersistenceDelegate is a concrete implementation of the abstract PersistenceDelegate class and is the delegate used by default for classes about which no information is available.
Constructors
public DefaultPersistenceDelegate ()
  Creates a persistence delegate for a class with a nullary constructor.
public DefaultPersistenceDelegate (String constructorPropertyNames)
  Creates a default persistence delegate for a class with a constructor whose arguments are the values of the property names as specified by constructorPropertyNames.
Methods
Hide/Show inherited methods
protected void initialize (Class<Object> type, Object oldInstance, Object newInstance, Encoder out) [Overrides PersistenceDelegate]
  This default implementation of the initialize method assumes all state held in objects of this type is exposed via the matching pairs of "setter" and "getter" methods in the order they are returned by the Introspector.
protected Expression instantiate (Object oldInstance, Encoder out) [Specified in PersistenceDelegate]
  This default implementation of the instantiate method returns an expression containing the predefined method name "new" which denotes a call to a constructor with the arguments as specified in the DefaultPersistenceDelegate's constructor.
pack-privatestatic void invokeStatement (Object instance, String methodName, Object args, Encoder out)
protected boolean mutatesTo (Object oldInstance, Object newInstance) [Overrides PersistenceDelegate]
  If the number of arguments in the specified constructor is non-zero and the class of oldInstance explicitly declares an "equals" method this method returns the value of oldInstance.equals(newInstance).
public void writeObject (Object oldInstance, Encoder out) [Inherited From PersistenceDelegate]
  The writeObject is a single entry point to the persistence and is used by a Encoder in the traditional mode of delegation.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar