|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.commerce.foundation.EntityImpl | +--com.beasys.commerce.foundation.property.SchemaImpl
The Schema entity bean is used to define meta data about properties that can be set on a ConfigurableEntity. The primary key class of the Schema entity bean includes the schemaGroupName and the scopeName. The schemaGroupName serves as a namespace so that scopeNames can conveniently re-used for different application areas. Typically, the schemaGroupName is used to define the application area and the scopeName uniquely identifies the Schema within the application area. The Schema EJB provides the finder findBySchemaGroupName that returns the collection of all Schemas for a given schemaGroupName. The Schema entity bean used a Map of PropertyMetaData objects to store the meta data about properties. The names of the properties are the keys in the Map.
PropertyMetaData
,
Schema
,
SchemaHome
,
SchemaValue
, Serialized FormField Summary | |
java.lang.String |
description
A textual description for the Schema. |
SmartMapReference |
propertyMetaData
The Map of PropertyMetaData. |
java.lang.String |
schemaGroupName
Specifies the schema namespace for this Schema. |
long |
schemaId
Unique ID used for the relationship with PropertyMetaData. |
java.lang.String |
scopeName
Specifies the scopeName within the schemaGroupName for this Schema. |
Fields inherited from class com.beasys.commerce.foundation.EntityImpl |
__classIdentifier,
__containingEntity,
__mapKey,
__sequenceNumber,
_ctx,
_environmentNamingContext,
_environmentPropertyCache,
_isDirty,
_smartBMP |
Constructor Summary | |
SchemaImpl()
|
Method Summary | |
protected void |
bscInitializeAttributes(SchemaPk schemaPk)
|
void |
clearPropertyMetaData()
Removes all mappings from this map (optional operation). |
boolean |
containsKeyPropertyMetaData(java.lang.Object key)
Returns true if this map contains a mapping for the specified key. |
boolean |
containsValuePropertyMetaData(PropertyMetaData element)
Returns true if this map maps one or more keys to the specified value. |
void |
ejbActivate()
ejbActivate method. |
SchemaPk |
ejbCreate(SchemaPk schemaPk)
|
java.util.Enumeration |
ejbFindAll()
ejbFindAll method. |
SchemaPk |
ejbFindByPrimaryKey(SchemaPk pk)
|
java.util.Enumeration |
ejbFindBySchemaGroupName(java.lang.String schemaGroupName)
Finder method that returns the collection of Schema for a given schemaGroupName. |
void |
ejbLoad()
ejbLoad method. |
void |
ejbPassivate()
ejbPassivate method. |
void |
ejbPostCreate(SchemaPk schemaPk)
|
void |
ejbRemove()
ejbRemove method. |
void |
ejbStore()
ejbStore method. |
java.util.Set |
entrySetPropertyMetaData()
Returns a (deep copy) set view of the mappings contained in this map. |
boolean |
equalsPropertyMetaData(java.lang.Object object)
Compares the specified object with this map for equality. |
java.util.Map |
getAllPropertyMetaData()
Returns a deep copy of the entire collection |
java.lang.String |
getDescription()
Get the value of description |
PropertyMetaData |
getPropertyMetaData(java.lang.Object key)
Returns the value to which this map maps the specified key. |
SmartMapReference |
getPropertyMetaDataReference()
Get the SmartMapReference for propertyMetaData |
SchemaValue |
getSchemaByValue()
Get all of Schema's attributes. |
java.lang.String |
getSchemaGroupName()
|
long |
getSchemaId()
Get the value of schemaId. |
java.lang.String |
getScopeName()
|
int |
hashCodePropertyMetaData()
Returns the hash code value for this map. |
boolean |
isEmptyPropertyMetaData()
Returns true if this map contains no key-value mappings. |
java.util.Iterator |
iteratorPropertyMetaData()
Returns a (shallow) iterator for this map |
java.util.Set |
keySetPropertyMetaData()
Returns a (deep copy) set view of the keys contained in this map. |
void |
putAllPropertyMetaData(java.util.Map map)
Copies all of the mappings from the specified map to this map (optional operation). |
PropertyMetaData |
putPropertyMetaData(java.lang.Object key,
PropertyMetaData element)
Associates the specified value with the specified key in this map (optional operation). |
PropertyMetaData |
removePropertyMetaData(java.lang.Object key)
Removes the mapping for this key from this map if present (optional operation). |
void |
setAllPropertyMetaData(java.util.Map map)
Sets the entire collection |
void |
setDescription(java.lang.String description)
Set the value of description |
void |
setEntityContext(javax.ejb.EntityContext ctx)
setEntityContext method. |
void |
setPropertyMetaDataReference(SmartMapReference smartMapReference)
Set the SmartCollectionReference for propertyMetaData |
void |
setSchemaByValue(SchemaValue value)
Set all of Schema's attributes to the passed in value. |
void |
setSchemaGroupName(java.lang.String value)
|
void |
setSchemaId(long schemaId)
Set the value of schemaId. |
void |
setScopeName(java.lang.String value)
|
int |
sizePropertyMetaData()
Returns the number of key-value mappings in this map. |
void |
unsetEntityContext()
unsetEntityContext method. |
java.util.Collection |
valuesPropertyMetaData()
Returns a (deep copy) collection view of the values contained in this map. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public java.lang.String schemaGroupName
public java.lang.String scopeName
public java.lang.String description
public SmartMapReference propertyMetaData
public long schemaId
Constructor Detail |
public SchemaImpl()
Method Detail |
public SchemaValue getSchemaByValue()
public void setSchemaByValue(SchemaValue value)
SchemaValue
- the Schema value objectpublic SchemaPk ejbCreate(SchemaPk schemaPk) throws javax.ejb.CreateException
protected void bscInitializeAttributes(SchemaPk schemaPk) throws javax.ejb.CreateException
public void ejbPostCreate(SchemaPk schemaPk) throws javax.ejb.CreateException
public void ejbLoad() throws javax.ejb.EJBException
public void ejbStore() throws javax.ejb.EJBException
public void ejbRemove() throws javax.ejb.RemoveException
public void ejbActivate() throws javax.ejb.EJBException
public void ejbPassivate() throws javax.ejb.EJBException
public void setEntityContext(javax.ejb.EntityContext ctx) throws javax.ejb.EJBException
public void unsetEntityContext() throws javax.ejb.EJBException
public SchemaPk ejbFindByPrimaryKey(SchemaPk pk) throws javax.ejb.FinderException
public java.util.Enumeration ejbFindAll() throws javax.ejb.FinderException
public java.lang.String getSchemaGroupName()
public void setSchemaGroupName(java.lang.String value)
public java.lang.String getScopeName()
public void setScopeName(java.lang.String value)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- description to be addedpublic SmartMapReference getPropertyMetaDataReference()
public void setPropertyMetaDataReference(SmartMapReference smartMapReference)
public java.util.Map getAllPropertyMetaData()
public void setAllPropertyMetaData(java.util.Map map)
public java.util.Iterator iteratorPropertyMetaData()
public void clearPropertyMetaData()
public boolean containsKeyPropertyMetaData(java.lang.Object key)
public boolean containsValuePropertyMetaData(PropertyMetaData element)
public java.util.Set entrySetPropertyMetaData()
public boolean equalsPropertyMetaData(java.lang.Object object)
public PropertyMetaData getPropertyMetaData(java.lang.Object key)
public int hashCodePropertyMetaData()
public boolean isEmptyPropertyMetaData()
public java.util.Set keySetPropertyMetaData()
public PropertyMetaData putPropertyMetaData(java.lang.Object key, PropertyMetaData element)
public void putAllPropertyMetaData(java.util.Map map)
public PropertyMetaData removePropertyMetaData(java.lang.Object key)
public int sizePropertyMetaData()
public java.util.Collection valuesPropertyMetaData()
public long getSchemaId()
public void setSchemaId(long schemaId)
schemaId
- schemaId to be added.public java.util.Enumeration ejbFindBySchemaGroupName(java.lang.String schemaGroupName) throws javax.ejb.FinderException
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |