public class LineItemEvents extends Object
LineItemEvent
s.
To query LineItemEvent
s
use ContentResolver.query(Uri, String[], String, String[], String)
.
See LineItemEventContract
.
This class is a thin wrapper over the content provider call methods defined in
LineItemEventContract
. Consumers should prefer this simpler interface however.LineItemEvent
,
LineItemEventContract
Constructor and Description |
---|
LineItemEvents(Context context) |
Modifier and Type | Method and Description |
---|---|
int |
bulkInsert(Collection<LineItemEvent> events)
Insert new line item events.
|
LineItemEvent |
insert(LineItemEvent event)
Insert a new line item event.
|
public LineItemEvents(Context context)
public LineItemEvent insert(LineItemEvent event) throws ClientException
LineItemEvent
.LineItemEvent
. The returned LineItemEvent
will have its
UUID set.ClientException
- if the event could not be inserted. Inspect
ResultStatusException.getResultStatus()
to understand the reason.LineItemEventContract.METHOD_INSERT
public int bulkInsert(Collection<LineItemEvent> events) throws ClientException
LineItemEventContract
to get a list of LineItemEvents.events
- a collection of events to create.events.size()
.ClientException
- if an event could not be inserted, in which case no events will be
inserted. Inspect ResultStatusException.getResultStatus()
to understand the reason.LineItemEventContract.METHOD_BULK_INSERT