org.simpleflatmapper.jdbc.impl.UnsupportedQueryPreparer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sfm-jdbc Show documentation
Show all versions of sfm-jdbc Show documentation
Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.
package org.simpleflatmapper.jdbc.impl;
import org.simpleflatmapper.jdbc.QueryBinder;
import org.simpleflatmapper.map.FieldMapper;
import org.simpleflatmapper.jdbc.QueryPreparer;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
public class UnsupportedQueryPreparer implements QueryPreparer {
private final String message;
public UnsupportedQueryPreparer(String message) {
this.message = message;
}
@Override
public QueryBinder prepare(Connection connection) throws SQLException {
throw new UnsupportedOperationException(message);
}
@Override
public PreparedStatement prepareStatement(Connection connection) throws SQLException {
throw new UnsupportedOperationException(message);
}
@Override
public FieldMapper mapper() {
throw new UnsupportedOperationException(message);
}
@Override
public String toRewrittenSqlQuery(T value) {
throw new UnsupportedOperationException(message);
}
}