Package in.partake.service

Examples of in.partake.service.IDBService


import in.partake.model.dao.PartakeConnection;
import in.partake.service.IDBService;

public abstract class DBAccess<T> {
    public final T execute() throws DAOException, PartakeException {
        IDBService dbService = PartakeApp.getDBService();

        PartakeConnection con = dbService.getConnection();
        try {
            return doExecute(con, dbService.getDAOs());
        } finally {
            con.invalidate();
        }
    }
View Full Code Here


import in.partake.model.dao.PartakeConnection;
import in.partake.service.IDBService;

public abstract class Transaction<T> {
    public final T execute() throws DAOException, PartakeException {
        IDBService dbService = PartakeApp.getDBService();

        PartakeConnection con = dbService.getConnection();
        try {
            con.beginTransaction();
            T result = doExecute(con, dbService.getDAOs());

            if (con.isInTransaction()) {
                con.commit();
            }
View Full Code Here

TOP

Related Classes of in.partake.service.IDBService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.