com.novell.db.object.bean
Class UserBeanMetaData

java.lang.Object
  extended by com.novell.sentinel.client.bean.BeanMetaData<UserBean>
      extended by com.novell.db.object.bean.UserBeanMetaData

public class UserBeanMetaData
extends BeanMetaData<UserBean>

An automatically-generated metadata class for the SentinelBean-derived class UserBean.

The bean metadata instance is needed as a constructor parameter for a BeanTransporter implementation.

See Also:
UserBean, SentinelBean, BeanTransporter

Field Summary
static String BEAN_NAME
          The "bean name" of this Sentinel data object type.
 
Fields inherited from class com.novell.sentinel.client.bean.BeanMetaData
LINK
 
Constructor Summary
protected UserBeanMetaData(String name, boolean isStandalone, Collection<BeanFieldMetaData> fieldMDs)
          Constructor for use by derived classes.
 
Method Summary
static Collection<BeanFieldMetaData> createFieldMDs()
          Create the collection of bean field metadata instances.
static UserBeanMetaData getInstance()
          Get the singleton instance of the bean metadata.
 UserBean newBean()
          Create a new instance of the associated SentinelBean-derived class.
 
Methods inherited from class com.novell.sentinel.client.bean.BeanMetaData
getBeanName, getFieldDefinition, getFieldDefinitions, getURLComponents, isStandalone, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BEAN_NAME

public static final String BEAN_NAME
The "bean name" of this Sentinel data object type. The value is "'"user"".

See Also:
Constant Field Values
Constructor Detail

UserBeanMetaData

protected UserBeanMetaData(String name,
                           boolean isStandalone,
                           Collection<BeanFieldMetaData> fieldMDs)
Constructor for use by derived classes. Normally this constructor will only be called by generated code.

Parameters:
name - The "bean name" of the Sentinel data object (e.g., "user").
isStandalone - Whether the bean type appears only as a field value of another bean type (false), or if the bean type is a first-class object (true).
fieldMDs - The collection of field metadata instances for the bean type.
Method Detail

getInstance

public static UserBeanMetaData getInstance()
Get the singleton instance of the bean metadata.

Returns:
The singleton instance of the bean metadata.

createFieldMDs

public static Collection<BeanFieldMetaData> createFieldMDs()
Create the collection of bean field metadata instances.

This method exists for use by generated code.


newBean

public UserBean newBean()
Create a new instance of the associated SentinelBean-derived class.

This method exists for use by infrastructure code. Calling the default constructor of the bean class is more straightforward in client code.

Specified by:
newBean in class BeanMetaData<UserBean>
Returns:
A newly-instantiated instance of the associated bean class.