Giter Site home page Giter Site logo

prepareconnection's Introduction

PrepareConnection

#####简单的存储过程执行器 v1.0 #####没有发现hibernate执行存储过程的方法就自己封装了!

使用方法

可以在任何能获取hibernate session的地方使用

new PrepareConnectionImpl(session,prepareName);

也可以封装到service或dao层,这是我封装到dao的代码

@Override
public PrepareConnection prepareCall(String prepareName) {
    return new PrepareConnectionImpl(getSession(), prepareName);
}

属性说明

属性 说明
statement 储存过程的原始返回值
list 按照输出参数返回的Object[]列队

方法说明

属性 说明
setParameter 设置输入参数
setOutParameter 设置输出参数
execute 执行存储过程
list 获取存储过程输出参数列队,懒加载

prepareconnection's People

Contributors

cjahv avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.