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

org.simpleflatmapper.jdbc.impl.UnsupportedQueryPreparer Maven / Gradle / Ivy

Go to download

Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.

There is a newer version: 9.0.2
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy