Class AbstractStatementCreator
- java.lang.Object
-
- de.akquinet.jbosscc.guttenbase.statements.AbstractStatementCreator
-
- Direct Known Subclasses:
AbstractInsertStatementCreator
,AbstractSelectStatementCreator
public abstract class AbstractStatementCreator extends Object
Contains some helper methods for implementing classes.© 2012-2034 akquinet tech@spree
- Author:
- M. Dahm
Hint is used by
ColumnMapperHint
to map column names Hint is used byColumnOrderHint
to determine column order
-
-
Field Summary
Fields Modifier and Type Field Description protected ColumnMapper
_columnMapper
protected String
_connectorId
protected ConnectorRepository
_connectorRepository
protected static org.slf4j.Logger
LOG
-
Constructor Summary
Constructors Constructor Description AbstractStatementCreator(ConnectorRepository connectorRepository, String connectorId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
createColumnClause(List<ColumnMetaData> columns)
protected String
createWhereClause(TableMetaData tableMetaData)
List<ColumnMetaData>
getMappedTargetColumns(TableMetaData sourceTableMetaData, TableMetaData targetTableMetaData, String sourceConnectorId)
Get the list of target columns with appropriate mappings as defined byColumnMapperHint
-
-
-
Field Detail
-
LOG
protected static final org.slf4j.Logger LOG
-
_connectorRepository
protected final ConnectorRepository _connectorRepository
-
_connectorId
protected final String _connectorId
-
_columnMapper
protected final ColumnMapper _columnMapper
-
-
Constructor Detail
-
AbstractStatementCreator
public AbstractStatementCreator(ConnectorRepository connectorRepository, String connectorId)
-
-
Method Detail
-
createColumnClause
protected String createColumnClause(List<ColumnMetaData> columns)
-
createWhereClause
protected String createWhereClause(TableMetaData tableMetaData)
-
getMappedTargetColumns
public List<ColumnMetaData> getMappedTargetColumns(TableMetaData sourceTableMetaData, TableMetaData targetTableMetaData, String sourceConnectorId)
Get the list of target columns with appropriate mappings as defined byColumnMapperHint
-
-