ode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sean...@apache.org
Subject svn commit: r780786 - /ode/branches/APACHE_ODE_1.X/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/ProcessManagementDaoImpl.java
Date Mon, 01 Jun 2009 19:07:32 GMT
Author: seanahn
Date: Mon Jun  1 19:07:31 2009
New Revision: 780786

URL: http://svn.apache.org/viewvc?rev=780786&view=rev
Log:
Removed tabs

Modified:
    ode/branches/APACHE_ODE_1.X/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/ProcessManagementDaoImpl.java

Modified: ode/branches/APACHE_ODE_1.X/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/ProcessManagementDaoImpl.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/ProcessManagementDaoImpl.java?rev=780786&r1=780785&r2=780786&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.X/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/ProcessManagementDaoImpl.java
(original)
+++ ode/branches/APACHE_ODE_1.X/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/ProcessManagementDaoImpl.java
Mon Jun  1 19:07:31 2009
@@ -32,37 +32,37 @@
 import org.hibernate.transform.ResultTransformer;
 
 public class ProcessManagementDaoImpl extends HibernateDao implements ProcessManagementDAO
{
-	protected ProcessManagementDaoImpl(SessionManager sessionManager) {
-		super(sessionManager, null);
-	}
+    protected ProcessManagementDaoImpl(SessionManager sessionManager) {
+        super(sessionManager, null);
+    }
 
-	@SuppressWarnings("unchecked")
-	public Object[] findFailedCountAndLastFailedDateForProcessId(BpelDAOConnection conn, String
status, String processId) {
-		Object[] results = new Object[] {0, null};
-		
-		Query query = getSession().getNamedQuery(HProcessInstance.COUNT_FAILED_INSTANCES_BY_PROCESS_IDS_AND_STATES);
-		query.setParameterList("states", new InstanceFilter("status=" + status).convertFilterState());
-		query.setParameterList("processIds", new String[] {processId});
-		query.setResultTransformer(new ResultTransformer() {
-			private static final long serialVersionUID = 8034301512569916379L;
+    @SuppressWarnings("unchecked")
+    public Object[] findFailedCountAndLastFailedDateForProcessId(BpelDAOConnection conn,
String status, String processId) {
+        Object[] results = new Object[] {0, null};
+        
+        Query query = getSession().getNamedQuery(HProcessInstance.COUNT_FAILED_INSTANCES_BY_PROCESS_IDS_AND_STATES);
+        query.setParameterList("states", new InstanceFilter("status=" + status).convertFilterState());
+        query.setParameterList("processIds", new String[] {processId});
+        query.setResultTransformer(new ResultTransformer() {
+            private static final long serialVersionUID = 8034301512569916379L;
 
-			public List transformList(List collection) {
-				return collection;
-			}
-			public Object transformTuple(Object[] tuple, String[] aliases) {
-				return tuple;
-			}
-		});
-		
-		List result = query.list();
-		if( !result.isEmpty() ) {
-			results = (Object[])result.iterator().next();
-		}
-		
-		return results;
-	}
-	
-	public void prefetchActivityFailureCounts(Collection<ProcessInstanceDAO> instances)
{
-		// do nothing; activity failures counts are already in a column 
-	}
+            public List transformList(List collection) {
+                return collection;
+            }
+            public Object transformTuple(Object[] tuple, String[] aliases) {
+                return tuple;
+            }
+        });
+        
+        List result = query.list();
+        if( !result.isEmpty() ) {
+            results = (Object[])result.iterator().next();
+        }
+        
+        return results;
+    }
+    
+    public void prefetchActivityFailureCounts(Collection<ProcessInstanceDAO> instances)
{
+        // do nothing; activity failures counts are already in a column 
+    }
 }



Mime
View raw message