com.hack23.cia.model.impl.common
Class BaseEntity

Package class diagram package BaseEntity
java.lang.Object
  extended by com.hack23.cia.model.impl.common.BaseEntity
All Implemented Interfaces:
ModelObject, PersistedModelObject, Serializable
Direct Known Subclasses:
AbstractActionEvent, AbstractBallotMetaData, AbstractResource, Agency, Ballot, Committee, CommitteeReport, Election, GameBoard, Parliament, ParliamentDocumentType, ParliamentMember, ParliamentMemberVoteCompareResult, ParliamentYear, Person, Player, PoliticalGame, PoliticalParty, RegisterInformation, User, UserSession, Vote, VoteMetaData

@MappedSuperclass
public abstract class BaseEntity
extends Object
implements PersistedModelObject

The Class BaseEntity.

See Also:
Serialized Form

Constructor Summary
Constructor and Description
BaseEntity()
           
 
Method Summary
Modifier and Type Method and Description
 boolean equals(Object obj)
          Equals.
protected abstract  TypeContext getApplicationTypeContext()
          Gets the application type context.
abstract  Long getId()
          Gets the id.
 TypeContext getTypeContext()
          Gets the type context.
abstract  Long getVersion()
          Gets the version.
 int hashCode()
          Hash code.
 boolean isNew()
          Checks if is new.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hack23.cia.model.api.common.PersistedModelObject
setId, setVersion
 

Constructor Detail

BaseEntity

public BaseEntity()
Method Detail

equals

public final boolean equals(Object obj)
Equals.

Overrides:
equals in class Object
Parameters:
obj - the obj
Returns:
true, if successful

getApplicationTypeContext

protected abstract TypeContext getApplicationTypeContext()
Gets the application type context.

Returns:
the application type context

getId

public abstract Long getId()
Gets the id.

Specified by:
getId in interface PersistedModelObject
Returns:
the id

getTypeContext

public TypeContext getTypeContext()
Description copied from interface: PersistedModelObject
Gets the type context.

Specified by:
getTypeContext in interface PersistedModelObject
Returns:
the type context

getVersion

public abstract Long getVersion()
Gets the version.

Specified by:
getVersion in interface PersistedModelObject
Returns:
the version

hashCode

public final int hashCode()
Hash code.

Overrides:
hashCode in class Object
Returns:
the int

isNew

public boolean isNew()
Description copied from interface: PersistedModelObject
Checks if is new.

Specified by:
isNew in interface PersistedModelObject
Returns:
true, if is new


Copyright © 2008-2010 www.hack23.com. All Rights Reserved.