org.olat.core.id
Interface Persistable

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
Authentication, BGArea, BGContext, Bookmark, BusinessGroup, CatalogEntry, Forum, Identity, Message, Note, OLATResource, Policy, Project, ProjectBroker, Publisher, ReadMessage, SecurityGroup, Subscriber, User, UserComment, UserRating
All Known Implementing Classes:
AuthenticationImpl, BGAreaImpl, BGContext2Resource, BGContextImpl, BGtoAreaRelationImpl, BookmarkImpl, BusinessGroupImpl, CatalogEntryImpl, Checklist, Checkpoint, CheckpointResult, DailyStat, DayOfWeekStat, ForumImpl, HomeOrgStat, HourOfDayStat, IdentityImpl, LifeCycleEntry, LockImpl, LoggingObject, MessageImpl, MetaDataElement, NamedGroupImpl, NoteImpl, OLATResourceImpl, OrgTypeStat, PersistentObject, PLockImpl, PolicyImpl, ProjectBrokerImpl, ProjectImpl, Property, PublisherImpl, QTIResult, QTIResultSet, ReadMessageImpl, ReferenceImpl, RepositoryEntry, SecurityGroupImpl, SecurityGroupMembershipImpl, StudyBranch3Stat, StudyLevelStat, SubscriberImpl, UserCommentImpl, UserImpl, UserRatingImpl, WeeklyStat

public interface Persistable
extends java.io.Serializable

Description:

Author:
Felix Jost

Method Summary
 boolean equalsByPersistableKey(Persistable persistable)
           
 java.lang.Long getKey()
           
 

Method Detail

getKey

java.lang.Long getKey()
Returns:
Persistable object key.

equalsByPersistableKey

boolean equalsByPersistableKey(Persistable persistable)
Parameters:
persistable - The object to compare with
Returns:
true if the given persistable object has the same object identity in terms on a database level.