|
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.axiom.document.fast.FastContentImpl
An implementation of the content interface that is not an EJB.
When creating these, do not use the setProperty() methods, as those
either raise an UnsupportedException or no-op. Instead, use the
putProperty
method, using the String name of the
attribute (i.e. "identifier", "mimeType", etc.) as the key and the
appropiate data type as the value.
Inner Class Summary | |
static class |
FastContentImpl.PublicContentValue
Little inner class because ContentValue constructor is not public. |
Field Summary | |
protected java.util.Map |
properties
The hash map of properties. |
static int |
PROPERTY_CASE_LOWER
Constant for lower case property keys. |
static int |
PROPERTY_CASE_NONE
Constant for no modification to property keys. |
static int |
PROPERTY_CASE_UPPER
Constant for upper case property keys. |
protected int |
propertyCase
How this object modifies property keys. |
Fields inherited from interface com.beasys.commerce.foundation.ConfigurableEntity |
RESERVED_SCOPE_NAME |
Constructor Summary | |
FastContentImpl()
Constructor. |
|
FastContentImpl(int propertyCase)
Constructor. |
Method Summary | |
void |
addBusinessPolicy(java.lang.String aString,
BusinessPolicy aPolicy)
This method is not supported. |
void |
addPropertyValue(java.lang.String aString,
java.lang.String aString2,
java.lang.Object anObject)
This method does nothing. |
void |
addPropertyValueMapped(java.lang.String aString,
java.lang.String aString2,
java.lang.String aString3,
java.lang.Object anObject)
This method does nothing. |
java.lang.String |
get__classIdentifier()
This method is not supported. |
Belonging |
get__containingBelonging()
This method is not supported. |
javax.ejb.EJBObject |
get__containingEntity()
This method is not supported. |
java.lang.Object |
get__mapKey()
This method is not supported. |
java.lang.Long |
get__sequenceNumber()
This method is not supported. |
BusinessPolicy |
getBusinessPolicy(java.lang.String aString)
This method is not supported. |
ContentValue |
getContentByValue()
Return the content value object. |
javax.ejb.EJBHome |
getEJBHome()
This method is not supported. |
javax.ejb.Handle |
getHandle()
This method is not supported. |
java.lang.String |
getIdentifier()
Get the identifier for the content object. |
java.lang.String |
getMimeType()
Get the mime type of the content object. |
PersistableHandle |
getPersistableHandle()
This method is not supported. |
java.lang.Object |
getPrimaryKey()
Creates a ContentPk from the identifier. |
java.lang.Object |
getProperty(java.lang.String aKey,
java.lang.Object aDefault)
Returns the property value. |
java.lang.Object |
getProperty(java.lang.String aScopeName,
java.lang.String aKey,
ConfigurableEntity successor,
java.lang.Object aDefault)
Retrieves a property value. |
java.lang.String |
getPropertyAsString(java.lang.String aKey,
java.lang.String aDefault)
Returns the property value. |
java.lang.String |
getPropertyAsString(java.lang.String aScope,
java.lang.String aKey,
ConfigurableEntity entity,
java.lang.String aDefault)
Returns the property value. |
int |
getPropertyCase()
Get the case of property keys for this Content. |
java.lang.Object |
getPropertyDefault(java.lang.String scopeName,
java.lang.String key,
ConfigurableEntity successor)
This method returns null. |
java.lang.Object |
getPropertyNoDefault(java.lang.String scopeName,
java.lang.String key,
ConfigurableEntity successor)
Return the property value. |
ConfigurableEntity |
getSuccessor(java.lang.String aString)
This method is not supported. |
long |
getUniqueId()
This method is not supported. |
boolean |
isIdentical(javax.ejb.EJBObject ob)
Checks if ob is == to this. |
void |
putProperty(java.lang.String key,
java.lang.Object val)
Assign a value to a property. |
void |
remove()
This method is not supported. |
BusinessPolicy |
removeBusinessPolicy(java.lang.String aString)
This method is not supported. |
java.lang.Object |
removeProperty(java.lang.String aString)
This method does nothing. |
java.lang.Object |
removeProperty(java.lang.String aString,
java.lang.String aString2)
This method does nothing. |
java.lang.Object |
removePropertyValue(java.lang.String aString,
java.lang.String aString2,
java.lang.Object anObject)
This method does nothing. |
java.lang.Object |
removePropertyValueMapped(java.lang.String aString,
java.lang.String aString2,
java.lang.String aString3)
This method does nothing. |
ConfigurableEntity |
removeSuccessor(java.lang.String str)
This method is not supported. |
void |
set__containingBelonging(Belonging aBelonging)
This method is not supported. |
void |
set__containingEntity(javax.ejb.EJBObject ob)
This method is not supported. |
void |
set__mapKey(java.lang.Object anObject)
This method is not supported. |
void |
setContentByValue(ContentValue val)
This method does nothing. |
void |
setMimeType(java.lang.String mimeType)
Set the mime type of the document object. |
void |
setProperty(java.lang.String aString,
java.lang.Object anObject)
This method does nothing. |
void |
setProperty(java.lang.String aString,
java.lang.String aString2,
java.lang.Object anObject)
This method does nothing. |
void |
setPropertyCase(int propertyCase)
Set the case of property keys for this Content. |
void |
setSuccessor(java.lang.String aString,
ConfigurableEntity entity)
This method is not supported. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static int PROPERTY_CASE_NONE
public static int PROPERTY_CASE_LOWER
public static int PROPERTY_CASE_UPPER
protected int propertyCase
This value should one of: PROPERTY_CASE_NONE, PROPERTY_CASE_LOWER, or PROPERTY_CASE_UPPER.
When an attribute is set with putProperty(java.lang.String, java.lang.Object)
, the key will be
modified based upon what this is set to.
protected java.util.Map properties
Constructor Detail |
public FastContentImpl()
public FastContentImpl(int propertyCase)
propertyCase
- the case of property key for this
(PROPERTY_CASE_NONE, PROPERTY_CASE_LOWER, PROPERTY_CASE_UPPER).Method Detail |
public void putProperty(java.lang.String key, java.lang.Object val)
This obeys the current propertyCase
setting.
key
- the property name.val
- the value (null to remove).public int getPropertyCase()
This value should one of: PROPERTY_CASE_NONE, PROPERTY_CASE_LOWER, or PROPERTY_CASE_UPPER.
public void setPropertyCase(int propertyCase)
This value should one of: PROPERTY_CASE_NONE, PROPERTY_CASE_LOWER, or PROPERTY_CASE_UPPER.
public java.lang.Object getProperty(java.lang.String aScopeName, java.lang.String aKey, ConfigurableEntity successor, java.lang.Object aDefault)
This is the driving get method. All other getters should call this one.
scopeName
- ignored.key
- The property namesuccessor
- ignored.defaultValue
- the default value to return if the property is
not found anywhere.public void addBusinessPolicy(java.lang.String aString, BusinessPolicy aPolicy) throws java.lang.UnsupportedOperationException
public void addPropertyValue(java.lang.String aString, java.lang.String aString2, java.lang.Object anObject)
scopeName
- The name of the scope.key
- The name to associate the collection of values with.propertyValue
- The value to associate with the key and scope.public void addPropertyValueMapped(java.lang.String aString, java.lang.String aString2, java.lang.String aString3, java.lang.Object anObject)
scopeName
- The name of the scope.propertykey
- The name to associate the map object with.mappedkey
- The map key to associate the value in the map.propertyValue
- The value put in the map for the map key.public BusinessPolicy getBusinessPolicy(java.lang.String aString) throws java.lang.UnsupportedOperationException
public javax.ejb.EJBHome getEJBHome() throws java.lang.UnsupportedOperationException
public javax.ejb.Handle getHandle() throws java.lang.UnsupportedOperationException
public PersistableHandle getPersistableHandle() throws java.lang.UnsupportedOperationException
public java.lang.Object getPrimaryKey()
public java.lang.Object getProperty(java.lang.String aKey, java.lang.Object aDefault)
getProperty(java.lang.String, java.lang.String, com.beasys.commerce.foundation.ConfigurableEntity, java.lang.Object)
public java.lang.String getPropertyAsString(java.lang.String aScope, java.lang.String aKey, ConfigurableEntity entity, java.lang.String aDefault)
getProperty(java.lang.String, java.lang.String, com.beasys.commerce.foundation.ConfigurableEntity, java.lang.Object)
public java.lang.String getPropertyAsString(java.lang.String aKey, java.lang.String aDefault)
getPropertyAsString(java.lang.String, java.lang.String, com.beasys.commerce.foundation.ConfigurableEntity, java.lang.String)
public java.lang.Object getPropertyDefault(java.lang.String scopeName, java.lang.String key, ConfigurableEntity successor)
scopeName
- The name of the scope.key
- The name of the property to retrieve.successor
- The explicit successor to use for sucessor hiearchy
search if the entity does not have the property defined.public java.lang.Object getPropertyNoDefault(java.lang.String scopeName, java.lang.String key, ConfigurableEntity successor)
getProperty(java.lang.String, java.lang.String, com.beasys.commerce.foundation.ConfigurableEntity, java.lang.Object)
public ConfigurableEntity getSuccessor(java.lang.String aString) throws java.lang.UnsupportedOperationException
scopeName
- The name of the scope.public long getUniqueId() throws java.lang.UnsupportedOperationException
public java.lang.String get__classIdentifier() throws java.lang.UnsupportedOperationException
public javax.ejb.EJBObject get__containingEntity() throws java.lang.UnsupportedOperationException
public java.lang.Object get__mapKey() throws java.lang.UnsupportedOperationException
public boolean isIdentical(javax.ejb.EJBObject ob)
public void remove() throws javax.ejb.RemoveException
public BusinessPolicy removeBusinessPolicy(java.lang.String aString) throws java.lang.UnsupportedOperationException
public java.lang.Object removeProperty(java.lang.String aString)
key
- The name of the property to remove.public java.lang.Object removeProperty(java.lang.String aString, java.lang.String aString2)
scopeName
- The name of the scope.key
- The name of the property to remove.public java.lang.Object removePropertyValue(java.lang.String aString, java.lang.String aString2, java.lang.Object anObject)
scopeName
- The name of the scope.key
- The name of the property that is associated
with the collection of values.propertyValue
- The object to remove from the collection.public java.lang.Object removePropertyValueMapped(java.lang.String aString, java.lang.String aString2, java.lang.String aString3)
scopeName
- The name of the scope.propertykey
- The name of the property that is associated
with the map.propertyValue
- The map key of the object to remove from the map.public void setProperty(java.lang.String aString, java.lang.Object anObject)
name
- The name to associate the value with.value
- The value to associate with the name.public void setProperty(java.lang.String aString, java.lang.String aString2, java.lang.Object anObject)
scopeName
- The name of the scope.name
- The name to associate the value with.value
- The value to associate with the name.public void setSuccessor(java.lang.String aString, ConfigurableEntity entity) throws java.lang.UnsupportedOperationException
scopeName
- The name of the scope.successor
- The scope-level successor used during the
search of a property.public void set__containingEntity(javax.ejb.EJBObject ob) throws java.lang.UnsupportedOperationException
public void set__mapKey(java.lang.Object anObject) throws java.lang.UnsupportedOperationException
public void set__containingBelonging(Belonging aBelonging) throws java.lang.UnsupportedOperationException
public Belonging get__containingBelonging() throws java.lang.UnsupportedOperationException
public java.lang.Long get__sequenceNumber() throws java.lang.UnsupportedOperationException
public ConfigurableEntity removeSuccessor(java.lang.String str) throws java.lang.UnsupportedOperationException
scopeName
- The name of the scope.public ContentValue getContentByValue()
public void setContentByValue(ContentValue val)
ContentValue
- the Content value objectpublic java.lang.String getIdentifier()
public java.lang.String getMimeType()
public void setMimeType(java.lang.String mimeType)
mimeType
- mimeType to be added
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |