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

pers.clare.hisql.repository.SQLRepository Maven / Gradle / Ivy

The newest version!
package pers.clare.hisql.repository;

import org.springframework.lang.NonNull;
import org.springframework.stereotype.Repository;
import pers.clare.hisql.function.ConnectionCallback;
import pers.clare.hisql.function.PreparedStatementCallback;
import pers.clare.hisql.function.ResultSetCallback;
import pers.clare.hisql.store.SQLStore;

@SuppressWarnings("unused")
@Repository
public interface SQLRepository {
     R connection(String sql, Object[] args, ConnectionCallback callback);

     R prepared(String sql, PreparedStatementCallback callback);

     R resultSet(String sql, Object[] args, ResultSetCallback callback);


     T executeInsert(Class keyType, String sql, Object... args);

    @NonNull
    int executeUpdate(String sql, Object... args);

     SQLStore buildSQLStore(Class clazz);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy