public class DefaultPersistenceDelegate extends PersistenceDelegate
This PersistenceDelegate assumes that the bean to be made persistent has a default constructor that takes no parameters or a constructor that takes some properties as its parameters. Only the properties that can be got or set based on the knowledge gained through an introspection will be made persistent. In the case that a bean is constructed with some properties, the value of these properties should be available via the conventional getter method.
Encoder
Constructor and Description |
---|
DefaultPersistenceDelegate()
Constructs a
DefaultPersistenceDelegate instance that
supports the persistence of a bean which has a default constructor. |
DefaultPersistenceDelegate(String[] propertyNames)
Constructs a
DefaultPersistenceDelegate instance that
supports the persistence of a bean which is constructed with some
properties. |
public DefaultPersistenceDelegate()
DefaultPersistenceDelegate
instance that
supports the persistence of a bean which has a default constructor.public DefaultPersistenceDelegate(String[] propertyNames)
DefaultPersistenceDelegate
instance that
supports the persistence of a bean which is constructed with some
properties.propertyNames
- the name of the properties that are taken as parameters by the
bean's constructorCopyright © 2013. All Rights Reserved.