public class ColumnMappingContainer
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
protected ColumnMapping[] |
mappings |
Constructor and Description |
---|
ColumnMappingContainer(DatabaseColumnMappingConfig[] configs,
java.sql.ResultSetMetaData metaData,
DatabaseConnector connector)
builds a container of fully resolved mappings from a set of
configurations and meta data
|
Modifier and Type | Method and Description |
---|---|
JDBCURI |
buildKeyFromRow(ResultSetProxy row) |
JDBCURI |
buildKeyFromRow(ResultSetProxy row,
JDBCURI previousURI)
builds a JDBCURI from the given row
|
void |
end() |
void |
endDocument()
notify all processors that the document will be sent
|
ColumnMapping[] |
getMappings() |
void |
processRow(ResultSetProxy row)
process a row with all processors found in the container's mappings
|
void |
setDocument(JDBCDocument document)
sets the document that processors should work on.
|
void |
startDocument()
notify all processors that a new document is processed
|
protected ColumnMapping[] mappings
public ColumnMappingContainer(DatabaseColumnMappingConfig[] configs, java.sql.ResultSetMetaData metaData, DatabaseConnector connector) throws java.lang.Exception
configs
- metaData
- connector
- java.lang.Exception
public void setDocument(JDBCDocument document)
document
- public JDBCURI buildKeyFromRow(ResultSetProxy row, JDBCURI previousURI) throws java.lang.Exception
row
- java.sql.SQLException
java.lang.Exception
public JDBCURI buildKeyFromRow(ResultSetProxy row) throws java.lang.Exception
java.lang.Exception
public void processRow(ResultSetProxy row) throws java.lang.Exception
row
- java.sql.SQLException
java.lang.Exception
public void startDocument() throws java.lang.Exception
java.lang.Exception
public void endDocument() throws java.lang.Exception
java.lang.Exception
public void end() throws java.lang.Exception
java.lang.Exception
public ColumnMapping[] getMappings()
Copyright © 2013 Dassault Systèmes, All Rights Reserved.