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

com.codingapi.springboot.permission.event.JdbcPreparedStatementExecuteEvent Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
package com.codingapi.springboot.permission.event;

import com.codingapi.springboot.permission.analyzer.JdbcSql;
import com.codingapi.springboot.framework.event.IEvent;
import lombok.AllArgsConstructor;

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

/**
 * @author lorne
 * @since 1.0.0
 */
@AllArgsConstructor
public class JdbcPreparedStatementExecuteEvent implements IEvent {

    private final PreparedStatement preparedStatement;
    private final JdbcSql jdbcSql;

    public void put(String key,Object value) throws SQLException {
        jdbcSql.put(key,value,(index)->{
            preparedStatement.setObject(index,value);
        });
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy