org.benow.repository.util
Class PersistentNamedImpl
java.lang.Object
org.benow.security.SecureObject
org.benow.repository.util.PersistentObjectImpl
org.benow.repository.mapping.JSQLObject
org.benow.repository.util.PersistentNamedImpl
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable, PersistentObject, org.benow.util.Named
- Direct Known Subclasses:
- NamedPersistentTreeNode, PermissionedPackageImpl
public class PersistentNamedImpl
- extends JSQLObject
- implements org.benow.util.Named
- See Also:
- Serialized Form
| Fields inherited from class org.benow.security.SecureObject |
admin |
| Methods inherited from class org.benow.repository.util.PersistentObjectImpl |
compareTo, doIsTransient, equals, getKey, isTransient, recycle, remove, remove, repositoryAfterLoad, repositoryAfterPersist, repositoryAfterTransient, repositoryBeforePersist, repositoryBeforeTransient, setKey, update, update |
| Methods inherited from class org.benow.security.SecureObject |
assertOnePermission, assertPermission, assertPermission, declarePermission, declareViewPermission, declareViewPermission |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FIELD_NAME_NAME
public static final java.lang.String FIELD_NAME_NAME
- the name of the field holding the name
- See Also:
- Constant Field Values
name
public java.lang.String name
description
public java.lang.String description
PersistentNamedImpl
protected PersistentNamedImpl()
- for castor
PersistentNamedImpl
public PersistentNamedImpl(java.lang.String name)
PersistentNamedImpl
public PersistentNamedImpl(java.lang.String name,
java.lang.String description)
getName
public java.lang.String getName()
- Gets the name of this object
- Specified by:
getName in interface org.benow.util.Named
- Returns:
- name
getDescription
public java.lang.String getDescription()
- Gets the description of this object.
- Specified by:
getDescription in interface org.benow.util.Named
- Returns:
- description
setDescription
public void setDescription(java.lang.String description)
absorb
public void absorb(PersistentNamedImpl toAbsorb)
- Copies information from given object to this object
- Parameters:
toAbsorb -
toString
public java.lang.String toString()
- Overrides:
toString in class PersistentObjectImpl