org.figure8.join.core
Class EntityObject

java.lang.Object
  extended by org.figure8.join.core.EntityObject
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
AbstractResource, AbstractResourceType, Assembly, Build, Component, ComponentType, Deliverable, Deployment, EISMapping, EnvironmentMapping, Event, JMSConsumerBeanInfo, JMSConsumerBeanParameterInfo, LogicalEnvironment, Machine, MailingList, Message, NetClient, NetConfiguration, NotificationFailure, Parameter, ParameterValue, Permission, PhysicalEnvironment, QuartzCronInfo, QuartzCronParameterInfo, ResourceMapping, ResourceVersion, ScriptLogInfo, SortableEntityObject, Status, Subscription, Target, User, VersionedResourceUpdate

public class EntityObject
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

This is a base class representing an entity object.

Version:
$Revision: 1.2 $
Author:
Laurent Broudoux
See Also:
Serialized Form

Constructor Summary
EntityObject()
          Creates a new instance of EntityObject
 
Method Summary
 java.lang.Object clone()
          Clone implementation.
 boolean equals(java.lang.Object o)
          Say if an object is equals to this one, based on id.
 long getId()
          Get this entity unique identifier.
 int hashCode()
          Produce a hash code based on id.
 boolean isTransient()
          Tell if this entity has already been persisted into datastore.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityObject

public EntityObject()
Creates a new instance of EntityObject

Method Detail

getId

public long getId()
Get this entity unique identifier.

Returns:
The long identifier

isTransient

public boolean isTransient()
Tell if this entity has already been persisted into datastore.

Returns:
false if entity has already been persisted, true otherwise

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone implementation. Just return super.clone()

Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException - if an error occurs

hashCode

public int hashCode()
Produce a hash code based on id.

Overrides:
hashCode in class java.lang.Object
Returns:
This object hash code

equals

public boolean equals(java.lang.Object o)
Say if an object is equals to this one, based on id.

Overrides:
equals in class java.lang.Object
Parameters:
o - AN object to compare with this Entity
Returns:
true if equals, false otherwise


Copyright © 2005-2008 Join. All Rights Reserved.