Skip navigation links

Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.5.0)

E17060-02


oracle.odi.domain.model
Class OdiColumn.FileDescriptor

java.lang.Object
  extended by oracle.odi.domain.support.BusinessObject
      extended by oracle.odi.domain.support.PersistableValue
          extended by oracle.odi.domain.model.OdiColumn.FileDescriptor

All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Enclosing class:
OdiColumn

public static class OdiColumn.FileDescriptor
extends oracle.odi.domain.support.PersistableValue

Defines OdiColumn properties that are specific to OdiColumns on FILE technologies.

Since:
11.1.1.3.0
See Also:
OdiColumn.setFileDescriptor(oracle.odi.domain.model.OdiColumn.FileDescriptor), Serialized Form

Nested Class Summary
static class OdiColumn.FileDescriptor.OnErrorOption
          Defines the possible action in that can be taken during file loading if when the actual content of the file does not match the column definition.

 

Field Summary
static int DECIMAL_SEPARATOR_MAX_LENGTH
          Maximum length supported for the "decimalSeparator" property.

 

Constructor Summary
OdiColumn.FileDescriptor()
          Creates a new OdiColumn.FileDescriptor.
OdiColumn.FileDescriptor(java.lang.Integer pStartPosition, int pBytes, java.lang.String pLogicalFormat, java.lang.String[] pRecordCodes, boolean pExcludeRecordCodes, java.lang.String pDecimalSeparator, OdiColumn.FileDescriptor.OnErrorOption pOnErrorOption)
          Creates a new OdiColumn.FileDescriptor.
OdiColumn.FileDescriptor(java.lang.Integer pStartPosition, int pBytes, java.lang.String pLogicalFormat, java.lang.String pRecordCodes, java.lang.String pDecimalSeparator, OdiColumn.FileDescriptor.OnErrorOption pOnErrorOption)
          Deprecated. 

 

Method Summary
 int getBytes()
          Returns the physical length in bytes.
 java.lang.String getDecimalSeparator()
          Returns the decimal separator.
 java.lang.String getLogicalFormat()
          Returns the format used to parse date.
 OdiColumn.FileDescriptor.OnErrorOption getOnErrorOption()
          Returns the OdiColumn.FileDescriptor.OnErrorOption for this column.
 java.lang.String[] getRecordCodeList()
          Returns the record codes.
 java.lang.String getRecordCodes()
          Deprecated. replaced by getRecordCodeList()
 java.lang.Integer getStartPosition()
          Returns the start position of the column in the row.
 boolean isRecordCodesExcluded()
          Returns true if the rows respecting the record codes will be excluded instead of being included when loading the file.
 void setBytes(int pBytes)
          Sets the physical length in bytes.
 void setDecimalSeparator(java.lang.String pDecimalSeparator)
          Sets the separator used for decimal parsing.
 void setLogicalFormat(java.lang.String pLogicalFormat)
          Sets the format used for date parsing.
 void setOnErrorOption(OdiColumn.FileDescriptor.OnErrorOption pOnErrorOption)
          Sets the OdiColumn.FileDescriptor.OnErrorOption for this column.
 void setRecordCodeList(java.lang.String[] pRecordCodeList)
          Sets the record codes.
 void setRecordCodes(java.lang.String pRecordCodes)
          Deprecated. replaced by setRecordCodeList(String[] pRecordCodeList)
 void setRecordCodesExcluded(boolean pExcludeRecordCodes)
          Sets if the rows respecting the record codes will be excluded instead of being included when loading the file.
 void setStartPosition(java.lang.Integer pStartPosition)
          Sets the start position of the column in the row.

 

Methods inherited from class oracle.odi.domain.support.BusinessObject
clone

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

DECIMAL_SEPARATOR_MAX_LENGTH

public static final int DECIMAL_SEPARATOR_MAX_LENGTH
Maximum length supported for the "decimalSeparator" property.
See Also:
setDecimalSeparator(String), Constant Field Values

Constructor Detail

OdiColumn.FileDescriptor

public OdiColumn.FileDescriptor()
Creates a new OdiColumn.FileDescriptor.

OdiColumn.FileDescriptor

@Deprecated
public OdiColumn.FileDescriptor(java.lang.Integer pStartPosition,
                                           int pBytes,
                                           java.lang.String pLogicalFormat,
                                           java.lang.String pRecordCodes,
                                           java.lang.String pDecimalSeparator,
                                           OdiColumn.FileDescriptor.OnErrorOption pOnErrorOption)
Deprecated. 
Creates a new OdiColumn.FileDescriptor.
Parameters:
pStartPosition - the start position from the beginning of the row.
pBytes - the physical length of the column in bytes.
pLogicalFormat - the logical format used for dates.
pRecordCodes - the list of record codes.
pDecimalSeparator - The decimal separator.
pOnErrorOption - The OnErrorOption

OdiColumn.FileDescriptor

public OdiColumn.FileDescriptor(java.lang.Integer pStartPosition,
                                int pBytes,
                                java.lang.String pLogicalFormat,
                                java.lang.String[] pRecordCodes,
                                boolean pExcludeRecordCodes,
                                java.lang.String pDecimalSeparator,
                                OdiColumn.FileDescriptor.OnErrorOption pOnErrorOption)
Creates a new OdiColumn.FileDescriptor.
Parameters:
pStartPosition - the start position from the beginning of the row.
pBytes - the physical length of the column in bytes.
pLogicalFormat - the logical format used for dates.
pRecordCodes - the array of record codes.
pExcludeRecordCodes - if true the rows respecting the record codes will be excluded instead of being included when loading the file
pDecimalSeparator - The decimal separator.
pOnErrorOption - The OnErrorOption

Method Detail

getBytes

public int getBytes()
Returns the physical length in bytes.
Returns:
the physical length in bytes.
See Also:
setBytes(int)

getDecimalSeparator

public java.lang.String getDecimalSeparator()
Returns the decimal separator.
Returns:
the decimal separator.
See Also:
setDecimalSeparator(String)

getLogicalFormat

public java.lang.String getLogicalFormat()
Returns the format used to parse date.
Returns:
the format.
See Also:
setLogicalFormat(String)

getOnErrorOption

public OdiColumn.FileDescriptor.OnErrorOption getOnErrorOption()
Returns the OdiColumn.FileDescriptor.OnErrorOption for this column.

Default value is OdiColumn.FileDescriptor.OnErrorOption.FAIL.

Returns:
the OdiColumn.FileDescriptor.OnErrorOption
See Also:
setOnErrorOption(OnErrorOption)

getRecordCodes

@Deprecated
public java.lang.String getRecordCodes()
Deprecated. replaced by getRecordCodeList()
Returns the record codes. See documentation for more information.
Returns:
the record codes.
See Also:
setRecordCodes(String)

getStartPosition

public java.lang.Integer getStartPosition()
Returns the start position of the column in the row.
Returns:
the start position.
See Also:
setStartPosition(Integer)

setBytes

public void setBytes(int pBytes)
Sets the physical length in bytes.
Parameters:
pBytes - the physical length.
See Also:
getBytes()

setDecimalSeparator

public void setDecimalSeparator(java.lang.String pDecimalSeparator)
Sets the separator used for decimal parsing.
Parameters:
pDecimalSeparator - the decimal separator
Throws:
java.lang.IllegalArgumentException - if pDecimalSeparator is longer than 1
See Also:
getDecimalSeparator()

setLogicalFormat

public void setLogicalFormat(java.lang.String pLogicalFormat)
Sets the format used for date parsing.
Parameters:
pLogicalFormat - the date format.
See Also:
getLogicalFormat()

setOnErrorOption

public void setOnErrorOption(OdiColumn.FileDescriptor.OnErrorOption pOnErrorOption)
Sets the OdiColumn.FileDescriptor.OnErrorOption for this column.
Parameters:
pOnErrorOption - the OdiColumn.FileDescriptor.OnErrorOption
See Also:
getOnErrorOption()

setRecordCodes

@Deprecated
public void setRecordCodes(java.lang.String pRecordCodes)
Deprecated. replaced by setRecordCodeList(String[] pRecordCodeList)
Sets the record codes.
Parameters:
pRecordCodes - the list of record codes separated by ";". The list have to be prefixed with $INC$ if the codes are included or by $EXC$ if the codes are excluded.
See Also:
getRecordCodes()

setStartPosition

public void setStartPosition(java.lang.Integer pStartPosition)
Sets the start position of the column in the row.
Parameters:
pStartPosition - the start position.
See Also:
getStartPosition()

isRecordCodesExcluded

public boolean isRecordCodesExcluded()
Returns true if the rows respecting the record codes will be excluded instead of being included when loading the file.
Returns:
if records will be excluded or included
See Also:
setRecordCodesExcluded(boolean pExcludeRecordCodes)

setRecordCodesExcluded

public void setRecordCodesExcluded(boolean pExcludeRecordCodes)
Sets if the rows respecting the record codes will be excluded instead of being included when loading the file.
Parameters:
pExcludeRecordCodes - records will be excluded if true
See Also:
isRecordCodesExcluded()

getRecordCodeList

public java.lang.String[] getRecordCodeList()
Returns the record codes. See documentation for more information.
Returns:
the record codes.
See Also:
setRecordCodeList(String[] pRecordCodeList)

setRecordCodeList

public void setRecordCodeList(java.lang.String[] pRecordCodeList)
Sets the record codes.
Parameters:
pRecordCodeList - the list of record codes
See Also:
getRecordCodeList()

Skip navigation links

Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.5.0)

E17060-02


Copyright © 2011, Oracle and/or its affiliates. All rights reserved.