Package ch.ivyteam.ivy.persistence
Interface IGroup<T>
- Type Parameters:
T
- the type of the first object in the group
public interface IGroup<T>
A group. Object of that implements this interface are returned by the
IClassPersistencyQuery.group(IPersistentTransaction, ch.ivyteam.ivy.persistence.restricted.query.PersistentQuery, int, int, boolean)
method.
This interface provides the number of objects that belong to this group.
Moreover it provides the first member object of a group as an example of the group objects.
User can read the different attributes of the example object to get more information about the group.- Since:
- 15.11.2007
- API:
- This is a public API.
-
Method Summary
Modifier and TypeMethodDescriptionGets the first object in a groupint
Gets the number of objects in a group
-
Method Details
-
getFirstObjectInGroup
T getFirstObjectInGroup()Gets the first object in a group- Returns:
- first object
- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
getNumberOfObjectsInGroup
int getNumberOfObjectsInGroup()Gets the number of objects in a group- Returns:
- number of objects in group
- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-