Project

General

Profile

1
package eu.dnetlib.openaire.user.store;
2

    
3
import java.sql.PreparedStatement;
4
import java.sql.SQLException;
5

    
6
/**
7
 * Created by sofia on 28/6/2016.
8
 */
9

    
10
public class Statement
11
{
12
    public interface Initializer {
13
        void prepare(PreparedStatement stmt) throws SQLException;
14
    }
15

    
16
    private static final Initializer EMPTY = new Initializer() {
17

    
18
        @Override
19
        public void prepare(PreparedStatement stmt) throws SQLException {}
20
    };
21

    
22
    public static Initializer emptyInitializer() {
23
        return EMPTY;
24
    }
25
}
(4-4/4)