org.melati.poem
Interface Persistable

All Known Subinterfaces:
Persistent
All Known Implementing Classes:
Capability, CapabilityBase, ColumnInfo, ColumnInfoBase, Group, GroupBase, GroupCapability, GroupCapabilityBase, GroupMembership, GroupMembershipBase, JdbcPersistent, 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
 java.lang.Integer getTroid()
          The object's troid, returned after access check.
 java.lang.Integer troid()
          Get the troid without access checking.
 

Method Detail

getTroid

java.lang.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

java.lang.Integer troid()
Get the troid without access checking.

Returns:
the troid


Copyright © 2000-2009 PanEris. All Rights Reserved.