public class FieldConfig extends ConfigBase
LOG| Constructor and Description |
|---|
FieldConfig(byte[] configData,
String schemaName) |
FieldConfig(List<Map<String,String>> fields,
String forEachXPath,
String schemaName) |
extractConfigData, getActiveConfig, stringFromXpathpublic FieldConfig(byte[] configData,
String schemaName)
throws com.ximpleware.VTDException
com.ximpleware.VTDExceptionpublic String getName()
public String getForEachXPath()
public void setForEachXPath(String forEachXPath)
public static boolean isKnownType(String type)
public static boolean isBinaryDataType(String type)
public static boolean isStringTypeArray(String type)
type - public static boolean isXmlType(String type)
public static boolean isBooleanType(String type)
type - public static boolean isTimestampWithoutTZType(String type)
type equals the SQL
"timestamp without time zone" type.type - String to test.type denotes a timestamp type without
timezone information.public boolean isOfTimestampWithoutTZType(String fieldName)
public static boolean isStringType(String type)
public static boolean isIntegerType(String type)
type - public boolean isOfStringType(String fieldName)
public String[] getPrimaryKey()
public java.util.stream.Stream<Map<String,String>> getPrimaryKeyFields()
public List<Integer> getPrimaryKeyFieldNumbers()
public String[] getColumnsToRetrieve()
public String getPrimaryKeyString()
This method calls getPrimaryKey() to obtain the list of primary
key column names. It then builds a string consisting of these names
separated by commas and returns this string.
Example: If the primary key columns are "pmid" and "systemID", the string returned would be "pmid,systemID".
public String[] expandPKNames(String[] fmtStrs)
String.format(String, Object...) with a single %s symbol.
The number of format
string must be equal to the number of primary key elements of this table schema definition. Then, for the
ith format string, the ith primary key element is applied.fmtStrs - The format string to fill with primary key elements, one format string per primary key element.String#format(String, Object...)}public String[] expandPKNames(String fmtStr)
fmtStr - The format string to be filled with the primary key elements.public String getTimestampFieldName()
public String getConfigText()
public String[] getColumns()
Copyright © 2018 JULIE Lab, Germany. All rights reserved.