de.akquinet.jbosscc.guttenbase.hints.impl.DefaultTableMapper Maven / Gradle / Ivy
package de.akquinet.jbosscc.guttenbase.hints.impl;
import java.sql.SQLException;
import de.akquinet.jbosscc.guttenbase.mapping.TableMapper;
import de.akquinet.jbosscc.guttenbase.meta.DatabaseMetaData;
import de.akquinet.jbosscc.guttenbase.meta.TableMetaData;
/**
* By default return table with same name ignoring case.
*
*
* © 2012 akquinet tech@spree
*
*
* @author M. Dahm
*/
public class DefaultTableMapper implements TableMapper {
@Override
public TableMetaData map(final TableMetaData source, final DatabaseMetaData targetDatabaseMetaData) throws SQLException {
final String tableName = source.getTableName();
return targetDatabaseMetaData.getTableMetaData(tableName);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy