public class JpaEventQuery extends Object implements EventQuery
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_RESULTS |
Constructor and Description |
---|
JpaEventQuery(javax.persistence.EntityManager em) |
Modifier and Type | Method and Description |
---|---|
EventQuery |
client(String clientId) |
EventQuery |
firstResult(int firstResult) |
EventQuery |
fromDate(Date fromDate) |
Stream<Event> |
getResultStream()
Returns requested results that match given criteria as a stream.
|
EventQuery |
ipAddress(String ipAddress) |
EventQuery |
maxResults(int maxResults) |
EventQuery |
realm(String realmId) |
EventQuery |
toDate(Date toDate) |
EventQuery |
type(EventType... types) |
EventQuery |
user(String userId) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResultList
public static final int DEFAULT_MAX_RESULTS
public EventQuery type(EventType... types)
type
in interface EventQuery
public EventQuery realm(String realmId)
realm
in interface EventQuery
public EventQuery client(String clientId)
client
in interface EventQuery
public EventQuery user(String userId)
user
in interface EventQuery
public EventQuery fromDate(Date fromDate)
fromDate
in interface EventQuery
public EventQuery toDate(Date toDate)
toDate
in interface EventQuery
public EventQuery ipAddress(String ipAddress)
ipAddress
in interface EventQuery
public EventQuery firstResult(int firstResult)
firstResult
in interface EventQuery
public EventQuery maxResults(int maxResults)
maxResults
in interface EventQuery
public Stream<Event> getResultStream()
EventQuery
getResultStream
in interface EventQuery
Copyright © 2020 JBoss by Red Hat. All rights reserved.