com.nurelm.nucontent.model
Class Entity

java.lang.Object
  extended bycom.nurelm.nucontent.model.Entity
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Group, User

public abstract class Entity
extends java.lang.Object
implements java.io.Serializable

Extended to create User or Group objects.

See Also:
Serialized Form

Field Summary
protected  java.lang.String id
           
protected  java.lang.String name
           
 
Constructor Summary
protected Entity()
          Does nothing, used nowhere, but eliminates JDO complie-time warning about not having a zero-args constructor.
protected Entity(java.lang.String name)
          Creates new Entity object.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compare this object with another.
 java.lang.String getId()
          Get's this object's unique identifier.
 java.lang.String getName()
          Get's this object's name.
 int hashCode()
          Get's this object's hash code, which is simply the name String's hash code.
 java.lang.String toString()
          Get's this object's name.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected java.lang.String id

name

protected java.lang.String name
Constructor Detail

Entity

protected Entity()
Does nothing, used nowhere, but eliminates JDO complie-time warning about not having a zero-args constructor.


Entity

protected Entity(java.lang.String name)
Creates new Entity object.

Parameters:
name - This object's name.
Method Detail

getId

public java.lang.String getId()
Get's this object's unique identifier.

Returns:
This object's unique identifier.

getName

public java.lang.String getName()
Get's this object's name.

Returns:
This object's name.

toString

public java.lang.String toString()
Get's this object's name.

Returns:
This object's name.

hashCode

public int hashCode()
Get's this object's hash code, which is simply the name String's hash code.

Returns:
This object's hash code.

equals

public boolean equals(java.lang.Object obj)
Compare this object with another.

Parameters:
obj - The object to compare with this one.
Returns:
True of objects are equal, false if not.