org.benow.repository.mapping
Class JSQLNamed

java.lang.Object
  extended by org.benow.security.SecureObject
      extended by org.benow.repository.util.PersistentObjectImpl
          extended by org.benow.repository.mapping.JSQLObject
              extended by org.benow.repository.mapping.JSQLNamed
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable, PersistentObject, org.benow.util.Named
Direct Known Subclasses:
PermissionImpl, PersistentNamedCheckable

public abstract class JSQLNamed
extends JSQLObject
implements org.benow.util.Named

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.benow.repository.mapping.JSQLObject
JSQLObject.XSQLVersionDesc, JSQLObject.XSQLVersioned
 
Field Summary
 java.lang.String description
           
static java.lang.String FIELD_NAME_NAME
          the name of the field holding the name
 java.lang.String name
           
 
Fields inherited from class org.benow.repository.util.PersistentObjectImpl
conn, recycled
 
Fields inherited from class org.benow.security.SecureObject
admin
 
Fields inherited from interface org.benow.repository.util.PersistentObject
FIELD_NAME_KEY
 
Constructor Summary
protected JSQLNamed()
          for castor
  JSQLNamed(java.lang.String name)
           
  JSQLNamed(java.lang.String name, java.lang.String description)
           
 
Method Summary
 void absorb(JSQLNamed toAbsorb)
          Copies information from given object to this object
 java.lang.String getDescription()
          Gets the description of this object.
 java.lang.String getName()
          Gets the name of this object
 void setDescription(java.lang.String description)
           
 java.lang.String toString()
           
 
Methods inherited from class org.benow.repository.mapping.JSQLObject
fetchExpectedField, fetchField, fetchFieldQuiet, forgetField, isFetched, isLocked, lock, refetchFieldQuiet, setFetched
 
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 Detail

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
Constructor Detail

JSQLNamed

protected JSQLNamed()
for castor


JSQLNamed

public JSQLNamed(java.lang.String name)

JSQLNamed

public JSQLNamed(java.lang.String name,
                 java.lang.String description)
Method Detail

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(JSQLNamed toAbsorb)
Copies information from given object to this object

Parameters:
toAbsorb -

toString

public java.lang.String toString()
Overrides:
toString in class PersistentObjectImpl