Class StorageSession

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public abstract class StorageSession
    extends java.lang.Object
    implements java.io.Closeable
    This class is the base class to implements a storage session over some particular technology. These implementations are the bonds between the storage interface and the particular technologies.
    Author:
    javaito
    • Constructor Summary

      Constructors 
      Constructor Description
      StorageSession​(java.lang.String implName)  
    • Method Summary

      Modifier and Type Method Description
      Delete delete​(Queryable queryable)
      This method must return a delete operation implementation, this implementation depends of the storage session technology.
      java.lang.String getImplName()
      Returns the implementation name.
      Insert insert​(java.lang.Object object)
      This method must return a insert operation implementation, this implementation depends of the storage session technology.
      Select select​(Queryable queryable)
      This method must return a select operation implementation, this implementation depends of the storage session technology.
      Update update​(java.lang.Object instance, Queryable queryable)
      This method must return a update operation implementation, this implementation depends of the storage session technology.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.io.Closeable

        close
    • Constructor Detail

      • StorageSession

        public StorageSession​(java.lang.String implName)
    • Method Detail

      • getImplName

        public final java.lang.String getImplName()
        Returns the implementation name.
        Returns:
        Implementation name.
      • select

        public Select select​(Queryable queryable)
        This method must return a select operation implementation, this implementation depends of the storage session technology.
        Parameters:
        queryable - Object with all the information to create the particular query implementation over the storage technology.
        Returns:
        Return the select action.
      • insert

        public Insert insert​(java.lang.Object object)
        This method must return a insert operation implementation, this implementation depends of the storage session technology.
        Parameters:
        object - Object to initialize the instance of insert operation.
        Returns:
        Return the insert operation.
      • update

        public Update update​(java.lang.Object instance,
                             Queryable queryable)
        This method must return a update operation implementation, this implementation depends of the storage session technology.
        Parameters:
        instance - Object that contains all the attributes to update.
        queryable - Query to select the instance to update.
        Returns:
        Return the update operation.
      • delete

        public Delete delete​(Queryable queryable)
        This method must return a delete operation implementation, this implementation depends of the storage session technology.
        Parameters:
        queryable - Query to select the instances to delete.
        Returns:
        Return the delete operation.