Last update: 2011-06-23

org.proteios.core.data
Interface SystemData

All Superinterfaces:
IdentifiableData
All Known Implementing Classes:
DirectoryData, FileTypeData, GroupData, HardwareTypeData, ProtocolTypeData, QuotaData, QuotaTypeData, RoleData, SoftwareTypeData, UserData

public interface SystemData
extends IdentifiableData

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;
}

Version:
2.0
Author:
Nicklas
See Also:
Basic classes and interfaces

Method Summary
 String getSystemId()
          Get the system id for the item.
 
Methods inherited from interface org.proteios.core.data.IdentifiableData
getId, getVersion
 

Method Detail

getSystemId

String getSystemId()
Get the system id for the item.

Returns:
The id of the item or null
Hibernate: property
column="`system_id`" type="string" length="255" not-null="false" update="false"

Last update: 2011-06-23