Mass removal of all Tabs (Style Warnings)
[aaf/authz.git] / auth / auth-batch / src / main / java / org / onap / aaf / auth / CassBatch.java
index 32e8f85..cb2b158 100644 (file)
@@ -35,44 +35,44 @@ import com.datastax.driver.core.exceptions.InvalidQueryException;
 
 public abstract class CassBatch extends Batch {
 
-       protected CassBatch(AuthzTrans trans, String log4JName) throws APIException, IOException, OrganizationException {
-               super(trans.env());
-               // Flow all Env Logs to Log4j
-               Log4JLogTarget.setLog4JEnv(log4JName, env);
-               
-               TimeTaken tt = trans.start("Connect to Cluster", Env.REMOTE);
-               try {
-                       session = cluster.connect();
-               } finally {
-                       tt.done();
-               }
-       }
+    protected CassBatch(AuthzTrans trans, String log4JName) throws APIException, IOException, OrganizationException {
+        super(trans.env());
+        // Flow all Env Logs to Log4j
+        Log4JLogTarget.setLog4JEnv(log4JName, env);
+        
+        TimeTaken tt = trans.start("Connect to Cluster", Env.REMOTE);
+        try {
+            session = cluster.connect();
+        } finally {
+            tt.done();
+        }
+    }
 
-       @Override
-       protected void _close(AuthzTrans trans) {
-           session.close();
-               trans.info().log("Closed Session");
-       }
+    @Override
+    protected void _close(AuthzTrans trans) {
+        session.close();
+        trans.info().log("Closed Session");
+    }
 
-       public ResultSet executeQuery(String cql) {
-               return executeQuery(cql,"");
-       }
+    public ResultSet executeQuery(String cql) {
+        return executeQuery(cql,"");
+    }
 
-       public ResultSet executeQuery(String cql, String extra) {
-               if(isDryRun() && !cql.startsWith("SELECT")) {
-                       if(extra!=null)env.info().log("Would query" + extra + ": " + cql);
-               } else {
-                       if(extra!=null)env.info().log("query" + extra + ": " + cql);
-                       try {
-                               return session.execute(cql);
-                       } catch (InvalidQueryException e) {
-                               if(extra==null) {
-                                       env.info().log("query: " + cql);
-                               }
-                               throw e;
-                       }
-               
-               return null;
-       }
+    public ResultSet executeQuery(String cql, String extra) {
+        if(isDryRun() && !cql.startsWith("SELECT")) {
+            if(extra!=null)env.info().log("Would query" + extra + ": " + cql);
+        } else {
+            if(extra!=null)env.info().log("query" + extra + ": " + cql);
+            try {
+                return session.execute(cql);
+            } catch (InvalidQueryException e) {
+                if(extra==null) {
+                    env.info().log("query: " + cql);
+                }
+                throw e;
+            }
+        } 
+        return null;
+    }
 
 }
\ No newline at end of file