クラス CsvUploadService

java.lang.Object
org.iplass.mtp.impl.fileport.CsvUploadService
すべての実装されたインタフェース:
org.iplass.mtp.spi.Service

public class CsvUploadService extends Object implements org.iplass.mtp.spi.Service
  • コンストラクタの詳細

    • CsvUploadService

      public CsvUploadService()
  • メソッドの詳細

    • init

      public void init(org.iplass.mtp.spi.Config config)
      定義:
      init インタフェース内 org.iplass.mtp.spi.Service
    • destroy

      public void destroy()
      定義:
      destroy インタフェース内 org.iplass.mtp.spi.Service
    • getShowErrorLimitCount

      public int getShowErrorLimitCount()
      CSVアップロードエラー表示件数の上限値を取得します。
      戻り値:
      CSVアップロードエラー表示件数上限値
    • isMustOrderByWithLimit

      public boolean isMustOrderByWithLimit()
      CSVダウンロード時にLimitが指定されている場合にOrderByを必ず指定するかを取得します。 SQLServerでのダウロード処理用のフラグです。
      戻り値:
      CSVダウンロード時にLimitが指定されている場合にOrderByを必ず指定するか
    • validate

      public void validate(InputStream is, String defName, boolean withReferenceVersion)
      Uploadファイルを検証します。
    • validate

      public void validate(InputStream is, String defName, boolean withReferenceVersion, String interrupterClassName)
      Uploadファイルを検証します。
    • validate

      public void validate(InputStream is, String defName, boolean withReferenceVersion, String interrupterClassName, int errorLimit)
      Uploadファイルを検証します。
    • upload

      @Deprecated public CsvUploadStatus upload(InputStream is, String defName, String uniqueKey, TransactionType transactionType, int commitLimit, boolean withReferenceVersion, boolean deleteSpecificVersion)
      推奨されていません。
      Csvファイルをアップロードします。
    • upload

      @Deprecated public CsvUploadStatus upload(InputStream is, String defName, String uniqueKey, boolean isDenyInsert, boolean isDenyUpdate, boolean isDenyDelete, Set<String> insertProperties, Set<String> updateProperties, TransactionType transactionType, int commitLimit, boolean withReferenceVersion, boolean deleteSpecificVersion)
      推奨されていません。
      Csvファイルをアップロードします。
    • upload

      @Deprecated public CsvUploadStatus upload(InputStream is, String defName, String uniqueKey, boolean isDenyInsert, boolean isDenyUpdate, boolean isDenyDelete, Set<String> insertProperties, Set<String> updateProperties, TransactionType transactionType, int commitLimit, boolean withReferenceVersion, boolean deleteSpecificVersion, String interrupterClassName)
      推奨されていません。
      Csvファイルをアップロードします。
    • upload

      public CsvUploadStatus upload(InputStream is, String defName, CsvUploadOption option)
      Csvファイルをアップロードします。
      パラメータ:
      defName - Entity定義名
      option - オプション
      アップロードファイル -
    • asyncUpload

      @Deprecated public void asyncUpload(InputStream is, String fileName, String defName, String parameter, String uniqueKey, TransactionType transactionType, int commitLimit, boolean withReferenceVersion, boolean deleteSpecificVersion)
      Csvファイルを非同期でアップロードします。
    • asyncUpload

      @Deprecated public void asyncUpload(InputStream is, String fileName, String defName, String parameter, String uniqueKey, boolean isDenyInsert, boolean isDenyUpdate, boolean isDenyDelete, Set<String> insertProperties, Set<String> updateProperties, TransactionType transactionType, int commitLimit, boolean withReferenceVersion, boolean deleteSpecificVersion)
      Csvファイルを非同期でアップロードします。
    • asyncUpload

      @Deprecated public void asyncUpload(InputStream is, String fileName, String defName, String parameter, String uniqueKey, boolean isDenyInsert, boolean isDenyUpdate, boolean isDenyDelete, Set<String> insertProperties, Set<String> updateProperties, TransactionType transactionType, int commitLimit, boolean withReferenceVersion, boolean deleteSpecificVersion, String interrupterClassName)
      Csvファイルを非同期でアップロードします。
    • asyncUpload

      public void asyncUpload(InputStream is, String fileName, String defName, String parameter, CsvUploadOption option)
      Csvファイルを非同期でアップロードします。
      パラメータ:
      defName - Entity定義名
      parameter - タスクのパラメータ(起動側での判断用)
      option - オプション
      アップロードファイル -
      アップロードファイル名 -
    • getStatus

      public List<CsvUploadStatus> getStatus()
      非同期アップロード処理状況を返します。
      戻り値:
      アップロード処理状況