From edcd0318d255da8647626a00fda14c544609281a Mon Sep 17 00:00:00 2001 From: Purushottam Khedre Date: Thu, 22 Aug 2024 11:47:02 +0530 Subject: [PATCH] Added method to set custom escape character --- .../groovy/org/moqui/impl/entity/EntityDataLoaderImpl.groovy | 1 + framework/src/main/java/org/moqui/entity/EntityDataLoader.java | 1 + 2 files changed, 2 insertions(+) diff --git a/framework/src/main/groovy/org/moqui/impl/entity/EntityDataLoaderImpl.groovy b/framework/src/main/groovy/org/moqui/impl/entity/EntityDataLoaderImpl.groovy index adb3869a0..b4281b6e9 100644 --- a/framework/src/main/groovy/org/moqui/impl/entity/EntityDataLoaderImpl.groovy +++ b/framework/src/main/groovy/org/moqui/impl/entity/EntityDataLoaderImpl.groovy @@ -116,6 +116,7 @@ class EntityDataLoaderImpl implements EntityDataLoader { @Override EntityDataLoader csvDelimiter(char delimiter) { this.csvDelimiter = delimiter; return this } @Override EntityDataLoader csvCommentStart(char commentStart) { this.csvCommentStart = commentStart; return this } @Override EntityDataLoader csvQuoteChar(char quoteChar) { this.csvQuoteChar = quoteChar; return this } + @Override EntityDataLoader csvEscapeChar(char escapeChar) { this.csvEscapeChar = escapeChar; return this } @Override EntityDataLoader csvEntityName(String entityName) { if (!efi.isEntityDefined(entityName) && !sfi.isServiceDefined(entityName)) diff --git a/framework/src/main/java/org/moqui/entity/EntityDataLoader.java b/framework/src/main/java/org/moqui/entity/EntityDataLoader.java index 7ad4cfe3b..63447b92c 100644 --- a/framework/src/main/java/org/moqui/entity/EntityDataLoader.java +++ b/framework/src/main/java/org/moqui/entity/EntityDataLoader.java @@ -96,6 +96,7 @@ public interface EntityDataLoader { EntityDataLoader csvDelimiter(char delimiter); EntityDataLoader csvCommentStart(char commentStart); EntityDataLoader csvQuoteChar(char quoteChar); + EntityDataLoader csvEscapeChar(char escapeChar); /** For CSV files use this name (entity or service name) instead of looking for it on line one in the file */ EntityDataLoader csvEntityName(String entityName);