@Retention(value=RUNTIME) @Target(value=METHOD) public @interface BindContentProviderEntry
Used to manage an URI managed by a content provider path for annotated data source. This annotation can be used only on methods of DAO definition.
To use this annotation on DAO method, there are some constraints to respect.
integer or a
long or bean value)What follows is an examples of UPDATE method with a parameter used in content provider too.
@BindContentProviderEntry(path="${bean.id}")
@BindSqlUpdate(where="id=${bean.id}")
int updateBean(Person bean);
| Modifier and Type | Optional Element and Description |
|---|---|
BindContentProviderEntry.MultiplicityResultType |
multiplicityResult
Define numerosity of result of operation exposed by content provider
|
String |
path
Define the segment path associated to DAO.
|
public abstract String path
public abstract BindContentProviderEntry.MultiplicityResultType multiplicityResult
Copyright © 2018. All rights reserved.