|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.adf.model.adapter.AbstractDefinition oracle.adfinternal.model.adapter.url.csv.CSVDCDef
public class CSVDCDef
Data control definition representing CSV data.
Field Summary | |
---|---|
static java.lang.String |
CONNECTION_NAME
Attribute to hold the connection name. |
static java.lang.String |
DEFINITION
Definition tag as the root. |
static java.lang.String |
DELIMITER
Delimiter used in the CSV file |
static java.lang.String |
ENC_STYLE
Encoding style of the data. |
static java.lang.String |
FILTER_TYPE_ALL
Filtering type - all |
static java.lang.String |
FILTER_TYPE_ANY
Filtering type - any |
static java.lang.String |
FILTERCOLUMN
Column tag as filtering condition. |
static java.lang.String |
FILTERCOMPARETYPE
CompareType tag |
static java.lang.String |
FILTERCONDITION
Conditions tag |
static java.lang.String |
FILTERCONDITIONS
Conditions tag |
static java.lang.String |
FILTERDATAFORMAT
DataFormat tag |
static java.lang.String |
FILTEROPERATOR
Operator tag |
static java.lang.String |
FILTERTYPE
Attribute to contain the filtering match type. |
static java.lang.String |
FILTERVALUE
Value tag |
static java.lang.String |
IS_FIRST_ROW_NAMES
Attribute to contain if the first row will be treated as column names. |
static java.lang.String |
PARAMETER
Parameter tag |
static java.lang.String |
PARAMETER_NAME
Parameter name tag |
static java.lang.String |
PARAMETER_VALUE
Parameter Value tag |
static java.lang.String |
PARAMETERS
Parameters tag |
static java.lang.String |
QUOTE_CHAR
Character used to denote a quoted text |
static java.lang.String |
RESULT_ACC_NAME
|
static java.lang.String |
SOURCE_LOC
Attribute to contain the source URL. |
static java.lang.String |
URL_QUERY
Attribute to hold the URL query. |
static java.lang.String |
URLCSV_NS
Namespace for the metadata definition. |
Fields inherited from class oracle.adf.model.adapter.AbstractDefinition |
---|
CACHE_TO_CLASSPATH, CACHE_TO_SOURCEPATH, DONT_CACHE |
Fields inherited from interface oracle.binding.meta.Definition |
---|
TYPE_ACCESSOR, TYPE_ATTRIBUTE, TYPE_CRITERIA, TYPE_CRITERIA_ITEM, TYPE_CRITERIA_OPERATOR, TYPE_CRITERIA_ROW, TYPE_DATACONTROL, TYPE_DEFINITION, TYPE_DEFINITIONCONTEXT, TYPE_NAMED, TYPE_OPERATION, TYPE_OPERATIONRETURN, TYPE_PARAMETER, TYPE_STRUCTURE, TYPE_VARIABLE |
Constructor Summary | |
---|---|
CSVDCDef()
Default constructor. |
|
CSVDCDef(java.lang.String name,
boolean isFirstRowNames,
java.lang.String encodingStyle,
java.lang.String delim,
java.lang.String quoteChar)
Creats a URL CSV Definition object. |
Method Summary | |
---|---|
DataControl |
createDataControl()
Creates CSV data control instance from the metadata definition. |
java.lang.String |
getAdapterType()
Returns the type of the adapter. |
java.lang.String |
getConnectionName()
return the URL connection name. |
java.lang.String |
getDCName()
return name of the data control |
java.lang.String |
getDelimiter()
return the csv delimiter. |
java.lang.String |
getEncStyle()
return the csv encoding. |
java.util.Map |
getFilteringColFormatMap()
|
java.util.Map |
getFilteringColTypeMap()
|
java.lang.String[] |
getFilteringConditions()
return the filtering conditions. |
java.lang.String |
getFilteringType()
return the filtering type. |
boolean |
getIsFirstRowNames()
return the boolean to indicate whether First rows as columns |
Node |
getMetadata()
Returns the metadata definition node. |
ParameterDefinition[] |
getParameters()
Returns the parameters that are defined for the data control metadata. |
java.util.Map |
getParamsMap()
Gets the parameter Maps for the definition. |
java.lang.String |
getQuoteChar()
return the csv quote char |
java.lang.String |
getRootStructureName()
Gets the root structure definition name |
java.lang.String |
getSourceLocation()
return the data source location. |
StructureDefinition |
getStructure()
Returns the structure definition. |
java.lang.String |
getUrlQuery()
return the Url query. |
boolean |
isStructureDirty(boolean refresh)
Tells the framework whether the Data control structure is dirty and needs to be refreshed on the palette. |
boolean |
isSupported(java.lang.String flag)
Indicates that what is supported by csv data control. |
void |
loadFromMetadata(Node node,
java.util.Map params)
Loads the definition from a metadata Node . |
void |
setDelimiter(java.lang.String delimiter)
Sets the csv delimiter. |
void |
setEncoding(java.lang.String encoding)
Sets the csv encoding. |
void |
setFilteringConditions(java.util.ArrayList filterConditions)
Set the filtering conditions. |
void |
setFilteringType(java.lang.String filterType)
set the filtering type. |
void |
setFirstRowNames(boolean isFirstRows)
Sets the boolean to indicate whether First rows as columns. |
void |
setParameters(ParameterDefinition[] params)
Sets the parameter names for the definition. |
void |
setParamsMap(java.util.Map paramsMap)
Sets the parameter Maps for the definition. |
void |
setQuoteChar(java.lang.String quotechar)
Sets the csv quotechar. |
void |
setRootStructureName(java.lang.String rootDefName)
Sets the root structure definition name |
void |
setSourceConnectionName(java.lang.String name)
Sets the name of the URL connection of the data source. |
void |
setSourceLocation(java.lang.String loc)
Sets the data source location. |
void |
setUrlQuery(java.lang.String urlQuery)
Sets the query part of the data source. |
boolean |
usePersistedStructure()
Tells the framework to load from the serialized bean XML |
Methods inherited from class oracle.adf.model.adapter.AbstractDefinition |
---|
assignDefaultPackage, createDuplicateDetailIterator, getAdapterContext, getCachingMode, getDefClassName, getDefinitionParent, getDefinitionType, getFactoryClassName, getFullName, getName, getProperties, getProperty, setAdapterContext, setCompileProjectOnCreate, setName, setProperty, shouldCompileProjectOnCreate, shouldStoreStructureDefinition |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RESULT_ACC_NAME
public static final java.lang.String URLCSV_NS
public static final java.lang.String DEFINITION
public static final java.lang.String FILTERCONDITIONS
public static final java.lang.String FILTERCONDITION
public static final java.lang.String FILTERCOLUMN
public static final java.lang.String FILTEROPERATOR
public static final java.lang.String FILTERVALUE
public static final java.lang.String FILTERCOMPARETYPE
public static final java.lang.String FILTERDATAFORMAT
public static final java.lang.String FILTERTYPE
public static final java.lang.String FILTER_TYPE_ALL
public static final java.lang.String FILTER_TYPE_ANY
public static final java.lang.String SOURCE_LOC
public static final java.lang.String CONNECTION_NAME
public static final java.lang.String URL_QUERY
public static final java.lang.String IS_FIRST_ROW_NAMES
public static final java.lang.String ENC_STYLE
public static final java.lang.String DELIMITER
public static final java.lang.String QUOTE_CHAR
public static final java.lang.String PARAMETERS
public static final java.lang.String PARAMETER
public static final java.lang.String PARAMETER_NAME
public static final java.lang.String PARAMETER_VALUE
Constructor Detail |
---|
public CSVDCDef()
public CSVDCDef(java.lang.String name, boolean isFirstRowNames, java.lang.String encodingStyle, java.lang.String delim, java.lang.String quoteChar)
name
- Name of the definition.isFirstRowNames
- Flag to indicate if the first row of the CSV data
can be treated as column names.encodingStyle
- Encoding style of the data.delim
- Character value separators.Method Detail |
---|
public void setParameters(ParameterDefinition[] params)
public void setSourceConnectionName(java.lang.String name)
name
- Name of the connection that is used as the data source.public void setSourceLocation(java.lang.String loc)
If the source connection name is defined, the source location value will not be used to fetch data.
loc
- Location of the data source.public void setUrlQuery(java.lang.String urlQuery)
urlQuery
- URL query of the data source.public void setDelimiter(java.lang.String delimiter)
delimiter
- the csv delimiter.public void setEncoding(java.lang.String encoding)
encoding
- the csv encoding.public void setQuoteChar(java.lang.String quotechar)
quotechar
- the csv QuoteChar.public void setFirstRowNames(boolean isFirstRows)
isFirstRows
- the boolean to indicate whether First rows as columns.public boolean isSupported(java.lang.String flag)
isSupported
in class AbstractDefinition
flag
- one of the values defined in
DataControlDefinition
.
public void setParamsMap(java.util.Map paramsMap)
public boolean usePersistedStructure()
usePersistedStructure
in class AbstractDefinition
public Node getMetadata()
getMetadata
in class AbstractDefinition
public StructureDefinition getStructure()
getStructure
in interface DataControlDefinition
getStructure
in class AbstractDefinition
public void loadFromMetadata(Node node, java.util.Map params)
Node
.
loadFromMetadata
in class AbstractDefinition
node
- the metadata node.params
- context parameters.public DataControl createDataControl()
createDataControl
in class AbstractDefinition
public java.lang.String getDCName()
getDCName
in class AbstractDefinition
public java.lang.String getAdapterType()
getAdapterType
in class AbstractDefinition
AdapterDefinition
public ParameterDefinition[] getParameters()
The implementation should override this method if the definition uses parameters. The default implementatiaon returns null.
getParameters
in class AbstractDefinition
public java.util.Map getParamsMap()
public java.lang.String getSourceLocation()
public java.lang.String getConnectionName()
public java.lang.String getUrlQuery()
public java.lang.String getEncStyle()
public java.lang.String getDelimiter()
public java.lang.String getQuoteChar()
public boolean getIsFirstRowNames()
public java.lang.String getFilteringType()
public void setFilteringType(java.lang.String filterType)
public java.lang.String[] getFilteringConditions()
public void setFilteringConditions(java.util.ArrayList filterConditions)
public java.util.Map getFilteringColTypeMap()
public java.util.Map getFilteringColFormatMap()
public boolean isStructureDirty(boolean refresh)
isStructureDirty
in class AbstractDefinition
refresh
- flag to indicate if the refresh is requested for the
structure.
public void setRootStructureName(java.lang.String rootDefName)
public java.lang.String getRootStructureName()
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |