C# Class Summer.Batch.Infrastructure.Item.File.Transform.DefaultFieldSet

Default implementation of IFieldSet.
Inheritance: IFieldSet
Afficher le fichier Open project: SummerBatch/SummerBatch Class Usage Examples

Méthodes publiques

Méthode Description
DefaultFieldSet ( string values ) : System

Creates a DefaultFieldSet with the specified values.

DefaultFieldSet ( string names, string values ) : System

Creates a DefaultFieldSet with the specified names and values.

ReadBoolean ( int index, string trueValue = "true" ) : bool

Reads a field as a boolean.

ReadBoolean ( string name, string trueValue = "true" ) : bool

Reads a field as a boolean.

ReadByte ( int index ) : byte

Reads a field as a byte.

ReadByte ( string name ) : byte

Reads a field as a byte.

ReadChar ( int index ) : char

Reads a field as a character.

ReadChar ( string name ) : char

Reads a field as a character.

ReadDate ( int index ) : System.DateTime

Reads a field as a date.

ReadDate ( int index, System.DateTime defaultValue ) : System.DateTime

Reads a field as a date.

ReadDate ( int index, string pattern ) : System.DateTime

Reads a field as a date.

ReadDate ( int index, string pattern, System.DateTime defaultValue ) : System.DateTime

Reads a field as a date, using defaultValue if needed.

ReadDate ( string name ) : System.DateTime

Reads a field as a date.

ReadDate ( string name, System.DateTime defaultValue ) : System.DateTime

Reads a field as a date.

ReadDate ( string name, string pattern ) : System.DateTime

Reads a field as a date.

ReadDate ( string name, string pattern, System.DateTime defaultValue ) : System.DateTime

Reads a field as a date.

ReadDecimal ( int index ) : decimal

Reads a field as a decimal.

ReadDecimal ( int index, decimal defaultValue ) : decimal

Reads a field as a decimal.

ReadDecimal ( string name ) : decimal

Reads a field as a decimal.

ReadDecimal ( string name, decimal defaultValue ) : decimal

Reads a field as a decimal.

ReadDouble ( int index ) : double

Reads a field as a double.

ReadDouble ( string name ) : double

Reads a field as a double.

ReadFloat ( int index ) : float

Reads a field as a float.

ReadFloat ( string name ) : float

Reads a field as a float.

ReadInt ( int index ) : int

Reads a field as an int.

ReadInt ( int index, int defaultValue ) : int

Reads a field as an int.

ReadInt ( string name ) : int

Reads a field as an int.

ReadInt ( string name, int defaultValue ) : int

Reads a field as an int.

ReadLong ( int index ) : long

Reads a field as a long.

ReadLong ( int index, long defaultValue ) : long

Reads a field as a long.

ReadLong ( string name ) : long

Reads a field as a long.

ReadLong ( string name, long defaultValue ) : long

Reads a field as a long.

ReadRawString ( int index ) : string

Reads a field as a string.

ReadRawString ( string name ) : string

Reads a field as a string.

ReadShort ( int index ) : short

Reads a field as a short.

ReadShort ( string name ) : short

Reads a field as a short.

ReadString ( int index ) : string

Reads a field as a string.

ReadString ( string name ) : string

Reads a field as a string.

Private Methods

Méthode Description
IndexOf ( string name ) : int
ReadAndTrim ( int index ) : string

Method Details

DefaultFieldSet() public méthode

Creates a DefaultFieldSet with the specified values.
public DefaultFieldSet ( string values ) : System
values string an array containing the values of the fields
Résultat System

DefaultFieldSet() public méthode

Creates a DefaultFieldSet with the specified names and values.
 if names and values do not have the same length
public DefaultFieldSet ( string names, string values ) : System
names string an array containing the names of the fields
values string an array containing the values of the fields
Résultat System

ReadBoolean() public méthode

Reads a field as a boolean.
 if the index does not correspond to a field
public ReadBoolean ( int index, string trueValue = "true" ) : bool
index int the index of the field to read
trueValue string the literal corresponding to true (default is "true")
Résultat bool

ReadBoolean() public méthode

Reads a field as a boolean.
 if no field has the given name
public ReadBoolean ( string name, string trueValue = "true" ) : bool
name string the name of the field to read
trueValue string the literal corresponding to true (default is "true")
Résultat bool

ReadByte() public méthode

Reads a field as a byte.
 if the index does not correspond to a field
public ReadByte ( int index ) : byte
index int the index of the field to read
Résultat byte

ReadByte() public méthode

Reads a field as a byte.
 if no field has the given name
public ReadByte ( string name ) : byte
name string the name of the field to read
Résultat byte

ReadChar() public méthode

Reads a field as a character.
 if the index does not correspond to a field
public ReadChar ( int index ) : char
index int the index of the field to read
Résultat char

ReadChar() public méthode

Reads a field as a character.
 if no field has the given name
public ReadChar ( string name ) : char
name string the name of the field to read
Résultat char

ReadDate() public méthode

Reads a field as a date.
 if the index does not correspond to a field
public ReadDate ( int index ) : System.DateTime
index int the index of the field to read
Résultat System.DateTime

ReadDate() public méthode

Reads a field as a date.
 if the index does not correspond to a field
public ReadDate ( int index, System.DateTime defaultValue ) : System.DateTime
index int the index of the field to read
defaultValue System.DateTime the default value if the field is blank
Résultat System.DateTime

ReadDate() public méthode

Reads a field as a date.
 if the index does not correspond to a field
public ReadDate ( int index, string pattern ) : System.DateTime
index int the index of the field to read
pattern string the pattern to use to parse the date
Résultat System.DateTime

ReadDate() public méthode

Reads a field as a date, using defaultValue if needed.
public ReadDate ( int index, string pattern, System.DateTime defaultValue ) : System.DateTime
index int
pattern string
defaultValue System.DateTime
Résultat System.DateTime

ReadDate() public méthode

Reads a field as a date.
 if no field has the given name
public ReadDate ( string name ) : System.DateTime
name string the name of the field to read
Résultat System.DateTime

ReadDate() public méthode

Reads a field as a date.
 if no field has the given name
public ReadDate ( string name, System.DateTime defaultValue ) : System.DateTime
name string the name of the field to read
defaultValue System.DateTime the default value if the field is blank
Résultat System.DateTime

ReadDate() public méthode

Reads a field as a date.
 if no field has the given name
public ReadDate ( string name, string pattern ) : System.DateTime
name string the name of the field to read
pattern string the pattern to use to parse the date
Résultat System.DateTime

ReadDate() public méthode

Reads a field as a date.
 if no field has the given name
public ReadDate ( string name, string pattern, System.DateTime defaultValue ) : System.DateTime
name string the name of the field to read
pattern string the pattern to use to parse the date
defaultValue System.DateTime the default value if the field is blank
Résultat System.DateTime

ReadDecimal() public méthode

Reads a field as a decimal.
 if the index does not correspond to a field
public ReadDecimal ( int index ) : decimal
index int the index of the field to read
Résultat decimal

ReadDecimal() public méthode

Reads a field as a decimal.
 if the index does not correspond to a field
public ReadDecimal ( int index, decimal defaultValue ) : decimal
index int the index of the field to read
defaultValue decimal the default value if the field is blank
Résultat decimal

ReadDecimal() public méthode

Reads a field as a decimal.
 if no field has the given name
public ReadDecimal ( string name ) : decimal
name string the name of the field to read
Résultat decimal

ReadDecimal() public méthode

Reads a field as a decimal.
 if no field has the given name
public ReadDecimal ( string name, decimal defaultValue ) : decimal
name string the name of the field to read
defaultValue decimal the default value if the field is blank
Résultat decimal

ReadDouble() public méthode

Reads a field as a double.
 if the index does not correspond to a field
public ReadDouble ( int index ) : double
index int the index of the field to read
Résultat double

ReadDouble() public méthode

Reads a field as a double.
 if no field has the given name
public ReadDouble ( string name ) : double
name string the name of the field to read
Résultat double

ReadFloat() public méthode

Reads a field as a float.
 if the index does not correspond to a field
public ReadFloat ( int index ) : float
index int the index of the field to read
Résultat float

ReadFloat() public méthode

Reads a field as a float.
 if no field has the given name
public ReadFloat ( string name ) : float
name string the name of the field to read
Résultat float

ReadInt() public méthode

Reads a field as an int.
 if the index does not correspond to a field
public ReadInt ( int index ) : int
index int the index of the field to read
Résultat int

ReadInt() public méthode

Reads a field as an int.
 if the index does not correspond to a field
public ReadInt ( int index, int defaultValue ) : int
index int the index of the field to read
defaultValue int the default value if the field is blank
Résultat int

ReadInt() public méthode

Reads a field as an int.
 if no field has the given name
public ReadInt ( string name ) : int
name string the name of the field to read
Résultat int

ReadInt() public méthode

Reads a field as an int.
 if no field has the given name
public ReadInt ( string name, int defaultValue ) : int
name string the name of the field to read
defaultValue int the default value if the field is blank
Résultat int

ReadLong() public méthode

Reads a field as a long.
 if the index does not correspond to a field
public ReadLong ( int index ) : long
index int the index of the field to read
Résultat long

ReadLong() public méthode

Reads a field as a long.
 if the index does not correspond to a field
public ReadLong ( int index, long defaultValue ) : long
index int the index of the field to read
defaultValue long the default value if the field is blank
Résultat long

ReadLong() public méthode

Reads a field as a long.
 if no field has the given name
public ReadLong ( string name ) : long
name string the name of the field to read
Résultat long

ReadLong() public méthode

Reads a field as a long.
 if no field has the given name
public ReadLong ( string name, long defaultValue ) : long
name string the name of the field to read
defaultValue long the default value if the field is blank
Résultat long

ReadRawString() public méthode

Reads a field as a string.
 if the index does not correspond to a field
public ReadRawString ( int index ) : string
index int the index of the field to read
Résultat string

ReadRawString() public méthode

Reads a field as a string.
 if no field has the given name
public ReadRawString ( string name ) : string
name string the name of the field to read
Résultat string

ReadShort() public méthode

Reads a field as a short.
 if the index does not correspond to a field
public ReadShort ( int index ) : short
index int the index of the field to read
Résultat short

ReadShort() public méthode

Reads a field as a short.
 if no field has the given name
public ReadShort ( string name ) : short
name string the name of the field to read
Résultat short

ReadString() public méthode

Reads a field as a string.
 if the index does not correspond to a field
public ReadString ( int index ) : string
index int the index of the field to read
Résultat string

ReadString() public méthode

Reads a field as a string.
 if no field has the given name
public ReadString ( string name ) : string
name string the name of the field to read
Résultat string