public class DataContextPropertiesImpl extends Object implements DataContextProperties
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_CATALOG_NAME |
static String |
PROPERTY_COLUMN_NAME_LINE_NUMBER |
static String |
PROPERTY_DATA_CONTEXT_TYPE |
static String |
PROPERTY_DATA_SOURCE |
static String |
PROPERTY_DATABASE |
static String |
PROPERTY_DRIVER_CLASS |
static String |
PROPERTY_ENCODING |
static String |
PROPERTY_ESCAPE_CHAR |
static String |
PROPERTY_HOSTNAME |
static String |
PROPERTY_IS_FAIL_ON_INCONSISTENT_ROW_LENGTH |
static String |
PROPERTY_IS_MULTILINE_VALUES_ENABLED |
static String |
PROPERTY_PASSWORD |
static String |
PROPERTY_PORT |
static String |
PROPERTY_QUOTE_CHAR |
static String |
PROPERTY_RESOURCE_PROPERTIES |
static String |
PROPERTY_SEPARATOR_CHAR |
static String |
PROPERTY_SKIP_EMPTY_COLUMNS |
static String |
PROPERTY_SKIP_EMPTY_LINES |
static String |
PROPERTY_TABLE_DEFS |
static String |
PROPERTY_TABLE_TYPES |
static String |
PROPERTY_URL |
static String |
PROPERTY_USERNAME |
Constructor and Description |
---|
DataContextPropertiesImpl() |
DataContextPropertiesImpl(Map<String,Object> map) |
DataContextPropertiesImpl(Properties properties) |
public static final String PROPERTY_USERNAME
public static final String PROPERTY_PASSWORD
public static final String PROPERTY_DRIVER_CLASS
public static final String PROPERTY_HOSTNAME
public static final String PROPERTY_PORT
public static final String PROPERTY_DATABASE
public static final String PROPERTY_URL
public static final String PROPERTY_CATALOG_NAME
public static final String PROPERTY_RESOURCE_PROPERTIES
public static final String PROPERTY_IS_MULTILINE_VALUES_ENABLED
public static final String PROPERTY_IS_FAIL_ON_INCONSISTENT_ROW_LENGTH
public static final String PROPERTY_ESCAPE_CHAR
public static final String PROPERTY_QUOTE_CHAR
public static final String PROPERTY_SEPARATOR_CHAR
public static final String PROPERTY_ENCODING
public static final String PROPERTY_SKIP_EMPTY_COLUMNS
public static final String PROPERTY_SKIP_EMPTY_LINES
public static final String PROPERTY_COLUMN_NAME_LINE_NUMBER
public static final String PROPERTY_DATA_CONTEXT_TYPE
public static final String PROPERTY_TABLE_TYPES
public static final String PROPERTY_DATA_SOURCE
public static final String PROPERTY_TABLE_DEFS
public DataContextPropertiesImpl()
public DataContextPropertiesImpl(Properties properties)
public String getDataContextType()
DataContextProperties
DataContext
, such as "csv" or "jdbc".getDataContextType
in interface DataContextProperties
public void setDataContextType(String type)
public Map<String,Object> toMap()
DataContextProperties
Map
. Note that any
unstandardized properties may also be exposed via this map.toMap
in interface DataContextProperties
public ResourceProperties getResourceProperties()
getResourceProperties
in interface DataContextProperties
public Integer getColumnNameLineNumber()
getColumnNameLineNumber
in interface DataContextProperties
public Boolean isSkipEmptyLines()
isSkipEmptyLines
in interface DataContextProperties
public Boolean isSkipEmptyColumns()
isSkipEmptyColumns
in interface DataContextProperties
public String getEncoding()
getEncoding
in interface DataContextProperties
public Character getSeparatorChar()
getSeparatorChar
in interface DataContextProperties
public Character getQuoteChar()
getQuoteChar
in interface DataContextProperties
public Character getEscapeChar()
getEscapeChar
in interface DataContextProperties
public Boolean isFailOnInconsistentRowLength()
isFailOnInconsistentRowLength
in interface DataContextProperties
public Boolean isMultilineValuesEnabled()
isMultilineValuesEnabled
in interface DataContextProperties
public TableType[] getTableTypes()
getTableTypes
in interface DataContextProperties
public String getCatalogName()
getCatalogName
in interface DataContextProperties
public String getUrl()
getUrl
in interface DataContextProperties
public DataSource getDataSource()
getDataSource
in interface DataContextProperties
public String getUsername()
getUsername
in interface DataContextProperties
public String getPassword()
getPassword
in interface DataContextProperties
public String getDriverClassName()
getDriverClassName
in interface DataContextProperties
public String getHostname()
getHostname
in interface DataContextProperties
public Integer getPort()
getPort
in interface DataContextProperties
public String getDatabaseName()
getDatabaseName
in interface DataContextProperties
public SimpleTableDef[] getTableDefs()
getTableDefs
in interface DataContextProperties
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.