|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
B
- Bean type (e.g., com.novell.db.object.IdentityBean).public interface BeanTransporterSync<B extends SentinelBean>
A synchronous, non-callback variation of BeanTransporter
for use
in Java code (as opposed to GWT code).
Method Summary | |
---|---|
void |
cleanup(String url)
Issues a cleanup request to the server for the passed URL. |
long |
count()
Get a count of the data instances available. |
long |
count(String query)
Get a count of the data instances available, optionally filtered by the passed query. |
void |
delete(B bean)
Delete the data instance represented by the passed bean. |
void |
delete(String url)
Delete the data instance at the specified URL. |
B |
get(String url,
Iterable<String> fields)
Get the data at the passed URL in a bean. |
byte[] |
getOctetData(String url)
Get the octet stream value of an object attribute referenced by the passed URL. |
PagedBeanCollection<B> |
list()
Get a collection of the beans available. |
PagedBeanCollection<B> |
list(String query,
int pageSize,
Iterable<String> fields)
Get a collection of the data instances available, optionally filtered by the passed query. |
PagedBeanCollection<B> |
list(String query,
int pageSize,
Iterable<String> fields,
boolean getChangeCounts)
Get a collection of the data instances available, optionally filtered by the passed query. |
PagedBeanCollection<B> |
listFromURL(String url)
Get a collection of the beans available at the passed URL. |
PagedBeanCollection<B> |
listFromURL(String url,
int pageSize,
Iterable<String> fields)
Get a collection of the data instances available at the passed URL. |
PagedBeanCollection<B> |
listFromURL(String url,
int pageSize,
Iterable<String> fields,
boolean getChangeCounts)
Get a collection of the data instances available at the passed URL. |
String |
post(B bean)
Create a new data instance. |
void |
put(B bean)
Update the underlying Sentinel data from the passed bean. |
void |
put(String url,
byte[] data)
Put the octet stream value of an object attribute referenced by the passed URL. |
Method Detail |
---|
long count() throws HttpException
HttpException
- If an error occurs executing the HTTP request.long count(String query) throws HttpException
query
- Optional filter for the results (may be null
).
HttpException
- If an error occurs executing the HTTP request.PagedBeanCollection<B> listFromURL(String url) throws HttpException
url
- The URL specifying the beans.
HttpException
- If an error occurs executing the HTTP request.PagedBeanCollection<B> listFromURL(String url, int pageSize, Iterable<String> fields) throws HttpException
url
- The URL specifying the beans.pageSize
- The maximum number of beans to return as a result of this call.fields
- Optional collection of the names of fields to return in each bean (may be null
,
if a single value of "none" is specified then no fields are retrieved).
HttpException
- If an error occurs executing the HTTP request.PagedBeanCollection<B> listFromURL(String url, int pageSize, Iterable<String> fields, boolean getChangeCounts) throws HttpException
url
- The URL specifying the beans.pageSize
- The maximum number of beans to return as a result of this call.fields
- Optional collection of the names of fields to return in each bean (may be null
,
if a single value of "none" is specified then no fields are retrieved).getChangeCounts
- if true, get the "delta counts" of the object.
HttpException
- If an error occurs executing the HTTP request.PagedBeanCollection<B> list(String query, int pageSize, Iterable<String> fields) throws HttpException
query
- Optional filter for the results (may be null
).pageSize
- The maximum number of beans to return as a result of this call.fields
- Optional collection of the names of fields to return in each bean (may be null
,
if a single value of "none" is specified then no fields are retrieved).
HttpException
- If an error occurs executing the HTTP request.PagedBeanCollection<B> list(String query, int pageSize, Iterable<String> fields, boolean getChangeCounts) throws HttpException
query
- Optional filter for the results (may be null
).pageSize
- The maximum number of beans to return as a result of this call.fields
- Optional collection of the names of fields to return in each bean (may be null
,
if a single value of "none" is specified then no fields are retrieved).getChangeCounts
- if true, get the "delta counts" of the object.
HttpException
- If an error occurs executing the HTTP request.PagedBeanCollection<B> list() throws HttpException
HttpException
- If an error occurs executing the HTTP request.B get(String url, Iterable<String> fields) throws HttpException
url
- The URL specifying the data to retrieve.fields
- Optional collection of the names of fields to return in each bean (may be null
,
if a single value of "none" is specified then no fields are retrieved).
HttpException
- If an error occurs executing the HTTP request.byte[] getOctetData(String url) throws HttpException
url
- The reference to the attribute value.
HttpException
- If an error occurs executing the HTTP request.void put(B bean) throws BeanSerializationException, HttpException
bean
- The bean containing the updated data (must have been obtained from a list
or get
call.
BeanSerializationException
HttpException
- If an error occurs executing the HTTP request.void put(String url, byte[] data) throws HttpException
url
- The reference to the attribute value.data
- The octet stream data for the attribute value.
HttpException
- If an error occurs executing the HTTP request.String post(B bean) throws BeanSerializationException, HttpException
bean
- The bean containing the data for the new instance.
BeanSerializationException
- If an error occurs transforming the bean data into HTTP request data.
HttpException
- If an error occurs executing the HTTP request.void delete(String url) throws HttpException
url
- The URL specifying the data instance to be deleted.
HttpException
- If an error occurs executing the HTTP request.void delete(B bean) throws HttpException
bean
- The representation of the data instance to be deleted (must have been obtained from a list
or get
call.
HttpException
- If an error occurs executing the HTTP request.void cleanup(String url) throws HttpException
url
- The URL representing the resource to clean up.
HttpException
- If an error occurs executing the HTTP request.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |