atg.svc.repository.beans
Class _FieldDefinition_BeanImpl

java.lang.Object
  extended by atg.svc.repository.beans._FieldDefinition_Impl
      extended by atg.svc.repository.beans._FieldDefinition_BeanImpl
All Implemented Interfaces:
atg.repository.tojava.runtime.RJBeanObject, atg.repository.tojava.runtime.RJObject, FieldDefinition, atg.svc.repository.beans.pv.FieldDefinition_PV, SecuredItem, java.io.Serializable, javax.ejb.EJBLocalObject

public class _FieldDefinition_BeanImpl
extends _FieldDefinition_Impl
implements atg.repository.tojava.runtime.RJBeanObject

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface atg.repository.tojava.runtime.RJBeanObject
CLASS_VERSION
 
Fields inherited from interface atg.svc.repository.beans.SecuredItem
CLASS_VERSION
 
Constructor Summary
_FieldDefinition_BeanImpl()
           
 
Method Summary
 javax.ejb.EJBLocalHome _getRepositoryHome()
          Gets the repository home that corresponds to this bean.
 boolean _isMutable()
          Returns true if the item is mutable.
 java.lang.String getDisplayName()
          Getter for property displayName
 FieldDefinitionEditor getEditor()
          Getter for property editor
 javax.ejb.EJBLocalHome getEJBLocalHome()
          Gets the home associated with this repository object.
 java.lang.String[] getExternalAudience()
          Getter for property externalAudience
 java.lang.Object[] getExternalAudienceSorted()
          Getter for property externalAudienceSorted
 boolean getHasDefault()
          Returns true if the value of property default is null.
 java.lang.String getId()
          Getter for property id
 FieldDefinitionIndexing getIndexing()
          Getter for property indexing
 java.lang.String[] getInternalAudience()
          Getter for property internalAudience
 java.lang.Object[] getInternalAudienceSorted()
          Getter for property internalAudienceSorted
 java.lang.String[] getInternalModify()
          Getter for property internalModify
 java.lang.Object[] getInternalModifySorted()
          Getter for property internalModifySorted
 java.lang.String getName()
          Getter for property name
 java.lang.Object getPrimaryKey()
           
 FieldDefinitionPurpose getPurpose()
          Getter for property purpose
 FieldDefinitionType getType()
          Getter for property type
 FieldDefinitionUsage getUsage()
          Getter for property usage
 boolean isDefault()
          Getter for property default
 boolean isIdentical(javax.ejb.EJBLocalObject obj)
          Returns true if the given object is identical to this one.
 boolean isMultiValued()
          Getter for property multiValued
 boolean isRequired()
          Getter for property required
 void prepareInstanceForWrite()
          This must be called if the application intends to both read and write the instance in the same transaction, and it intends to do a read before doing a write.
 void remove()
          Removes this object from the repository.
 void setDefault(boolean value)
          Setter for property default .
 void setDisplayName(java.lang.String value)
          Setter for property displayName .
 void setEditor(FieldDefinitionEditor value)
          Setter for property editor .
 void setExternalAudience(java.lang.String[] value)
          Setter for property externalAudience .
 void setHasDefault(boolean value)
          If this is set to false, then the underlying value of property default is set to null.
 void setId(java.lang.String value)
          Setter for property id .
 void setIndexing(FieldDefinitionIndexing value)
          Setter for property indexing .
 void setInternalAudience(java.lang.String[] value)
          Setter for property internalAudience .
 void setInternalModify(java.lang.String[] value)
          Setter for property internalModify .
 void setMultiValued(boolean value)
          Setter for property multiValued .
 void setName(java.lang.String value)
          Setter for property name .
 void setPurpose(FieldDefinitionPurpose value)
          Setter for property purpose .
 void setRequired(boolean value)
          Setter for property required .
 void setType(FieldDefinitionType value)
          Setter for property type .
 void setUsage(FieldDefinitionUsage value)
          Setter for property usage .
 void writeInstance()
          This must be called after modifying an instance with a persistent implementation to guarantee that all changes are made persistent and visible to queries.
 
Methods inherited from class atg.svc.repository.beans._FieldDefinition_Impl
_getItemDescriptorName, _getObjectInterfaceClass, copyTo, createSolutionFieldValue, getDefaultValues, getIsEditable, getIsExternallyVisible, getIsExternallyVisible, getIsInternalOnly, getIsMultiValued, getIsVisible, isRemoved, setDefaultValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface atg.repository.tojava.runtime.RJObject
_getItemDescriptorName, _getObjectInterfaceClass
 

Constructor Detail

_FieldDefinition_BeanImpl

public _FieldDefinition_BeanImpl()
Method Detail

isDefault

public boolean isDefault()
Description copied from interface: FieldDefinition
Getter for property default

Specified by:
isDefault in interface FieldDefinition
Specified by:
isDefault in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Returns:
boolean

getHasDefault

public boolean getHasDefault()
                      throws javax.ejb.EJBException
Description copied from interface: FieldDefinition
Returns true if the value of property default is null.

Specified by:
getHasDefault in interface FieldDefinition
Specified by:
getHasDefault in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Throws:
javax.ejb.EJBException

setDefault

public void setDefault(boolean value)
Description copied from interface: FieldDefinition
Setter for property default . The FieldDefinition.writeInstance() method must be called afterwards to insure that any changes are made persistent (if the instance is backed by a persistent implementation). The FieldDefinition.prepareInstanceForWrite() method may need to be called before making any changes.

Specified by:
setDefault in interface FieldDefinition
Specified by:
setDefault in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Parameters:
value - boolean

setHasDefault

public void setHasDefault(boolean value)
                   throws javax.ejb.EJBException
Description copied from interface: FieldDefinition
If this is set to false, then the underlying value of property default is set to null. If set to true, then nothing is done.

Specified by:
setHasDefault in interface FieldDefinition
Specified by:
setHasDefault in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Throws:
javax.ejb.EJBException

getDisplayName

public java.lang.String getDisplayName()
Description copied from interface: FieldDefinition
Getter for property displayName

Specified by:
getDisplayName in interface FieldDefinition
Specified by:
getDisplayName in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Returns:
String

setDisplayName

public void setDisplayName(java.lang.String value)
Description copied from interface: FieldDefinition
Setter for property displayName . The FieldDefinition.writeInstance() method must be called afterwards to insure that any changes are made persistent (if the instance is backed by a persistent implementation). The FieldDefinition.prepareInstanceForWrite() method may need to be called before making any changes.

Specified by:
setDisplayName in interface FieldDefinition
Specified by:
setDisplayName in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Parameters:
value - String

getEditor

public FieldDefinitionEditor getEditor()
Description copied from interface: FieldDefinition
Getter for property editor

Specified by:
getEditor in interface FieldDefinition
Specified by:
getEditor in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Returns:
FieldDefinitionEditor

setEditor

public void setEditor(FieldDefinitionEditor value)
Description copied from interface: FieldDefinition
Setter for property editor . The FieldDefinition.writeInstance() method must be called afterwards to insure that any changes are made persistent (if the instance is backed by a persistent implementation). The FieldDefinition.prepareInstanceForWrite() method may need to be called before making any changes.

Specified by:
setEditor in interface FieldDefinition
Specified by:
setEditor in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Parameters:
value - FieldDefinitionEditor

getExternalAudience

public java.lang.String[] getExternalAudience()
Description copied from interface: FieldDefinition
Getter for property externalAudience

Specified by:
getExternalAudience in interface FieldDefinition
Specified by:
getExternalAudience in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Specified by:
getExternalAudience in interface SecuredItem
Returns:
String[]

setExternalAudience

public void setExternalAudience(java.lang.String[] value)
Description copied from interface: FieldDefinition
Setter for property externalAudience . The FieldDefinition.writeInstance() method must be called afterwards to insure that any changes are made persistent (if the instance is backed by a persistent implementation). The FieldDefinition.prepareInstanceForWrite() method may need to be called before making any changes.

Specified by:
setExternalAudience in interface FieldDefinition
Specified by:
setExternalAudience in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Specified by:
setExternalAudience in interface SecuredItem
Parameters:
value - String[]

getExternalAudienceSorted

public java.lang.Object[] getExternalAudienceSorted()
Description copied from interface: FieldDefinition
Getter for property externalAudienceSorted

Specified by:
getExternalAudienceSorted in interface FieldDefinition
Specified by:
getExternalAudienceSorted in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Returns:
Object[]

getId

public java.lang.String getId()
Description copied from interface: FieldDefinition
Getter for property id

Specified by:
getId in interface FieldDefinition
Specified by:
getId in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Returns:
String

setId

public void setId(java.lang.String value)
Description copied from interface: FieldDefinition
Setter for property id . The FieldDefinition.writeInstance() method must be called afterwards to insure that any changes are made persistent (if the instance is backed by a persistent implementation). The FieldDefinition.prepareInstanceForWrite() method may need to be called before making any changes.

Specified by:
setId in interface FieldDefinition
Specified by:
setId in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Parameters:
value - String

getIndexing

public FieldDefinitionIndexing getIndexing()
Description copied from interface: FieldDefinition
Getter for property indexing

Specified by:
getIndexing in interface FieldDefinition
Specified by:
getIndexing in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Returns:
FieldDefinitionIndexing

setIndexing

public void setIndexing(FieldDefinitionIndexing value)
Description copied from interface: FieldDefinition
Setter for property indexing . The FieldDefinition.writeInstance() method must be called afterwards to insure that any changes are made persistent (if the instance is backed by a persistent implementation). The FieldDefinition.prepareInstanceForWrite() method may need to be called before making any changes.

Specified by:
setIndexing in interface FieldDefinition
Specified by:
setIndexing in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Parameters:
value - FieldDefinitionIndexing

getInternalAudience

public java.lang.String[] getInternalAudience()
Description copied from interface: FieldDefinition
Getter for property internalAudience

Specified by:
getInternalAudience in interface FieldDefinition
Specified by:
getInternalAudience in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Specified by:
getInternalAudience in interface SecuredItem
Returns:
String[]

setInternalAudience

public void setInternalAudience(java.lang.String[] value)
Description copied from interface: FieldDefinition
Setter for property internalAudience . The FieldDefinition.writeInstance() method must be called afterwards to insure that any changes are made persistent (if the instance is backed by a persistent implementation). The FieldDefinition.prepareInstanceForWrite() method may need to be called before making any changes.

Specified by:
setInternalAudience in interface FieldDefinition
Specified by:
setInternalAudience in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Specified by:
setInternalAudience in interface SecuredItem
Parameters:
value - String[]

getInternalAudienceSorted

public java.lang.Object[] getInternalAudienceSorted()
Description copied from interface: FieldDefinition
Getter for property internalAudienceSorted

Specified by:
getInternalAudienceSorted in interface FieldDefinition
Specified by:
getInternalAudienceSorted in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Returns:
Object[]

getInternalModify

public java.lang.String[] getInternalModify()
Description copied from interface: FieldDefinition
Getter for property internalModify

Specified by:
getInternalModify in interface FieldDefinition
Specified by:
getInternalModify in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Specified by:
getInternalModify in interface SecuredItem
Returns:
String[]

setInternalModify

public void setInternalModify(java.lang.String[] value)
Description copied from interface: FieldDefinition
Setter for property internalModify . The FieldDefinition.writeInstance() method must be called afterwards to insure that any changes are made persistent (if the instance is backed by a persistent implementation). The FieldDefinition.prepareInstanceForWrite() method may need to be called before making any changes.

Specified by:
setInternalModify in interface FieldDefinition
Specified by:
setInternalModify in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Specified by:
setInternalModify in interface SecuredItem
Parameters:
value - String[]

getInternalModifySorted

public java.lang.Object[] getInternalModifySorted()
Description copied from interface: FieldDefinition
Getter for property internalModifySorted

Specified by:
getInternalModifySorted in interface FieldDefinition
Specified by:
getInternalModifySorted in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Returns:
Object[]

isMultiValued

public boolean isMultiValued()
Description copied from interface: FieldDefinition
Getter for property multiValued

Specified by:
isMultiValued in interface FieldDefinition
Specified by:
isMultiValued in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Returns:
boolean

setMultiValued

public void setMultiValued(boolean value)
Description copied from interface: FieldDefinition
Setter for property multiValued . The FieldDefinition.writeInstance() method must be called afterwards to insure that any changes are made persistent (if the instance is backed by a persistent implementation). The FieldDefinition.prepareInstanceForWrite() method may need to be called before making any changes.

Specified by:
setMultiValued in interface FieldDefinition
Specified by:
setMultiValued in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Parameters:
value - boolean

getName

public java.lang.String getName()
Description copied from interface: FieldDefinition
Getter for property name

Specified by:
getName in interface FieldDefinition
Specified by:
getName in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Returns:
String

setName

public void setName(java.lang.String value)
Description copied from interface: FieldDefinition
Setter for property name . The FieldDefinition.writeInstance() method must be called afterwards to insure that any changes are made persistent (if the instance is backed by a persistent implementation). The FieldDefinition.prepareInstanceForWrite() method may need to be called before making any changes.

Specified by:
setName in interface FieldDefinition
Specified by:
setName in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Parameters:
value - String

getPurpose

public FieldDefinitionPurpose getPurpose()
Description copied from interface: FieldDefinition
Getter for property purpose

Specified by:
getPurpose in interface FieldDefinition
Specified by:
getPurpose in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Returns:
FieldDefinitionPurpose

setPurpose

public void setPurpose(FieldDefinitionPurpose value)
Description copied from interface: FieldDefinition
Setter for property purpose . The FieldDefinition.writeInstance() method must be called afterwards to insure that any changes are made persistent (if the instance is backed by a persistent implementation). The FieldDefinition.prepareInstanceForWrite() method may need to be called before making any changes.

Specified by:
setPurpose in interface FieldDefinition
Specified by:
setPurpose in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Parameters:
value - FieldDefinitionPurpose

isRequired

public boolean isRequired()
Description copied from interface: FieldDefinition
Getter for property required

Specified by:
isRequired in interface FieldDefinition
Specified by:
isRequired in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Returns:
boolean

setRequired

public void setRequired(boolean value)
Description copied from interface: FieldDefinition
Setter for property required . The FieldDefinition.writeInstance() method must be called afterwards to insure that any changes are made persistent (if the instance is backed by a persistent implementation). The FieldDefinition.prepareInstanceForWrite() method may need to be called before making any changes.

Specified by:
setRequired in interface FieldDefinition
Specified by:
setRequired in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Parameters:
value - boolean

getType

public FieldDefinitionType getType()
Description copied from interface: FieldDefinition
Getter for property type

Specified by:
getType in interface FieldDefinition
Specified by:
getType in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Returns:
FieldDefinitionType

setType

public void setType(FieldDefinitionType value)
Description copied from interface: FieldDefinition
Setter for property type . The FieldDefinition.writeInstance() method must be called afterwards to insure that any changes are made persistent (if the instance is backed by a persistent implementation). The FieldDefinition.prepareInstanceForWrite() method may need to be called before making any changes.

Specified by:
setType in interface FieldDefinition
Specified by:
setType in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Parameters:
value - FieldDefinitionType

getUsage

public FieldDefinitionUsage getUsage()
Description copied from interface: FieldDefinition
Getter for property usage

Specified by:
getUsage in interface FieldDefinition
Specified by:
getUsage in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Returns:
FieldDefinitionUsage

setUsage

public void setUsage(FieldDefinitionUsage value)
Description copied from interface: FieldDefinition
Setter for property usage . The FieldDefinition.writeInstance() method must be called afterwards to insure that any changes are made persistent (if the instance is backed by a persistent implementation). The FieldDefinition.prepareInstanceForWrite() method may need to be called before making any changes.

Specified by:
setUsage in interface FieldDefinition
Specified by:
setUsage in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Parameters:
value - FieldDefinitionUsage

writeInstance

public void writeInstance()
                   throws javax.ejb.EJBException
Description copied from interface: atg.repository.tojava.runtime.RJObject
This must be called after modifying an instance with a persistent implementation to guarantee that all changes are made persistent and visible to queries. Changes might be made visible before calling this method, but this is not guaranteed until this method is called.

Specified by:
writeInstance in interface atg.repository.tojava.runtime.RJObject
Specified by:
writeInstance in interface FieldDefinition
Specified by:
writeInstance in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Throws:
javax.ejb.EJBException - If the operation fails.

prepareInstanceForWrite

public void prepareInstanceForWrite()
                             throws javax.ejb.EJBException
Description copied from interface: atg.repository.tojava.runtime.RJObject
This must be called if the application intends to both read and write the instance in the same transaction, and it intends to do a read before doing a write. This must be called before that first read.

Specified by:
prepareInstanceForWrite in interface atg.repository.tojava.runtime.RJObject
Specified by:
prepareInstanceForWrite in interface FieldDefinition
Specified by:
prepareInstanceForWrite in interface atg.svc.repository.beans.pv.FieldDefinition_PV
Throws:
javax.ejb.EJBException - If the operation fails.

_isMutable

public boolean _isMutable()
Returns true if the item is mutable. Items are only mutable after a setter method or prepareInstanceForWrite is called.

Specified by:
_isMutable in interface FieldDefinition
Specified by:
_isMutable in interface atg.svc.repository.beans.pv.FieldDefinition_PV

getEJBLocalHome

public javax.ejb.EJBLocalHome getEJBLocalHome()
Description copied from interface: atg.repository.tojava.runtime.RJObject
Gets the home associated with this repository object.

Specified by:
getEJBLocalHome in interface atg.repository.tojava.runtime.RJObject
Specified by:
getEJBLocalHome in interface javax.ejb.EJBLocalObject
Returns:
The home (repository home for ReposImpl/bean home for BeanImpl).

_getRepositoryHome

public javax.ejb.EJBLocalHome _getRepositoryHome()
Description copied from interface: atg.repository.tojava.runtime.RJBeanObject
Gets the repository home that corresponds to this bean. This is needed so that beans can get the repository impl that corresponds to it for copying to it before save/update/etc.

Specified by:
_getRepositoryHome in interface atg.repository.tojava.runtime.RJBeanObject
Returns:
The Repository Impl home.

getPrimaryKey

public java.lang.Object getPrimaryKey()
                               throws javax.ejb.EJBException
Specified by:
getPrimaryKey in interface javax.ejb.EJBLocalObject
Throws:
javax.ejb.EJBException

isIdentical

public boolean isIdentical(javax.ejb.EJBLocalObject obj)
Description copied from interface: atg.repository.tojava.runtime.RJObject
Returns true if the given object is identical to this one.

Specified by:
isIdentical in interface atg.repository.tojava.runtime.RJObject
Specified by:
isIdentical in interface javax.ejb.EJBLocalObject
Parameters:
obj - The object to compare.
Returns:
True if the given object is identical to this one.

remove

public void remove()
            throws javax.ejb.RemoveException
Description copied from interface: atg.repository.tojava.runtime.RJObject
Removes this object from the repository. This is a no-op for bean impls.

Specified by:
remove in interface atg.repository.tojava.runtime.RJObject
Specified by:
remove in interface javax.ejb.EJBLocalObject
Throws:
javax.ejb.RemoveException - If the remove fails.