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

jp.dodododo.dao.dialect.mysql.MySQLPreparedStatement Maven / Gradle / Ivy

package jp.dodododo.dao.dialect.mysql;

import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Types;

import jp.dodododo.dao.wrapper.PreparedStatementWrapper;

public class MySQLPreparedStatement extends PreparedStatementWrapper {

	public MySQLPreparedStatement(PreparedStatement preparedStatement) {
		super(preparedStatement);
	}

	@Override
	public void setObject(int parameterIndex, Object x, int targetSqlType) throws SQLException {
		if(targetSqlType== Types.JAVA_OBJECT || targetSqlType== Types.OTHER) {
			super.setObject(parameterIndex, x);
		} else {
			super.setObject(parameterIndex, x, targetSqlType);
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy