public class Neo4jResourceDAO extends BasicDao implements IResourceDAO
Constructor and Description |
---|
Neo4jResourceDAO() |
Modifier and Type | Method and Description |
---|---|
fj.data.Either<List<ResourceMetadataData>,Neo4jOperationStatus> |
getAllResourcesData(Map<String,Object> propertiesToMatch)
the method retrieves all the resources according to the supplied
properties, if none or null is supplied all the resources will be
returned.
|
fj.data.Either<Integer,Neo4jOperationStatus> |
getNumberOfResourcesByName(String name) |
fj.data.Either<ResourceMetadataData,Neo4jOperationStatus> |
getResourceData(String id) |
void |
init() |
void |
setNeo4jClient(Neo4jClient client) |
create, getNeo4jClient, getNodeData, getNodeData, getNodesData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, getNodeData, getNodeData, getNodesData
@PostConstruct public void init()
public fj.data.Either<ResourceMetadataData,Neo4jOperationStatus> getResourceData(String id)
getResourceData
in interface IResourceDAO
public fj.data.Either<Integer,Neo4jOperationStatus> getNumberOfResourcesByName(String name)
getNumberOfResourcesByName
in interface IResourceDAO
public void setNeo4jClient(Neo4jClient client)
setNeo4jClient
in interface IResourceDAO
setNeo4jClient
in class BasicDao
public fj.data.Either<List<ResourceMetadataData>,Neo4jOperationStatus> getAllResourcesData(Map<String,Object> propertiesToMatch)
IResourceDAO
getAllResourcesData
in interface IResourceDAO
propertiesToMatch
- a map of properties to match.Copyright © 2017. All rights reserved.