|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.learner.history.HistoryQuery
public class HistoryQuery
Class representing the constraint sets used to query the Database.
A HistoryQuery supports setting include constraints used to constrain some values events
included in the results must have, and exclude constraints used to constrain some values
events in the results should not have.
| Field Summary | |
|---|---|
protected static Logger |
log
|
| Constructor Summary | |
|---|---|
HistoryQuery()
Default constructor, does nothing. |
|
HistoryQuery(String userId)
Initializes a new HistoryQuery with an include constraint on the user id. |
|
| Method Summary | |
|---|---|
protected org.hibernate.criterion.Criterion |
getCriteria()
Returns a Hibernate Criterion that expresses this HistoryQuery. |
void |
setBookId(String bookId)
Query a specific book |
void |
setBookIds(Collection<String> bookIds)
Query a set of books |
void |
setEventType(String eventType)
Query a specific event type |
void |
setEventTypes(Collection<String> eventTypes)
Query a set of event types |
void |
setEventTypes(String[] eventTypes)
Convenience function (Query an array of event types) |
void |
setExcludeEventType(String eventType)
Exclude a specific event type from query |
void |
setExcludeEventTypes(Collection<String> eventTypes)
Exclude a specific collection of event types from query |
void |
setExcludeEventTypes(String[] eventTypes)
Convenience function (Exclude an array of event types from query) |
void |
setExcludeUsers(Collection<String> excludeUsers)
Exclude a set of users |
void |
setGroupId(String groupId)
Query a user group |
void |
setGroupIds(Collection<String> groupIds)
Query a set of groups |
void |
setItem(Item item)
Query a specific item |
void |
setItemId(String itemId)
Query a specific item by ID |
void |
setItemIds(Collection<String> itemIds)
Query a set of items by ID |
void |
setItemIds(String[] itemIds)
Convenience function (Query a set of items by ID) |
void |
setItems(Collection<Item> items)
Query a set of items |
void |
setItems(Item[] items)
Convenience function (Query a set of items) |
void |
setMaxTimestamp(long maxTime)
Query ending at a specific timestamp |
void |
setMinTimestamp(long minTime)
Query beginning at a specific timestamp |
void |
setUserId(String userId)
Query a specific user |
void |
setUserIds(Collection<String> userIds)
Query a set of users |
void |
setUserIds(String[] userIds)
Convenience function (Query an array of users) |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static Logger log
| Constructor Detail |
|---|
public HistoryQuery()
public HistoryQuery(String userId)
include constraint on the user id.
userId - The userId to include in the result set.| Method Detail |
|---|
public void setUserId(String userId)
public void setUserIds(Collection<String> userIds)
public void setExcludeUsers(Collection<String> excludeUsers)
public void setBookId(String bookId)
public void setBookIds(Collection<String> bookIds)
public void setUserIds(String[] userIds)
public void setGroupId(String groupId)
public void setGroupIds(Collection<String> groupIds)
public void setEventType(String eventType)
public void setEventTypes(Collection<String> eventTypes)
public void setEventTypes(String[] eventTypes)
public void setExcludeEventType(String eventType)
public void setExcludeEventTypes(Collection<String> eventTypes)
public void setExcludeEventTypes(String[] eventTypes)
public void setMinTimestamp(long minTime)
public void setMaxTimestamp(long maxTime)
public void setItem(Item item)
public void setItems(Collection<Item> items)
public void setItems(Item[] items)
public void setItemId(String itemId)
public void setItemIds(Collection<String> itemIds)
public void setItemIds(String[] itemIds)
protected org.hibernate.criterion.Criterion getCriteria()
Criterion that expresses this HistoryQuery.
The returned Criterion is a Conjunction of the Disjunction of
the include constraints and the negation of the Disjunction of the exclude
constraints.
Criterion that expresses this HistoryQuery.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||