Package net.tangly.erp.ports
Class TsvHdl
java.lang.Object
net.tangly.erp.ports.TsvHdl
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends net.tangly.core.HasComments & net.tangly.core.HasOid>
voidaddComments
(net.tangly.core.providers.Provider<T> provider, List<net.tangly.gleam.model.TsvRelation<net.tangly.core.Comment>> comments) static <T extends net.tangly.core.HasComments & net.tangly.core.HasOid>
voidaddComments
(net.tangly.core.providers.Provider<T> provider, T entity, List<net.tangly.gleam.model.TsvRelation<net.tangly.core.Comment>> comments) static <T extends net.tangly.core.Entity>
List<net.tangly.gleam.model.TsvProperty<T, ?>> static <T> void
exportEntities
(@NotNull String domain, @NotNull Path path, @NotNull net.tangly.gleam.model.TsvEntity<T> tsvEntity, @NotNull net.tangly.core.providers.Provider<T> provider) static <T> void
exportRelations
(@NotNull String domain, @NotNull Path path, @NotNull net.tangly.gleam.model.TsvEntity<T> tsvEntity, @NotNull List<net.tangly.gleam.model.TsvRelation<T>> relations) static <T,
U> void exports
(@NotNull String domain, @NotNull Path path, @NotNull net.tangly.gleam.model.TsvEntity<T> tsvEntity, @NotNull List<U> items, @NotNull BiConsumer<U, org.apache.commons.csv.CSVPrinter> lambda) static <T> void
importEntities
(@NotNull String domain, @NotNull Reader in, String source, @NotNull net.tangly.gleam.model.TsvEntity<T> tsvEntity, @NotNull net.tangly.core.providers.Provider<T> provider) static <T> List
<net.tangly.gleam.model.TsvRelation<T>> importRelations
(@NotNull String domain, @NotNull Reader in, String source, @NotNull net.tangly.gleam.model.TsvEntity<T> tsvEntity) static <T> net.tangly.gleam.model.TsvEntity
<T> of
(@NotNull Class<T> clazz, @NotNull List<net.tangly.gleam.model.TsvProperty<T, ?>> properties, @NotNull Function<Long, T> supplier) static LocalDate
static int
static <T extends net.tangly.core.HasTags>
net.tangly.gleam.model.TsvProperty<T, String> tagProperty
(String tagName) static Locale
-
Field Details
-
FORMAT
public static final org.apache.commons.csv.CSVFormat FORMAT -
OID
- See Also:
-
CODE
- See Also:
-
GENDER
- See Also:
-
-
Method Details
-
of
-
createTsvEntityFields
public static <T extends net.tangly.core.Entity> List<net.tangly.gleam.model.TsvProperty<T,?>> createTsvEntityFields() -
parseDate
-
parseInt
public static int parseInt(@NotNull @NotNull org.apache.commons.csv.CSVRecord record, @NotNull @NotNull String fieldName) -
importEntities
-
importRelations
-
exportEntities
-
exportRelations
-
addComments
public static <T extends net.tangly.core.HasComments & net.tangly.core.HasOid> void addComments(net.tangly.core.providers.Provider<T> provider, List<net.tangly.gleam.model.TsvRelation<net.tangly.core.Comment>> comments) -
addComments
public static <T extends net.tangly.core.HasComments & net.tangly.core.HasOid> void addComments(net.tangly.core.providers.Provider<T> provider, T entity, List<net.tangly.gleam.model.TsvRelation<net.tangly.core.Comment>> comments) -
tagProperty
-
convertFoidTo
-
toLocale
-
exports
public static <T,U> void exports(@NotNull @NotNull String domain, @NotNull @NotNull Path path, @NotNull @NotNull net.tangly.gleam.model.TsvEntity<T> tsvEntity, @NotNull @NotNull List<U> items, @NotNull @NotNull BiConsumer<U, org.apache.commons.csv.CSVPrinter> lambda)
-