public abstract class ResourceImpl extends Object implements Resource
Resource, a file-based repository. The location of the file is configured in
MolgenisSettings.| Constructor and Description |
|---|
ResourceImpl(String name,
ResourceConfig config)
Creates a new
Resource |
| Modifier and Type | Method and Description |
|---|---|
Iterable<Entity> |
findAll(Query<Entity> q)
Searches the repository if it is available.
|
String |
getName() |
boolean |
isAvailable()
Indicates if the resource is available.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRepositoryFactorypublic ResourceImpl(String name, ResourceConfig config)
Resourcename - the name of the Resourceconfig - ResourceConfig that configure the location of the filepublic boolean isAvailable()
isAvailable in interface Resourcepublic Iterable<Entity> findAll(Query<Entity> q)
findAll in interface Resourceq - the Query to useEntitys foundNullPointerException - if the repository is not availableCopyright © 2017. All rights reserved.