Package org.hcjf.layers.crud
Interface UpdateLayerInterface<O>
-
- All Superinterfaces:
java.lang.reflect.InvocationHandler,LayerInterface
public interface UpdateLayerInterface<O> extends LayerInterface
- Author:
- javaito
-
-
Method Summary
Modifier and Type Method Description default Oupdate(O object)This method implements the update of the resource.default java.util.Collection<O>update(Queryable queryable, O object)This method implements the update operation over a add of the instances, this instances are selected using the query like a match.-
Methods inherited from interface org.hcjf.layers.LayerInterface
getImplName, getRegex, isDistributed, isPlugin, isStateful
-
-
-
-
Method Detail
-
update
default O update(O object)
This method implements the update of the resource.- Parameters:
object- Instance of the resource that gonna be updated. This instance must have an id to identify the updatable data.- Returns:
- The instance updated.
-
update
default java.util.Collection<O> update(Queryable queryable, O object)
This method implements the update operation over a add of the instances, this instances are selected using the query like a match.- Parameters:
queryable- Instance that contains all the information to evaluate a query.object- Contains the values for all the instances that found the query evaluation.- Returns:
- Return the instances updated.
-
-