All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.akquinet.jbosscc.guttenbase.mapping.ColumnDataMapperProvider Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package de.akquinet.jbosscc.guttenbase.mapping;

import java.sql.SQLException;

import de.akquinet.jbosscc.guttenbase.meta.ColumnMetaData;
import de.akquinet.jbosscc.guttenbase.meta.ColumnType;

/**
 * Used to find mappings for column data. E.g., when converting a number to a String or casting a LONG to a BIGINT.
 * 
 * 

* © 2012 akquinet tech@spree *

* * @author M. Dahm */ public interface ColumnDataMapperProvider { /** * Find mapping the given configuration. * * @param sourceColumnMetaData * source column * @param targetColumnMetaData * target column * @param sourceColumnType * as determined by {@link ColumnTypeResolver} * @param targetColumnType * as determined by {@link ColumnTypeResolver} */ ColumnDataMapper findMapping(final ColumnMetaData sourceColumnMetaData, final ColumnMetaData targetColumnMetaData, final ColumnType sourceColumnType, final ColumnType targetColumnType) throws SQLException; /** * Specify additional mapping */ void addMapping(final ColumnType sourceColumnType, final ColumnType targetColumnType, final ColumnDataMapper columnDataMapper) throws SQLException; /** * Remove given mapping */ void removeMapping(final ColumnType sourceColumnType, final ColumnType targetColumnType) throws SQLException; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy