com.hack23.cia.model.common.api
Interface PersistedModelObject

Package class diagram package PersistedModelObject
All Superinterfaces:
ModelObject, Serializable
All Known Subinterfaces:
ActionEvent, Actor, AgentOperation, ApplicationData, ApplicationEnvironment, ApplicationGroup, ApplicationResource, Configuration, Content, Data, Environment, Event, Group, MetaData, ParliamentData, ParliamentEnvironment, ParliamentEvent, ParliamentGroup, ParliamentMetaData, ParliamentRole, Person, Politician, Resource, Role, UserGeneratedMetaData, UserRole
All Known Implementing Classes:
AbstractActionEvent, AbstractAdminActionEvent, AbstractAgencyActionEvent, AbstractAgencyConfiguration, AbstractApplicationResource, AbstractBallotMetaData, AbstractBallotResult, AbstractConfigurationActionEvent, AbstractParliamentActionEvent, AbstractResource, AbstractSoftwareAgentActionEvent, AbstractTopListActionEvent, AbstractUserAccountActionEvent, AbstractUserActionEvent, AbstractVIPActionEvent, Agency, AgencyActionEvent, AgentDeploymentActionEvent, AgentOperationActionEvent, ApplicationActionEvent, ApplicationErrorActionEvent, Ballot, BallotActionEvent, BallotResult, BaseEntity, Committee, CommitteeReport, CommitteeReportActionEvent, CommitteeReportsActionEvent, Election, ExternalUrlActionEvent, GameBoard, Human, ImageContent, Language, LanguageAgencyActionEvent, LanguageContent, LanguageContentActionEvent, MonitorActionEvent, Parliament, ParliamentMember, ParliamentMemberActionEvent, ParliamentMemberBallotRecord, ParliamentMemberVoteCompareResult, ParliamentYear, PartyActionEvent, PartyBallotResult, Player, PoliticalGame, PoliticalParty, Portal, PortalActionEvent, RegisteredUser, RegisterInformation, SearchActionEvent, SoftwareAgentOperation, TopListActionEvent, User, UserAccountActionEvent, UserActionEvent, UserSession, Vote, VoteMetaData

public interface PersistedModelObject
extends ModelObject

The Interface PersistedModelObject.


Method Summary
 Long getId()
          Gets the id.
 Long getVersion()
          Gets the version.
 boolean isNew()
          Checks if is new.
 void setId(Long id)
          Sets the id.
 void setVersion(Long version)
          Sets the version.
 

Method Detail

isNew

boolean isNew()
Checks if is new.

Returns:
true, if is new

getId

Long getId()
Gets the id.

Returns:
the id

getVersion

Long getVersion()
Gets the version.

Returns:
the version

setId

void setId(Long id)
Sets the id.

Parameters:
id - the new id

setVersion

void setVersion(Long version)
Sets the version.

Parameters:
version - the new version


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