adds support for fields as well as local variables.
[cfb.git] / prod / net / jaekl / cfb / store / DbStore.java
index bbf2a721340ec3b6792e3d5721009b72fd992671..dd8f77733ac2fde4e921d12028021f59e66771b4 100644 (file)
@@ -17,6 +17,7 @@ import net.jaekl.cfb.db.driver.DbDriver;
 import net.jaekl.cfb.xml.BugCollection;
 import net.jaekl.cfb.xml.BugInstance;
 import net.jaekl.cfb.xml.LocalVariable;
+import net.jaekl.cfb.xml.Variable;
 import net.jaekl.cfb.xml.messages.BugCategory;
 import net.jaekl.cfb.xml.messages.BugPattern;
 import net.jaekl.cfb.xml.messages.MessageCollection;
@@ -217,7 +218,7 @@ public class DbStore {
                        return null;
                }
                
-               List<LocalVariable> vars = bug.getVariables();
+               List<Variable> vars = bug.getVariables();
                if ((null == vars) || (0 == vars.size())) {
                        return null;
                }
@@ -249,7 +250,7 @@ public class DbStore {
                return new LocalVariable(varId, varName, varRole);
        }
        
-       Long getVarId(LocalVariable var) throws SQLException, TypeMismatchException
+       Long getVarId(Variable var) throws SQLException, TypeMismatchException
        {
                if (null == var) {
                        return null;
@@ -264,7 +265,7 @@ public class DbStore {
                return storeVar(var);
        }
        
-       Long findVarId(LocalVariable var) throws SQLException, TypeMismatchException
+       Long findVarId(Variable var) throws SQLException, TypeMismatchException
        {
                Column[] columns = { CfbSchema.VARID_PK };
                Table[] tables = { CfbSchema.VARIABLES };
@@ -283,7 +284,7 @@ public class DbStore {
                return null;    // not found
        }
        
-       Long storeVar(LocalVariable var) throws SQLException
+       Long storeVar(Variable var) throws SQLException
        {
                long varId = m_driver.nextVal(m_con, CfbSchema.VARIABLE_SEQ);