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

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

The newest version!
package de.akquinet.jbosscc.guttenbase.mapping;

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

import java.sql.SQLException;

/**
 * Map data contained in a column to some other type. I.e., the target column may have a different type and thus an INSERT needs conversion.
 *
 * 

* © 2012-2034 akquinet tech@spree *

* * @author M. Dahm */ @SuppressWarnings("RedundantThrows") public interface ColumnDataMapper { /** * Mapper can be used for the given columns? */ boolean isApplicable(ColumnMetaData sourceColumnMetaData, ColumnMetaData targetColumnMetaData); /** * Map object. Must be able to handle NULL values. */ Object map(final ColumnMetaData sourceColumnMetaData, final ColumnMetaData targetColumnMetaData, Object value) throws SQLException; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy