public class FlexDAOAdapter extends Object
| Constructor and Description |
|---|
FlexDAOAdapter() |
| Modifier and Type | Method and Description |
|---|---|
Object |
create(Object object) |
Object |
createOrUpdate(Object object) |
void |
deleteById(Serializable id,
String className) |
void |
deleteEntity(Object object) |
void |
deleteList(Object[] list) |
void |
deleteListById(Serializable[] ids,
String className) |
Object |
fetch(Serializable id,
String className)
Here is an example of one DAO method that could be exposed remotely.
|
List |
fetchAll(String className) |
List |
search(FlexSearch flexSearch) |
SearchResult |
searchAndLength(FlexSearch flexSearch) |
int |
searchLength(FlexSearch flexSearch) |
Object |
searchUnique(FlexSearch flexSearch) |
void |
setDAO(GeneralDAO dao) |
Object |
update(Object object) |
public void setDAO(GeneralDAO dao)
public Object fetch(Serializable id, String className) throws Exception
Here is an example of one DAO method that could be exposed remotely. The ID of the object and the class of the object to get are passed in and the object from the datastore is returned.
Notice that the implementation first checks for a specific DAO for the class, and if none is found defaults to the general DAO.
Exceptionpublic void deleteById(Serializable id, String className) throws Exception
Exceptionpublic void deleteListById(Serializable[] ids, String className) throws Exception
Exceptionpublic List search(FlexSearch flexSearch) throws Exception
Exceptionpublic int searchLength(FlexSearch flexSearch) throws Exception
Exceptionpublic SearchResult searchAndLength(FlexSearch flexSearch) throws Exception
Exceptionpublic Object searchUnique(FlexSearch flexSearch) throws Exception
ExceptionCopyright © 2008-2013. All Rights Reserved.