Class StorageAction<S extends StorageSession>

  • Direct Known Subclasses:
    ManipulationDataAction, Select

    public abstract class StorageAction<S extends StorageSession>
    extends java.lang.Object
    This 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.Class getModelClass()
      Returns the class of the model that the action will use internally.
      protected S getSession()
      Returns the storage session instance over the operation was created.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StorageAction

        public StorageAction​(S session,
                             java.lang.Class modelClass)
      • StorageAction

        public StorageAction​(S session)
    • 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.