Class Update<S extends StorageSession,​A>


  • public abstract class Update<S extends StorageSession,​A>
    extends ManipulationDataAction<S,​A>
    Update storage action, this is a operation of data manipulating and supports manipulate many instance in the same time.
    Author:
    javaito
    • Constructor Summary

      Constructors 
      Constructor Description
      Update​(S session, java.lang.Class modelClass, java.lang.Object instance)  
      Update​(S session, java.lang.Class modelClass, java.lang.Object instance, Queryable queryable)  
      Update​(S session, java.lang.Object instance)  
      Update​(S session, java.lang.Object instance, Queryable queryable)  
    • Method Summary

      Modifier and Type Method Description
      protected java.util.Collection<java.lang.Object> getInstances()
      Returns the instance that contains the information to update the instances.
      Queryable getQueryable()
      Returns the queryable that indicate the instance to update.
      • Methods inherited from class java.lang.Object

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

      • Update

        public Update​(S session,
                      java.lang.Class modelClass,
                      java.lang.Object instance,
                      Queryable queryable)
      • Update

        public Update​(S session,
                      java.lang.Object instance,
                      Queryable queryable)
      • Update

        public Update​(S session,
                      java.lang.Class modelClass,
                      java.lang.Object instance)
      • Update

        public Update​(S session,
                      java.lang.Object instance)
    • Method Detail

      • getInstances

        protected java.util.Collection<java.lang.Object> getInstances()
        Returns the instance that contains the information to update the instances.
        Specified by:
        getInstances in class ManipulationDataAction<S extends StorageSession,​A>
        Returns:
        Object that contains the new values.
      • getQueryable

        public Queryable getQueryable()
        Returns the queryable that indicate the instance to update.
        Returns:
        Queryable instance.