@Singleton public class ResourceModelDao extends GenericDaoImpl<ResourceModel> implements IGenericDAO<ResourceModel>
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.base.Function<ResourceModel,org.gcube.rest.commons.resourceawareservice.resources.Resource> |
converterResourceModelToResource |
static com.google.common.base.Function<org.gcube.rest.commons.resourceawareservice.resources.Resource,ResourceModel> |
converterResourceResourceModel |
| Constructor and Description |
|---|
ResourceModelDao() |
| Modifier and Type | Method and Description |
|---|---|
static List<org.gcube.rest.commons.resourceawareservice.resources.Resource> |
convertToResourceList(List<ResourceModel> list) |
Class<ResourceModel> |
getClazz() |
List<ResourceModel> |
getGenericResourcesByID(String resourceID,
String scope) |
List<ResourceModel> |
getGenericResourcesByName(String name,
String scope) |
List<ResourceModel> |
getGenericResourcesByType(String type,
String scope) |
List<ResourceModel> |
getGenericResourcesByTypeAndName(String type,
String name,
String scope) |
List<String> |
listGenericResourceIDsByType(String type,
String scope) |
countAll, countByCriteria, countByExample, delete, deleteById, deleteByResourceID, findAll, findByCriteria, findByCriteria, findByCriteria, findByExample, findById, findByNamedQuery, findByNamedQueryAndNamedParams, getByResourceID, load, saveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcountAll, delete, deleteById, findAll, findByCriteria, findByExample, findByNamedQuery, findByNamedQueryAndNamedParams, load, savepublic static final com.google.common.base.Function<ResourceModel,org.gcube.rest.commons.resourceawareservice.resources.Resource> converterResourceModelToResource
public static final com.google.common.base.Function<org.gcube.rest.commons.resourceawareservice.resources.Resource,ResourceModel> converterResourceResourceModel
public Class<ResourceModel> getClazz()
getClazz in class GenericDaoImpl<ResourceModel>public List<ResourceModel> getGenericResourcesByID(String resourceID, String scope)
public List<ResourceModel> getGenericResourcesByName(String name, String scope)
public List<ResourceModel> getGenericResourcesByType(String type, String scope)
public List<ResourceModel> getGenericResourcesByTypeAndName(String type, String name, String scope)
public List<String> listGenericResourceIDsByType(String type, String scope)
public static List<org.gcube.rest.commons.resourceawareservice.resources.Resource> convertToResourceList(List<ResourceModel> list)
Copyright © 2016. All Rights Reserved.