Class SQLUpdateActionImpl<T extends java.lang.Number>

    • Field Detail

      • numberClass

        @NotNull
        protected final @NotNull java.lang.Class<T extends java.lang.Number> numberClass
      • returnGeneratedKeys

        protected boolean returnGeneratedKeys
    • Constructor Detail

      • SQLUpdateActionImpl

        public SQLUpdateActionImpl​(@NotNull
                                   @NotNull SQLManagerImpl manager,
                                   @NotNull
                                   @NotNull java.lang.Class<T> numberClass,
                                   @NotNull
                                   @NotNull java.lang.String sql)
      • SQLUpdateActionImpl

        public SQLUpdateActionImpl​(@NotNull
                                   @NotNull SQLManagerImpl manager,
                                   @NotNull
                                   @NotNull java.lang.Class<T> numberClass,
                                   @NotNull
                                   @NotNull java.util.UUID uuid,
                                   @NotNull
                                   @NotNull java.lang.String sql)
    • Method Detail

      • execute

        @NotNull
        public T execute()
                  throws java.sql.SQLException
        Description copied from interface: SQLAction
        执行该Action对应的SQL语句
        Specified by:
        execute in interface SQLAction<T extends java.lang.Number>
        Returns:
        指定数据类型
        Throws:
        java.sql.SQLException - 当SQL操作出现问题时抛出
      • returnGeneratedKey

        public <N extends java.lang.Number> SQLUpdateAction<N> returnGeneratedKey​(java.lang.Class<N> keyTypeClass)
        Description copied from interface: SQLUpdateAction
        设定该操作返回自增键序列。
        Specified by:
        returnGeneratedKey in interface SQLUpdateAction<T extends java.lang.Number>
        Type Parameters:
        N - 自增键序列类型 Number
        Parameters:
        keyTypeClass - 自增序列的数字类型
        Returns:
        SQLUpdateAction