public class EventQueryToken extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CALENDAR_ID_SELECTION
The selection for filtering by calendar id.
|
static String |
CALENDAR_OWNER_SELECTION
The selection for filtering by owner account.
|
String |
selection
The selection of the query.
|
String[] |
selectionArgs
The arguments of the query.
|
Constructor and Description |
---|
EventQueryToken(String selection,
String[] selectionArgs)
Creates a new instance of the
EventQueryToken class. |
Modifier and Type | Method and Description |
---|---|
static EventQueryToken |
getCalendarById(String id)
Gets the query tokens for accessing a calendar by using its id.
|
static EventQueryToken |
getCalendarsById(String[] calendarIDs)
Gets the query tokens for accessing calendars by providing their IDs.
|
static EventQueryToken |
getCalendarsByOwner(String owner)
Gets the query token for accessing a calendar belonging to a specific user.
|
static EventQueryToken |
getCalendarsByOwners(String[] owners)
Gets the query token for accessing a calendar belonging to a specific collection of users.
|
static EventQueryToken |
getDefaultCalendar()
Gets the query tokens for accessing the default calendar of the phone device.
|
long |
getMaxDate()
Gets the max date for the query.
|
long |
getMinDate()
Gets the min date for the query.
|
void |
setMaxDate(long maxDate)
Sets the max date for the query.
|
void |
setMinDate(long minDate)
Sets the min date for the query.
|
void |
setRange(long minDate,
long maxDate)
Sets the min and max dates for the query.
|
public static final String CALENDAR_ID_SELECTION
public static final String CALENDAR_OWNER_SELECTION
public String selection
buildSelection()
instead.public String[] selectionArgs
public EventQueryToken(String selection, String[] selectionArgs)
EventQueryToken
class.selection
- the base selection to be used.selectionArgs
- the selection arguments to be used.public static EventQueryToken getDefaultCalendar()
public static EventQueryToken getCalendarById(String id)
id
- the id of the calendar.public static EventQueryToken getCalendarsById(String[] calendarIDs)
calendarIDs
- a collection of the IDs of the calendars.public static EventQueryToken getCalendarsByOwner(String owner)
owner
- the name of the user owning the calendar.public static EventQueryToken getCalendarsByOwners(String[] owners)
owners
- the names of the users owning the calendars.public long getMinDate()
public void setMinDate(long minDate)
minDate
- the new min date.public long getMaxDate()
public void setMaxDate(long maxDate)
maxDate
- the new max date.public void setRange(long minDate, long maxDate)
minDate
- the new minDate.maxDate
- the new max date.