类 PropertyExtractingDelegatingItemWriter<T>

    • 方法详细资料

      • write

        public void write​(java.util.List<? extends T> items)
                   throws java.lang.Exception
        Extracts values from item's fields named in fieldsUsedAsTargetMethodArguments and passes them as arguments to the delegate method.
        指定者:
        write 在接口中 ItemWriter<T>
        参数:
        items - items to be written
        抛出:
        java.lang.Exception - if there are errors. The framework will catch the exception and convert or rethrow it as appropriate.
      • setFieldsUsedAsTargetMethodArguments

        public void setFieldsUsedAsTargetMethodArguments​(java.lang.String[] fieldsUsedAsMethodArguments)
        参数:
        fieldsUsedAsMethodArguments - the values of the these item's fields will be used as arguments for the delegate method. Nested property values are supported, e.g. address.city