Class SqlUpdateHandler

  • All Implemented Interfaces:
    Handler

    public class SqlUpdateHandler
    extends Object
    • Constructor Detail

      • SqlUpdateHandler

        public SqlUpdateHandler​(Class<?> sqlObjectType,
                                Method method)
    • Method Detail

      • warm

        public void warm​(ConfigRegistry config)
        Description copied from interface: Handler
        Called after the method handler is constructed to pre-initialize any important configuration data structures.
        Parameters:
        config - the method configuration to warm
      • invoke

        public Object invoke​(Object target,
                             Object[] args,
                             HandleSupplier hs)
        Description copied from interface: Handler
        Executes a SQL Object method, and returns the result.
        Specified by:
        invoke in interface Handler
        Parameters:
        target - the SQL Object instance being invoked
        args - the arguments that were passed to the method.
        hs - a (possibly lazy) Handle supplier.
        Returns:
        the method return value, or null if the method has a void return type.