Package de.danet.an.util

Examples of de.danet.an.util.UniversalPrepStmt$SaveColumn


            PreparedStatement prepStmt = null;
            Connection con = null;
            ResultSet rs = null;
            try {
                con = ds.getConnection();
                prepStmt = new UniversalPrepStmt
                    (ds, con, "SELECT XPDL FROM XPDLARCHIVE WHERE DBID = ?");
                prepStmt.setLong(1, id);
                rs = prepStmt.executeQuery();
                if (!rs.next()) {
                    throw new IllegalArgumentException();
View Full Code Here


            PreparedStatement prepStmt = null;
            Connection con = null;
            ResultSet rs = null;
            try {
                con = ds.getConnection();
                prepStmt = new UniversalPrepStmt
                    (ds, con, "SELECT XPDLREF "
                     + "FROM PROCESSDEFINITION WHERE XPDLREF = ?");
                prepStmt.setLong(1, id);
                prepStmt.setMaxRows(1);
                rs = prepStmt.executeQuery();
                if (rs.next()) {
                    return;
                }
                rs.close();
                rs = null;
                prepStmt.close();
                prepStmt = null;
                prepStmt = new UniversalPrepStmt
                    (ds, con, "SELECT XPDLREF "
                     + "FROM PROCESS WHERE XPDLREF = ?");
                prepStmt.setLong(1, id);
                prepStmt.setMaxRows(1);
                rs = prepStmt.executeQuery();
                if (rs.next()) {
                    return;
                }
                rs.close();
                rs = null;
                prepStmt.close();
                prepStmt = null;
                prepStmt = new UniversalPrepStmt
                    (ds, con, "DELETE FROM XPDLARCHIVE WHERE DBID = ?");
                prepStmt.setLong(1, id);
                prepStmt.executeUpdate();
                archivedProcessDefinitionCache.remove (new Long(id));
            } finally {
View Full Code Here

TOP

Related Classes of de.danet.an.util.UniversalPrepStmt$SaveColumn

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.