atg.svc.repository.beans
Class _ContentInstance_BeanImpl

java.lang.Object
  extended by atg.svc.repository.beans._ContentInstance_Impl
      extended by atg.svc.repository.beans._ContentInstance_BeanImpl
All Implemented Interfaces:
atg.repository.tojava.runtime.RJBeanObject, atg.repository.tojava.runtime.RJObject, ContentInstance, InstanceObject, atg.svc.repository.beans.pv.ContentInstance_PV, atg.svc.repository.beans.pv.InstanceObject_PV, java.io.Serializable, javax.ejb.EJBLocalObject

public class _ContentInstance_BeanImpl
extends _ContentInstance_Impl
implements atg.repository.tojava.runtime.RJBeanObject

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface atg.repository.tojava.runtime.RJBeanObject
CLASS_VERSION
 
Constructor Summary
_ContentInstance_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 getBody()
          Getter for property body
 java.lang.String getContentId()
          Getter for property contentId
 javax.ejb.EJBLocalHome getEJBLocalHome()
          Gets the home associated with this repository object.
 InstanceObjectInstanceType getInstanceType()
          Getter for property instanceType
 java.lang.String getMimeType()
          Getter for property mimeType
 java.lang.String getOtherContext()
          Getter for property otherContext
 java.lang.Object getPrimaryKey()
           
 java.lang.String getUrl()
          Getter for property url
 boolean isEnabledYn()
          Getter for property enabledYn
 boolean isIdentical(javax.ejb.EJBLocalObject obj)
          Returns true if the given object is identical to this one.
 boolean isUrlYn()
          Getter for property urlYn
 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 setBody(java.lang.String value)
          Setter for property body .
 void setContentId(java.lang.String value)
          Setter for property contentId .
 void setEnabledYn(boolean value)
          Setter for property enabledYn .
 void setInstanceType(InstanceObjectInstanceType value)
          Setter for property instanceType .
 void setMimeType(java.lang.String value)
          Setter for property mimeType .
 void setOtherContext(java.lang.String value)
          Setter for property otherContext .
 void setUrl(java.lang.String value)
          Setter for property url .
 void setUrlYn(boolean value)
          Setter for property urlYn .
 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._ContentInstance_Impl
_getItemDescriptorName, _getObjectInterfaceClass, copyTo, copyTo, isRemoved
 
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

_ContentInstance_BeanImpl

public _ContentInstance_BeanImpl()
Method Detail

getBody

public java.lang.String getBody()
Description copied from interface: ContentInstance
Getter for property body

Specified by:
getBody in interface ContentInstance
Specified by:
getBody in interface atg.svc.repository.beans.pv.ContentInstance_PV
Returns:
String

setBody

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

Specified by:
setBody in interface ContentInstance
Specified by:
setBody in interface atg.svc.repository.beans.pv.ContentInstance_PV
Parameters:
value - String

getContentId

public java.lang.String getContentId()
Description copied from interface: ContentInstance
Getter for property contentId

Specified by:
getContentId in interface ContentInstance
Specified by:
getContentId in interface atg.svc.repository.beans.pv.ContentInstance_PV
Returns:
String

setContentId

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

Specified by:
setContentId in interface ContentInstance
Specified by:
setContentId in interface atg.svc.repository.beans.pv.ContentInstance_PV
Parameters:
value - String

isEnabledYn

public boolean isEnabledYn()
Description copied from interface: InstanceObject
Getter for property enabledYn

Specified by:
isEnabledYn in interface InstanceObject
Specified by:
isEnabledYn in interface atg.svc.repository.beans.pv.InstanceObject_PV
Returns:
boolean

setEnabledYn

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

Specified by:
setEnabledYn in interface InstanceObject
Specified by:
setEnabledYn in interface atg.svc.repository.beans.pv.InstanceObject_PV
Parameters:
value - boolean

getInstanceType

public InstanceObjectInstanceType getInstanceType()
Description copied from interface: InstanceObject
Getter for property instanceType

Specified by:
getInstanceType in interface InstanceObject
Specified by:
getInstanceType in interface atg.svc.repository.beans.pv.InstanceObject_PV
Returns:
InstanceObjectInstanceType

setInstanceType

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

Specified by:
setInstanceType in interface InstanceObject
Specified by:
setInstanceType in interface atg.svc.repository.beans.pv.InstanceObject_PV
Parameters:
value - InstanceObjectInstanceType

getMimeType

public java.lang.String getMimeType()
Description copied from interface: ContentInstance
Getter for property mimeType

Specified by:
getMimeType in interface ContentInstance
Specified by:
getMimeType in interface atg.svc.repository.beans.pv.ContentInstance_PV
Returns:
String

setMimeType

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

Specified by:
setMimeType in interface ContentInstance
Specified by:
setMimeType in interface atg.svc.repository.beans.pv.ContentInstance_PV
Parameters:
value - String

getOtherContext

public java.lang.String getOtherContext()
Description copied from interface: ContentInstance
Getter for property otherContext

Specified by:
getOtherContext in interface ContentInstance
Specified by:
getOtherContext in interface atg.svc.repository.beans.pv.ContentInstance_PV
Returns:
String

setOtherContext

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

Specified by:
setOtherContext in interface ContentInstance
Specified by:
setOtherContext in interface atg.svc.repository.beans.pv.ContentInstance_PV
Parameters:
value - String

getUrl

public java.lang.String getUrl()
Description copied from interface: ContentInstance
Getter for property url

Specified by:
getUrl in interface ContentInstance
Specified by:
getUrl in interface atg.svc.repository.beans.pv.ContentInstance_PV
Returns:
String

setUrl

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

Specified by:
setUrl in interface ContentInstance
Specified by:
setUrl in interface atg.svc.repository.beans.pv.ContentInstance_PV
Parameters:
value - String

isUrlYn

public boolean isUrlYn()
Description copied from interface: ContentInstance
Getter for property urlYn

Specified by:
isUrlYn in interface ContentInstance
Specified by:
isUrlYn in interface atg.svc.repository.beans.pv.ContentInstance_PV
Returns:
boolean

setUrlYn

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

Specified by:
setUrlYn in interface ContentInstance
Specified by:
setUrlYn in interface atg.svc.repository.beans.pv.ContentInstance_PV
Parameters:
value - boolean

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 ContentInstance
Specified by:
writeInstance in interface InstanceObject
Specified by:
writeInstance in interface atg.svc.repository.beans.pv.ContentInstance_PV
Specified by:
writeInstance in interface atg.svc.repository.beans.pv.InstanceObject_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 ContentInstance
Specified by:
prepareInstanceForWrite in interface InstanceObject
Specified by:
prepareInstanceForWrite in interface atg.svc.repository.beans.pv.ContentInstance_PV
Specified by:
prepareInstanceForWrite in interface atg.svc.repository.beans.pv.InstanceObject_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 ContentInstance
Specified by:
_isMutable in interface InstanceObject
Specified by:
_isMutable in interface atg.svc.repository.beans.pv.ContentInstance_PV
Specified by:
_isMutable in interface atg.svc.repository.beans.pv.InstanceObject_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.