public class JsonConnectorParams extends FileConnectorParams
DataSetConnectorParams
used by JsonConnector.JsonConnector
,
Serialized FormModifier and Type | Field and Description |
---|---|
static String |
KEY_VALUE_PROP
The KEY_VALUE property.
|
static String |
NESTED_STYLE_PROP
The NESTED STYLE property.
|
static String |
PREFIX
The PREFIX.
|
static String |
ROOT_NAME_PROP
The ROOT NAME property.
|
static String |
START_ARRAY
The Constant START_ARRAY.
|
static String |
START_NAMED_OBJECT
The Constant START_NAMED_OBJECT.
|
static String |
START_OBJECT
The Constant START_OBJECT.
|
static String |
START_STYLE_PROP
The START STYLE property.
|
static String |
START_VARIABLE_OBJECT
The Constant START_VARIABLE_OBJECT.
|
ADJUST_DATA_TYPE_PROP, ALL_STRINGS_PROP, BASE64_ENCODE_CLOB_PROP, BOOLEAN_AS_NUMBER_PROP, CONVERT_NULL_PROP, ENCODING_PROP, NAME_TO_SQL_NAME_PROP, NULL_IF_EMPTY_PROP, OVERRIDE_WILCARD_PROP, SPLIT_BY_PROP, SUFFIX_PROP, TEMPALTE_PROP
AUTO_COMMIT_PROP, FILE_NAME_PROP, MAX_ROWS_EXCEEDED_EXCEPTION, PASSWORD_PROP, PROPERTIES_PROP, TRANSPORT_PROP, USE_SELECTED_PROP, USER_ID_PROP
Constructor and Description |
---|
JsonConnectorParams()
Instantiates a new JsonConnectorParams.
|
JsonConnectorParams(CacheProvider<String,Object> cacheProvider,
boolean silent,
int logStep)
Instantiates a new JsonConnectorParams.
|
Modifier and Type | Method and Description |
---|---|
JsonConnectorParams |
copy()
Create a copy of this object.
|
String |
getExt()
Gets the file extension.
|
String |
getFilter()
Gets the javascript filter.
|
JsonGenerator |
getGenerator()
Gets the json generator.
|
JsonWriter |
getJsonWriter()
Gets the json writer.
|
String |
getNestedStyle()
Gets the nested style: array, object, named object.
|
String |
getPropsHint()
Gets the hint displayed next to the properties editor.
|
String |
getPropsWizardResource(Driver driver,
String connectionDriver)
Gets the name of the xml file used to create a wizard for editing
properties.
|
String |
getRootName()
Gets the root object name.
|
String |
getStartStyle()
Gets the start style: array, object, named object.
|
Writer |
getWriter()
Gets the writer.
|
void |
init(Alias alis)
Initializes itself using given alias.
|
void |
init(Map<String,String> props)
Initializes itself using given properties.
|
void |
init(ObjectStorage storage)
Initializes itself using given object storage.
|
boolean |
isEnableKeyValue()
Checks if is key value special case is enabled.
|
void |
setEnableKeyValue(boolean enableKeyValue)
Sets the value for the key-value special case.
|
void |
setExt(String value)
Sets the file extension.
|
void |
setFilter(String filter)
Sets the javascript filter.
|
void |
setGenerator(JsonGenerator generator)
Sets the json generator.
|
void |
setJsonWriter(JsonWriter jsonWriter)
Sets the json writer.
|
void |
setNestedStyle(String value)
Sets the nested style.
|
void |
setRootName(String value)
Sets the root object name.
|
void |
setStartStyle(String value)
Sets the start style.
|
void |
setWriter(Writer value)
Sets the writer.
|
alias2alias, deserializeToInputStream, getAlias, getCdata, getDateFormat, getDateTimeFormat, getEncoding, getFileName, getFileName, getFileNameIfFileSystem, getFolder, getInitStr, getOriginalAlias, getPassword, getProperties, getRealFileName, getSplitBy, getSuffix, getTemplate, getTemplateToUse, getTimeFormat, getTransport, getUserId, getWildcardUrl, isAdjustDataTypes, isAllStrings, isBooleanAsNumber, isConvertNameToSqlName, isConvertNull, isCurrentStreaming, isDateFormat, isDateTimeFormat, isDisableStreaming, isEncodeClob, isFileNameRequired, isForceExt, isNoOriginalFileName, isNullIfEmpty, isOverrideWildcrad, isParseDates, isTimeFormat, isTrimValue, needToEncode, selfDiscover, setAdjustDataTypes, setAllStrings, setBooleanAsNumber, setCdata, setConvertNameToSqlName, setConvertNull, setDateFormat, setDateTimeFormat, setDisableStreaming, setEncodeClob, setEncoding, setFieldDataType, setFileName, setFileNameRequired, setFolder, setForceExt, setNoOriginalFileName, setNullIfEmpty, setOverrideWildcrad, setParseDates, setPassword, setProperties, setRealFileName, setSplitBy, setSuffix, setTemplate, setTimeFormat, setTransport, setTrimValue, setUserId
getAddFieldValueCallback, getAddRecordCallback, getAfterCallback, getBeforeCallback, getCacheProvider, getCrudAction, getInputStream, getIoProcessor, getLogStep, getMaxRows, getOutputStream, getParams, getReadTracker, getTarget, getTransactionMonitor, hasAddRecordCallback, isCleanUpPersistOccured, isCloseInput, isCloseOutput, isEnabled, isIgnoreEmpty, isIgnoreNoRecords, isMaxRowsExceededException, isPostPersistOccured, isPrePersistOccured, isReadOnlyMetadata, isSilent, isStreaming, prepareForPopulate, setAddFieldValueCallback, setAddRecordCallback, setAfterCallback, setBeforeCallback, setCacheProvider, setCleanUpPersistOccurred, setCloseInput, setCloseOutput, setCrudAction, setEnabled, setHasAddRecordCallback, setIgnoreEmpty, setIgnoreNoRecords, setInputStream, setIoProcessor, setLogStep, setMaxRows, setOutputStream, setPostPersistOccured, setPrePersistOccured, setReadOnlyMetadata, setReadTracker, setSilent, setTarget, setTransactionMonitor, setUseSelectedDataSet, useSelectedDataSet
public static final String START_ARRAY
public static final String START_OBJECT
public static final String START_NAMED_OBJECT
public static final String START_VARIABLE_OBJECT
public static final String START_STYLE_PROP
public static final String NESTED_STYLE_PROP
public static final String ROOT_NAME_PROP
public static final String KEY_VALUE_PROP
public static final String PREFIX
public JsonConnectorParams()
public JsonConnectorParams(CacheProvider<String,Object> cacheProvider, boolean silent, int logStep)
cacheProvider
- the cache providersilent
- the "is silent" flaglogStep
- the log steppublic JsonConnectorParams copy()
DataSetConnectorParams
copy
in class DataSetConnectorParams
public String getExt()
public JsonGenerator getGenerator()
public JsonWriter getJsonWriter()
public String getPropsHint()
DataSetConnectorParams
getPropsHint
in class DataSetConnectorParams
public String getPropsWizardResource(Driver driver, String connectionDriver)
DataSetConnectorParams
getPropsWizardResource
in class DataSetConnectorParams
driver
- the ETL driverconnectionDriver
- the connection driverpublic String getRootName()
public String getStartStyle()
public String getNestedStyle()
public Writer getWriter()
public void init(Alias alis)
DataSetConnectorParams
init
in class FileConnectorParams
alis
- the aliaspublic String getFilter()
public void setFilter(String filter)
filter
- the new filterpublic void init(Map<String,String> props)
DataSetConnectorParams
init
in class FileConnectorParams
props
- the propertiespublic void init(ObjectStorage storage)
DataSetConnectorParams
init
in class DataSetConnectorParams
storage
- the object storagepublic void setExt(String value)
value
- the new file extensionpublic void setGenerator(JsonGenerator generator)
generator
- the new json generatorpublic void setJsonWriter(JsonWriter jsonWriter)
jsonWriter
- the new json writerpublic void setRootName(String value)
value
- the new root object namepublic void setStartStyle(String value)
value
- the new start stylepublic void setNestedStyle(String value)
value
- the new nested stylepublic void setWriter(Writer value)
value
- the new writerpublic boolean isEnableKeyValue()
public void setEnableKeyValue(boolean enableKeyValue)
enableKeyValue
- the new value for the key-value special caseCopyright © 2010-2020 Toolsverse. All Rights Reserved.