BEA Systems, Inc.

com.beasys.commerce.axiom.document.fast
Class FastContentImpl

java.lang.Object
  |
  +--com.beasys.commerce.axiom.document.fast.FastContentImpl
Direct Known Subclasses:
FastDocumentImpl

public class FastContentImpl
extends java.lang.Object
implements Content

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.

Since:
2.0.1 sp1
See Also:
Serialized Form

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

PROPERTY_CASE_NONE

public static int PROPERTY_CASE_NONE
Constant for no modification to property keys.

PROPERTY_CASE_LOWER

public static int PROPERTY_CASE_LOWER
Constant for lower case property keys.

PROPERTY_CASE_UPPER

public static int PROPERTY_CASE_UPPER
Constant for upper case property keys.

propertyCase

protected int propertyCase
How this object modifies property keys.

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.


properties

protected java.util.Map properties
The hash map of properties.
Constructor Detail

FastContentImpl

public FastContentImpl()
Constructor.

FastContentImpl

public FastContentImpl(int propertyCase)
Constructor.
Parameters:
propertyCase - the case of property key for this (PROPERTY_CASE_NONE, PROPERTY_CASE_LOWER, PROPERTY_CASE_UPPER).
Method Detail

putProperty

public void putProperty(java.lang.String key,
                        java.lang.Object val)
Assign a value to a property.

This obeys the current propertyCase setting.

Parameters:
key - the property name.
val - the value (null to remove).

getPropertyCase

public int getPropertyCase()
Get the case of property keys for this Content.

This value should one of: PROPERTY_CASE_NONE, PROPERTY_CASE_LOWER, or PROPERTY_CASE_UPPER.


setPropertyCase

public void setPropertyCase(int propertyCase)
Set the case of property keys for this Content.

This value should one of: PROPERTY_CASE_NONE, PROPERTY_CASE_LOWER, or PROPERTY_CASE_UPPER.


getProperty

public java.lang.Object getProperty(java.lang.String aScopeName,
                                    java.lang.String aKey,
                                    ConfigurableEntity successor,
                                    java.lang.Object aDefault)
Retrieves a property value.

This is the driving get method. All other getters should call this one.

Parameters:
scopeName - ignored.
key - The property name
successor - ignored.
defaultValue - the default value to return if the property is not found anywhere.
Returns:
the property value

addBusinessPolicy

public void addBusinessPolicy(java.lang.String aString,
                              BusinessPolicy aPolicy)
                       throws java.lang.UnsupportedOperationException
This method is not supported.

addPropertyValue

public void addPropertyValue(java.lang.String aString,
                             java.lang.String aString2,
                             java.lang.Object anObject)
This method does nothing.
Tags copied from interface: ConfigurableEntity
Parameters:
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.

addPropertyValueMapped

public void addPropertyValueMapped(java.lang.String aString,
                                   java.lang.String aString2,
                                   java.lang.String aString3,
                                   java.lang.Object anObject)
This method does nothing.
Tags copied from interface: ConfigurableEntity
Parameters:
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.

getBusinessPolicy

public BusinessPolicy getBusinessPolicy(java.lang.String aString)
                                 throws java.lang.UnsupportedOperationException
This method is not supported.

getEJBHome

public javax.ejb.EJBHome getEJBHome()
                             throws java.lang.UnsupportedOperationException
This method is not supported.

getHandle

public javax.ejb.Handle getHandle()
                           throws java.lang.UnsupportedOperationException
This method is not supported.

getPersistableHandle

public PersistableHandle getPersistableHandle()
                                       throws java.lang.UnsupportedOperationException
This method is not supported.

getPrimaryKey

public java.lang.Object getPrimaryKey()
Creates a ContentPk from the identifier.

getProperty

public java.lang.Object getProperty(java.lang.String aKey,
                                    java.lang.Object aDefault)
Returns the property value.
See Also:
getProperty(java.lang.String, java.lang.String, com.beasys.commerce.foundation.ConfigurableEntity, java.lang.Object)

getPropertyAsString

public java.lang.String getPropertyAsString(java.lang.String aScope,
                                            java.lang.String aKey,
                                            ConfigurableEntity entity,
                                            java.lang.String aDefault)
Returns the property value.
See Also:
getProperty(java.lang.String, java.lang.String, com.beasys.commerce.foundation.ConfigurableEntity, java.lang.Object)

getPropertyAsString

public java.lang.String getPropertyAsString(java.lang.String aKey,
                                            java.lang.String aDefault)
Returns the property value.
See Also:
getPropertyAsString(java.lang.String, java.lang.String, com.beasys.commerce.foundation.ConfigurableEntity, java.lang.String)

getPropertyDefault

public java.lang.Object getPropertyDefault(java.lang.String scopeName,
                                           java.lang.String key,
                                           ConfigurableEntity successor)
This method returns null.
Tags copied from interface: ConfigurableEntity
Parameters:
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.

getPropertyNoDefault

public java.lang.Object getPropertyNoDefault(java.lang.String scopeName,
                                             java.lang.String key,
                                             ConfigurableEntity successor)
Return the property value.
See Also:
getProperty(java.lang.String, java.lang.String, com.beasys.commerce.foundation.ConfigurableEntity, java.lang.Object)

getSuccessor

public ConfigurableEntity getSuccessor(java.lang.String aString)
                                throws java.lang.UnsupportedOperationException
This method is not supported.
Tags copied from interface: ConfigurableEntity
Parameters:
scopeName - The name of the scope.

getUniqueId

public long getUniqueId()
                 throws java.lang.UnsupportedOperationException
This method is not supported.

get__classIdentifier

public java.lang.String get__classIdentifier()
                                      throws java.lang.UnsupportedOperationException
This method is not supported.

get__containingEntity

public javax.ejb.EJBObject get__containingEntity()
                                          throws java.lang.UnsupportedOperationException
This method is not supported.

get__mapKey

public java.lang.Object get__mapKey()
                             throws java.lang.UnsupportedOperationException
This method is not supported.

isIdentical

public boolean isIdentical(javax.ejb.EJBObject ob)
Checks if ob is == to this.

remove

public void remove()
            throws javax.ejb.RemoveException
This method is not supported.

removeBusinessPolicy

public BusinessPolicy removeBusinessPolicy(java.lang.String aString)
                                    throws java.lang.UnsupportedOperationException
This method is not supported.

removeProperty

public java.lang.Object removeProperty(java.lang.String aString)
This method does nothing.
Tags copied from interface: ConfigurableEntity
Parameters:
key - The name of the property to remove.

removeProperty

public java.lang.Object removeProperty(java.lang.String aString,
                                       java.lang.String aString2)
This method does nothing.
Tags copied from interface: ConfigurableEntity
Parameters:
scopeName - The name of the scope.
key - The name of the property to remove.

removePropertyValue

public java.lang.Object removePropertyValue(java.lang.String aString,
                                            java.lang.String aString2,
                                            java.lang.Object anObject)
This method does nothing.
Tags copied from interface: ConfigurableEntity
Parameters:
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.

removePropertyValueMapped

public java.lang.Object removePropertyValueMapped(java.lang.String aString,
                                                  java.lang.String aString2,
                                                  java.lang.String aString3)
This method does nothing.
Tags copied from interface: ConfigurableEntity
Parameters:
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.

setProperty

public void setProperty(java.lang.String aString,
                        java.lang.Object anObject)
This method does nothing.
Tags copied from interface: ConfigurableEntity
Parameters:
name - The name to associate the value with.
value - The value to associate with the name.

setProperty

public void setProperty(java.lang.String aString,
                        java.lang.String aString2,
                        java.lang.Object anObject)
This method does nothing.
Tags copied from interface: ConfigurableEntity
Parameters:
scopeName - The name of the scope.
name - The name to associate the value with.
value - The value to associate with the name.

setSuccessor

public void setSuccessor(java.lang.String aString,
                         ConfigurableEntity entity)
                  throws java.lang.UnsupportedOperationException
This method is not supported.
Tags copied from interface: ConfigurableEntity
Parameters:
scopeName - The name of the scope.
successor - The scope-level successor used during the search of a property.

set__containingEntity

public void set__containingEntity(javax.ejb.EJBObject ob)
                           throws java.lang.UnsupportedOperationException
This method is not supported.

set__mapKey

public void set__mapKey(java.lang.Object anObject)
                 throws java.lang.UnsupportedOperationException
This method is not supported.

set__containingBelonging

public void set__containingBelonging(Belonging aBelonging)
                              throws java.lang.UnsupportedOperationException
This method is not supported.

get__containingBelonging

public Belonging get__containingBelonging()
                                   throws java.lang.UnsupportedOperationException
This method is not supported.

get__sequenceNumber

public java.lang.Long get__sequenceNumber()
                                   throws java.lang.UnsupportedOperationException
This method is not supported.

removeSuccessor

public ConfigurableEntity removeSuccessor(java.lang.String str)
                                   throws java.lang.UnsupportedOperationException
This method is not supported.
Tags copied from interface: ConfigurableEntity
Parameters:
scopeName - The name of the scope.

getContentByValue

public ContentValue getContentByValue()
Return the content value object.
Specified by:
getContentByValue in interface Content
Tags copied from interface: Content
Returns:
ContentValue the Content value object.
Throws:
java.rmi.RemoteException - thrown on a communication error.

setContentByValue

public void setContentByValue(ContentValue val)
This method does nothing.
Specified by:
setContentByValue in interface Content
Tags copied from interface: Content
Parameters:
ContentValue - the Content value object
Throws:
java.rmi.RemoteException - thrown on a communication error.

getIdentifier

public java.lang.String getIdentifier()
Get the identifier for the content object.
Specified by:
getIdentifier in interface Content
Tags copied from interface: Content
Throws:
java.rmi.RemoteException - thrown on a communication error.

getMimeType

public java.lang.String getMimeType()
Get the mime type of the content object.
Specified by:
getMimeType in interface Content
Tags copied from interface: Content
Returns:
mimeType.
Throws:
java.rmi.RemoteException - thrown on a communication error.

setMimeType

public void setMimeType(java.lang.String mimeType)
Set the mime type of the document object.
Specified by:
setMimeType in interface Content
Tags copied from interface: Content
Parameters:
mimeType - mimeType to be added
Throws:
java.rmi.RemoteException - thrown on a communication error.

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved