net.sourceforge.pbeans
Class AbstractStoreInfo

java.lang.Object
  extended by net.sourceforge.pbeans.AbstractStoreInfo
All Implemented Interfaces:
StoreInfo

Deprecated. Use PersistentClass annotations instead.

public abstract class AbstractStoreInfo
extends java.lang.Object
implements StoreInfo

Abstract implementation of StoreInfo.


Constructor Summary
protected AbstractStoreInfo(java.lang.Class clazz)
          Deprecated. Constucts an instance of AbstractStoreInfo.
 
Method Summary
 java.lang.Object create(Store store)
          Deprecated. Creates an instance of the class passed to the constructor of this AbstractStoreInfo instance.
 java.lang.Class getBeanClass()
          Deprecated.  
 java.lang.ClassLoader getClassLoader()
          Deprecated. Gets a class loader which may be used to find the underlying StoreInfo class.
 FieldDescriptor getFieldDescriptor(Store store, java.beans.PropertyDescriptor pd)
          Deprecated. Gets a field descriptor for a property if its compile-time type is a primitive type, a boxed primitive type, String, java.util.Date, java.sql.Date, java.sql.Timestamp, java.sql.Time, byte[], or Persistent.
 java.lang.String getIdField()
          Deprecated.  
 Index[] getIndexes(Store store)
          Deprecated. Returns non-unique Index instances for all JavaBean properties that are persisted except those of type BLOB.
 java.beans.PropertyDescriptor getPropertyDescriptor(java.lang.String propertyName)
          Deprecated. Obtains the PropertyDescriptor for a property name.
 java.beans.PropertyDescriptor getPropertyDescriptorByNormalFieldName(Store store, java.lang.String normalFieldName)
          Deprecated.  
 java.beans.PropertyDescriptor[] getPropertyDescriptors()
          Deprecated.  
 java.lang.String getTableName(int maxLength)
          Deprecated. Gets the requested table name.
 boolean isAutoIncrementRequested()
          Deprecated.  
 boolean isDeleteFields()
          Deprecated.  
 boolean isUserManaged()
          Deprecated. Gets a boolean value indicating whether table creation and alteration is user-managed as opposed to automatic.
 java.lang.Object marshallValue(java.beans.PropertyDescriptor pd, java.lang.Object value)
          Deprecated. Marshalls a property value except for any of type Persistent.
 java.lang.Object unmarshallValue(java.beans.PropertyDescriptor pd, java.lang.Object fieldValue)
          Deprecated. Unarshalls a field value except for any of type Persistent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractStoreInfo

protected AbstractStoreInfo(java.lang.Class clazz)
Deprecated. 
Constucts an instance of AbstractStoreInfo.

Parameters:
clazz - A class assignable to Persistent.
Method Detail

getBeanClass

public java.lang.Class getBeanClass()
Deprecated. 
Specified by:
getBeanClass in interface StoreInfo

getIdField

public java.lang.String getIdField()
Deprecated. 
Specified by:
getIdField in interface StoreInfo

getPropertyDescriptors

public java.beans.PropertyDescriptor[] getPropertyDescriptors()
Deprecated. 
Specified by:
getPropertyDescriptors in interface StoreInfo

isDeleteFields

public boolean isDeleteFields()
Deprecated. 
Specified by:
isDeleteFields in interface StoreInfo

getPropertyDescriptorByNormalFieldName

public java.beans.PropertyDescriptor getPropertyDescriptorByNormalFieldName(Store store,
                                                                            java.lang.String normalFieldName)
Deprecated. 
Specified by:
getPropertyDescriptorByNormalFieldName in interface StoreInfo

isAutoIncrementRequested

public boolean isAutoIncrementRequested()
Deprecated. 
Specified by:
isAutoIncrementRequested in interface StoreInfo

isUserManaged

public boolean isUserManaged()
Deprecated. 
Description copied from interface: StoreInfo
Gets a boolean value indicating whether table creation and alteration is user-managed as opposed to automatic.

Specified by:
isUserManaged in interface StoreInfo

getTableName

public java.lang.String getTableName(int maxLength)
Deprecated. 
Gets the requested table name. Note that this implementation of getTableName() caches the name for subsequent calls, regardless of the maxLength value.

Specified by:
getTableName in interface StoreInfo
Parameters:
maxLength - The maximum table name length

getPropertyDescriptor

public java.beans.PropertyDescriptor getPropertyDescriptor(java.lang.String propertyName)
Deprecated. 
Description copied from interface: StoreInfo
Obtains the PropertyDescriptor for a property name. Results of this method must be consistent with BeanInfo.

Specified by:
getPropertyDescriptor in interface StoreInfo

create

public java.lang.Object create(Store store)
                        throws StoreException
Deprecated. 
Creates an instance of the class passed to the constructor of this AbstractStoreInfo instance. The class is expected to have a default public constructor.

Specified by:
create in interface StoreInfo
Throws:
StoreException

getFieldDescriptor

public FieldDescriptor getFieldDescriptor(Store store,
                                          java.beans.PropertyDescriptor pd)
Deprecated. 
Gets a field descriptor for a property if its compile-time type is a primitive type, a boxed primitive type, String, java.util.Date, java.sql.Date, java.sql.Timestamp, java.sql.Time, byte[], or Persistent. For any other types, this method returns null.

Specified by:
getFieldDescriptor in interface StoreInfo

marshallValue

public java.lang.Object marshallValue(java.beans.PropertyDescriptor pd,
                                      java.lang.Object value)
                               throws StoreException
Deprecated. 
Description copied from interface: StoreInfo
Marshalls a property value except for any of type Persistent. The resulting object is passed to JDBC.

Specified by:
marshallValue in interface StoreInfo
Throws:
StoreException

unmarshallValue

public java.lang.Object unmarshallValue(java.beans.PropertyDescriptor pd,
                                        java.lang.Object fieldValue)
                                 throws StoreException
Deprecated. 
Description copied from interface: StoreInfo
Unarshalls a field value except for any of type Persistent. A Persistent property is set with the resulting object value.

Specified by:
unmarshallValue in interface StoreInfo
Throws:
StoreException

getIndexes

public Index[] getIndexes(Store store)
                   throws StoreException
Deprecated. 
Returns non-unique Index instances for all JavaBean properties that are persisted except those of type BLOB.

Specified by:
getIndexes in interface StoreInfo
Throws:
StoreException

getClassLoader

public java.lang.ClassLoader getClassLoader()
Deprecated. 
Description copied from interface: StoreInfo
Gets a class loader which may be used to find the underlying StoreInfo class.

Specified by:
getClassLoader in interface StoreInfo