Package org.hcjf.layers.crud
Interface ReadLayerInterface<O>
-
- All Superinterfaces:
java.lang.reflect.InvocationHandler,LayerInterface
- All Known Subinterfaces:
IdentifiableLayerInterface<O>
public interface ReadLayerInterface<O> extends LayerInterface
- Author:
- javaito
-
-
Method Summary
Modifier and Type Method Description default java.util.Collection<O>read()This method implements the read operation without filters.default Oread(java.lang.Object id)This method implements the read operation to find an instance of the resource using only it's id.default java.util.Collection<O>read(Queryable queryable)This method implements the read operation using the filters specified in the query.-
Methods inherited from interface org.hcjf.layers.LayerInterface
getImplName, getRegex, isDistributed, isPlugin, isStateful
-
-
-
-
Method Detail
-
read
default O read(java.lang.Object id)
This method implements the read operation to find an instance of the resource using only it's id.- Parameters:
id- Id to found the instance.- Returns:
- Return the instance founded or null if the instance is not found.
-
read
default java.util.Collection<O> read()
This method implements the read operation without filters.- Returns:
- List with all the instances of the resource.
-
-