Class TsvHdl
java.lang.Object
net.tangly.core.domain.TsvHdl
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends HasMutableComments & HasOid>
voidaddComments(Provider<T> provider, List<net.tangly.gleam.model.TsvRelation<Comment>> comments) static <T extends HasMutableComments & HasOid>
voidaddComments(Provider<T> provider, T entity, List<net.tangly.gleam.model.TsvRelation<Comment>> comments) static <T extends MutableEntity>
List<net.tangly.gleam.model.TsvProperty<T, ?>> static voidexportDocuments(@NotNull DomainAudit audit, @NotNull Path path, @NotNull Provider<Document> documents) static <T> voidexportEntities(@NotNull DomainAudit audit, @NotNull Path path, @NotNull net.tangly.gleam.model.TsvEntity<T> tsvEntity, @NotNull Provider<T> provider) static <T> voidexportRelations(@NotNull DomainAudit audit, @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 DomainAudit audit, @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 voidimportDocuments(@NotNull DomainAudit audit, @NotNull Path path, @NotNull Provider<Document> documents) static <T> voidimportEntities(@NotNull DomainAudit audit, @NotNull Path path, @NotNull net.tangly.gleam.model.TsvEntity<T> tsvEntity, @NotNull Provider<T> provider) static <T> List<net.tangly.gleam.model.TsvRelation<T>> importRelations(@NotNull DomainAudit audit, @NotNull Path path, @NotNull net.tangly.gleam.model.TsvEntity<T> tsvEntity) static booleanisEmpty(@NotNull org.apache.commons.csv.CSVRecord record) static org.apache.commons.csv.CSVRecordnextNonEmptyRecord(Iterator<org.apache.commons.csv.CSVRecord> records) 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 BigDecimalparseBigDecimal(@NotNull org.apache.commons.csv.CSVRecord record, @NotNull String fieldName) static LocalDatestatic <T extends Enum<T>>
TparseEnum(@NotNull org.apache.commons.csv.CSVRecord record, @NotNull String fieldName, @NotNull Class<T> enumType) static intstatic StringparseString(@NotNull org.apache.commons.csv.CSVRecord record, @NotNull String fieldName) static <T extends HasMutableTags>
net.tangly.gleam.model.TsvProperty<T, String> tagProperty(String tagName) static Locale
-
Field Details
-
DOCUMENTS_TSV
- See Also:
-
FORMAT
public static final org.apache.commons.csv.CSVFormat FORMAT -
CODE
- See Also:
-
NAME
- See Also:
-
TEXT
- See Also:
-
DOMAIN
- See Also:
-
-
Method Details
-
exportDocuments
public static void exportDocuments(@NotNull @NotNull DomainAudit audit, @NotNull @NotNull Path path, @NotNull @NotNull Provider<Document> documents) -
importDocuments
public static void importDocuments(@NotNull @NotNull DomainAudit audit, @NotNull @NotNull Path path, @NotNull @NotNull Provider<Document> documents) -
isEmpty
public static boolean isEmpty(@NotNull @NotNull org.apache.commons.csv.CSVRecord record) -
nextNonEmptyRecord
public static org.apache.commons.csv.CSVRecord nextNonEmptyRecord(Iterator<org.apache.commons.csv.CSVRecord> records) -
of
-
createTsvEntityFields
public static <T extends MutableEntity> List<net.tangly.gleam.model.TsvProperty<T,?>> createTsvEntityFields() -
parseString
-
parseDate
-
parseInt
public static int parseInt(@NotNull @NotNull org.apache.commons.csv.CSVRecord record, @NotNull @NotNull String fieldName) -
parseBigDecimal
public static BigDecimal parseBigDecimal(@NotNull @NotNull org.apache.commons.csv.CSVRecord record, @NotNull @NotNull String fieldName) -
parseEnum
-
importEntities
public static <T> void importEntities(@NotNull @NotNull DomainAudit audit, @NotNull @NotNull Path path, @NotNull @NotNull net.tangly.gleam.model.TsvEntity<T> tsvEntity, @NotNull @NotNull Provider<T> provider) -
importRelations
public static <T> List<net.tangly.gleam.model.TsvRelation<T>> importRelations(@NotNull @NotNull DomainAudit audit, @NotNull @NotNull Path path, @NotNull @NotNull net.tangly.gleam.model.TsvEntity<T> tsvEntity) -
exportEntities
public static <T> void exportEntities(@NotNull @NotNull DomainAudit audit, @NotNull @NotNull Path path, @NotNull @NotNull net.tangly.gleam.model.TsvEntity<T> tsvEntity, @NotNull @NotNull Provider<T> provider) -
exportRelations
public static <T> void exportRelations(@NotNull @NotNull DomainAudit audit, @NotNull @NotNull Path path, @NotNull @NotNull net.tangly.gleam.model.TsvEntity<T> tsvEntity, @NotNull @NotNull List<net.tangly.gleam.model.TsvRelation<T>> relations) -
addComments
public static <T extends HasMutableComments & HasOid> void addComments(Provider<T> provider, List<net.tangly.gleam.model.TsvRelation<Comment>> comments) -
addComments
public static <T extends HasMutableComments & HasOid> void addComments(Provider<T> provider, T entity, List<net.tangly.gleam.model.TsvRelation<Comment>> comments) -
tagProperty
public static <T extends HasMutableTags> net.tangly.gleam.model.TsvProperty<T,String> tagProperty(String tagName) -
convertFoidTo
-
toLocale
-
exports
public static <T,U> void exports(@NotNull @NotNull DomainAudit audit, @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)
-