Package org.hcjf.layers.storage.actions
Class StorageAction<S extends StorageSession>
- java.lang.Object
-
- org.hcjf.layers.storage.actions.StorageAction<S>
-
- Direct Known Subclasses:
ManipulationDataAction,Select
public abstract class StorageAction<S extends StorageSession> extends java.lang.ObjectThis class is the base class for all the possible operations over data storage session.- Author:
- javaito
-
-
Constructor Summary
Constructors Constructor Description StorageAction(S session)StorageAction(S session, java.lang.Class modelClass)
-
Method Summary
Modifier and Type Method Description abstract <R> ResultSet<R>execute()This method implements the logic to execute the current operation.protected java.lang.ClassgetModelClass()Returns the class of the model that the action will use internally.protected SgetSession()Returns the storage session instance over the operation was created.
-
-
-
Method Detail
-
getSession
protected final S getSession()
Returns the storage session instance over the operation was created.- Returns:
- Storage session instance.
-
getModelClass
protected final java.lang.Class getModelClass()
Returns the class of the model that the action will use internally.- Returns:
- Model class.
-
execute
public abstract <R> ResultSet<R> execute()
This method implements the logic to execute the current operation.- Type Parameters:
R- Expected return type.- Returns:
- Result set with the execution response.
-
-