|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SystemData
A system item is an item which has an
additional id in the form of string. A system id is required
when we need to make sure that we can get a specific item
without knowing the numeric id. Example of such items are the
root user and the everyone group. The system id:s are defined by
the core layer, since the actual values are of no interest to
the data layer. It is recommended that the id:s are constructed
as: org.proteios.core.User.ROOT.
This interface defines Hibernate database mappings for the
systemId property
to the database column system_id. If a subclass wants
to map the property to another column, it should override
the getSystemId() method and add a
Hibernate tag in the comment.
Hibernate also requires a setSystemId() method, so this must
also be implemented even though it is not required by this interface.
Reference implementation
private String systemId;
public String getSystemId()
{
return systemId;
}
public void setSystemId(String systemId)
{
this.systemId = systemId;
}
| Method Summary | |
|---|---|
String |
getSystemId()
Get the system id for the item. |
| Methods inherited from interface org.proteios.core.data.IdentifiableData |
|---|
getId, getVersion |
| Method Detail |
|---|
String getSystemId()
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||