org.melati.poem
Interface Persistable

Package class diagram package Persistable
All Known Subinterfaces:
Persistent
All Known Implementing Classes:
Capability, CapabilityBase, Category, CategoryBase, Child, ChildBase, ColumnInfo, ColumnInfoBase, Contact, ContactBase, ContactCategory, ContactCategoryBase, Group, GroupBase, GroupCapability, GroupCapabilityBase, GroupMembership, GroupMembershipBase, JdbcPersistent, Parent, ParentBase, Setting, SettingBase, TableCategory, TableCategoryBase, TableInfo, TableInfoBase, User, UserBase, ValueInfo, ValueInfoBase

public interface Persistable

An object which can be persisted, ie has a Troid.


Method Summary
 Integer getTroid()
          The object's troid, returned after access check.
 Integer troid()
          Get the troid without access checking.
 

Method Detail

getTroid

Integer getTroid()
                 throws AccessPoemException
The object's troid, returned after access check.

Returns:
Every record (object) in a POEM database must have a troid (table row ID, or table-unique non-nullable integer primary key), often but not necessarily called id, so that it can be conveniently `named' for retrieval.
Throws:
AccessPoemException - if assertCanRead fails
See Also:
Table.getObject(java.lang.Integer), getTroid()

troid

Integer troid()
Get the troid without access checking.

Returns:
the troid


Copyright © 2000-2010 PanEris. All Rights Reserved.