|
TFORMer SDK - JAVA
7.5
|
Specialized DataSource for CSV data (character separated values). More...
Public Member Functions | |
| ComputedField | addComputedField (String name) throws TFormerException |
| Creates and adds a ComputedField to the DataSource. More... | |
| DSFieldMapping | addFieldMapping (String name) throws TFormerException |
| Creates and adds a DSFieldMapping to the DataSource. More... | |
| DataSourceParameter | addParameter (String name) throws TFormerException |
| Creates and adds a DataSourceParameter to the DataSource. More... | |
| void | dispose () throws TFormerException |
| Releases the resources allocated by the instance. More... | |
| void | dump (PrintStream s) throws IOException, TFormerException |
| Dumps the current instance into a text stream. More... | |
| String | getComment () throws TFormerException |
| Gets the comment for the DataSource. More... | |
| ComputedField | getComputedField (String name) throws TFormerException |
| Gets a ComputedField defined in the DataSource. More... | |
| String | getCopyColumnName () throws TFormerException |
| Gets the CopyColumnName of the DataSource. More... | |
| String | getDescription () throws TFormerException |
| Gets the description of the DataSource. More... | |
| DSFieldMapping | getFieldMapping (String name) throws TFormerException |
| Gets a DSFieldMapping defined in the DataSource. More... | |
| String | getFilename () throws TFormerException |
| Gets the filename of the CSV file. More... | |
| ComputedField | getFirstComputedField () throws TFormerException |
| Gets the first ComputedField defined in the DataSource. More... | |
| DSFieldMapping | getFirstDSFieldMapping () throws TFormerException |
| Gets the first DSFieldMapping defined in the DataSource. More... | |
| DataSourceParameter | getFirstParameter () throws TFormerException |
| Gets the first DataSourceParameter defined in the DataSource. More... | |
| String | getName () throws TFormerException |
| Gets the name of the DataSource. More... | |
| DataSource | getNext () throws TFormerException |
| Gets the next DataSource instance defined in the Project. More... | |
| int | getNumberOfComputedFields () throws TFormerException |
| Gets the number of ComputedFields defined in the DataSource. More... | |
| int | getNumberOfFieldMappings () throws TFormerException |
| Gets the number of DSFieldMappings defined in the DataSource. More... | |
| int | getNumberOfParameters () throws TFormerException |
| Gets the number of DataSourceParameters defined in the DataSource. More... | |
| DataSourceParameter | getParameter (String name) throws TFormerException |
| Gets a DataSourceParameter defined in the DataSource. More... | |
| String | getQualifier () throws TFormerException |
| Gets the qualifier character that encloses DataField values. More... | |
| String | getSeparator () throws TFormerException |
| Gets the separator character that separates DataField-names or DataField-values. More... | |
| DataSourceType | getType () throws TFormerException |
| Gets the type of the DataSource. More... | |
| boolean | isDefault () throws TFormerException |
| Gets a value indicating whether this object stores the default DataSource. More... | |
| boolean | isHandleEscapeSequences () throws TFormerException |
| Gets if escape sequences should be translated on data retrieval or not. More... | |
| boolean | isHasColumnNames () throws TFormerException |
| Determines if the DataSourceCsv expects column names in the first line of the CSV file. More... | |
| void | removeComputedField (ComputedField computedField) throws TFormerException |
| Removes the ComputedField from the DataSource. More... | |
| void | removeComputedField (String name) throws TFormerException |
| Removes the ComputedField from the DataSource. More... | |
| void | removeFieldMapping (DSFieldMapping fieldMapping) throws TFormerException |
| Removes the DSFieldMapping from the DataSource. More... | |
| void | removeFieldMapping (String name) throws TFormerException |
| Removes the DSFieldMapping from the DataSource. More... | |
| void | removeParameter (DataSourceParameter parameter) throws TFormerException |
| Removes the DataSourceParameter from the DataSource. More... | |
| void | removeParameter (String name) throws TFormerException |
| Removes the DataSourceParameter from the DataSource. More... | |
| void | setComment (String sComment) throws TFormerException |
| Sets the comment for the DataSource. More... | |
| void | setCopyColumnName (String sCopyColumnName) throws TFormerException |
| Sets the CopyColumnName of the DataSource. More... | |
| void | setDescription (String sDescription) throws TFormerException |
| Sets the description of the DataSource. More... | |
| void | setFilename (String sFile) throws TFormerException |
| Sets the filename of the CSV file. More... | |
| void | setHandleEscapeSequences (boolean bEscapeSequences) throws TFormerException |
| Sets if escape sequences should be translated on data retrieval or not. More... | |
| void | setHasColumnNames (boolean bHasColumnNames) throws TFormerException |
| Sets the HasColumnNames of the DataSourceCsv. More... | |
| void | setName (String sName) throws TFormerException |
| Sets the name of the DataSource. More... | |
| void | setQualifier (String sTextQualifier) throws TFormerException |
| Sets the qualifier character that encloses DataField values. More... | |
| void | setSeparator (String sFieldSeparator) throws TFormerException |
| Sets the separator character that separates DataField-names or DataField-values. More... | |
| String | toString () |
| Returns a string representation of the instance. More... | |
Specialized DataSource for CSV data (character separated values).
DataSourceCsv is a specialized DataSource for importing data from CSV files. This class is used to manipulate existing DataSourceCsv objects. To create a new DataSource use TFORMer Designer or Project.addDataSource.
The main properties to characterize a DataSourceCsv are:
, and separates the single column names (= the names of the DataFields) and column values (= values of DataFields) from each other"This is a string").Field_0, Field_1, etc.
|
inherited |
Creates and adds a ComputedField to the DataSource.
| name | The name of the ComputedField |
|
inherited |
Creates and adds a DSFieldMapping to the DataSource.
| name | The name of the DataField for which a DSFieldMapping should be created. |
|
inherited |
Creates and adds a DataSourceParameter to the DataSource.
| name | The name of the DataSourceParameter |
|
inherited |
Releases the resources allocated by the instance.
Call this method in every case (even in case of exceptions) is this instance is not required anymore.
| void dump | ( | PrintStream | s | ) | throws IOException, TFormerException |
Dumps the current instance into a text stream.
| s | Instance of the stream |
|
inherited |
Gets the comment for the DataSource.
|
inherited |
Gets a ComputedField defined in the DataSource.
| name | The name of the ComputedField |
null
|
inherited |
Gets the CopyColumnName of the DataSource.
|
inherited |
Gets the description of the DataSource.
|
inherited |
Gets a DSFieldMapping defined in the DataSource.
Retrieves the DSFieldMapping for a given DataField name from the DataSource
| name | The name of a DataField |
null | String getFilename | ( | ) | throws TFormerException |
Gets the filename of the CSV file.
|
inherited |
Gets the first ComputedField defined in the DataSource.
null
|
inherited |
Gets the first DSFieldMapping defined in the DataSource.
null
|
inherited |
Gets the first DataSourceParameter defined in the DataSource.
null
|
inherited |
Gets the name of the DataSource.
|
inherited |
Gets the next DataSource instance defined in the Project.
A Project stores a list of DataSource objects. To retrieve the first DataSource in the Project see Project.getFirstDataSource.
null if there aren't other instances in the Project, otherwise a valid instance of this class (DataSourceCsv, DataSourceOdbc or DataSourceXml)
|
inherited |
Gets the number of ComputedFields defined in the DataSource.
|
inherited |
Gets the number of DSFieldMappings defined in the DataSource.
|
inherited |
Gets the number of DataSourceParameters defined in the DataSource.
|
inherited |
Gets a DataSourceParameter defined in the DataSource.
| name | The name of the DataSourceParameter |
null| String getQualifier | ( | ) | throws TFormerException |
| String getSeparator | ( | ) | throws TFormerException |
Gets the separator character that separates DataField-names or DataField-values.
Common values for separators are , or ;.
|
inherited |
Gets the type of the DataSource.
The DataSourceType is read-only, and is set on creation. It specifies the type of a DataSource (e.g. DataSourceOdbc, DataSourceCsv, DataSourceXml).
|
inherited |
Gets a value indicating whether this object stores the default DataSource.
true if this DataSource is the default DataSource.
|
inherited |
Gets if escape sequences should be translated on data retrieval or not.
true if escape sequences should be translated.| boolean isHasColumnNames | ( | ) | throws TFormerException |
Determines if the DataSourceCsv expects column names in the first line of the CSV file.
true if column-names are provided in the first line of the CSV file.
|
inherited |
Removes the ComputedField from the DataSource.
| computedField | The ComputedField |
|
inherited |
Removes the ComputedField from the DataSource.
| name | The name of the ComputedField |
|
inherited |
Removes the DSFieldMapping from the DataSource.
| fieldMapping | The DSFieldMapping |
|
inherited |
Removes the DSFieldMapping from the DataSource.
| name | The name of the DataField for which the mapping should be deleted |
|
inherited |
Removes the DataSourceParameter from the DataSource.
| parameter | The DataSourceParameter |
|
inherited |
Removes the DataSourceParameter from the DataSource.
| name | The name of the DataSourceParameter |
|
inherited |
Sets the comment for the DataSource.
| sComment | The comment for the DataSource |
|
inherited |
Sets the CopyColumnName of the DataSource.
| sCopyColumnName | The CopyColumnName of the DataSource |
|
inherited |
Sets the description of the DataSource.
| sDescription | The description of the DataSource |
| void setFilename | ( | String | sFile | ) | throws TFormerException |
Sets the filename of the CSV file.
| sFile | The filename of the CSV file. |
|
inherited |
Sets if escape sequences should be translated on data retrieval or not.
| bEscapeSequences | true if escape sequences should be translated. |
| void setHasColumnNames | ( | boolean | bHasColumnNames | ) | throws TFormerException |
Sets the HasColumnNames of the DataSourceCsv.
| bHasColumnNames | true if column-names are provided in the first line of the CSV file. |
|
inherited |
Sets the name of the DataSource.
| sName | The name of the DataSource |
| void setQualifier | ( | String | sTextQualifier | ) | throws TFormerException |
Sets the qualifier character that encloses DataField values.
A common qualifier is the double quote ("). To disable the use of a qualifier set this property to '\0' (dataSource.setQualifier('\0');).
| sTextQualifier | The qualifier character that encloses DataField-values. |
| void setSeparator | ( | String | sFieldSeparator | ) | throws TFormerException |
Sets the separator character that separates DataField-names or DataField-values.
Common values for separators are , or ;.
| sFieldSeparator | The separator character that separates DataField-names or DataField-values |
|
inherited |
Returns a string representation of the instance.
| © 2006-2017 - all rights reserved by TEC-IT Datenverarbeitung GmbH |
![]() |
| Generated on Fri Nov 3 2017 07:59:14 for TFORMer SDK - JAVA with doxygen 1.8.9.1 |