empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doeb...@apache.org
Subject svn commit: r1386837 - /empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBRecord.java
Date Mon, 17 Sep 2012 21:01:06 GMT
Author: doebele
Date: Mon Sep 17 21:01:06 2012
New Revision: 1386837

URL: http://svn.apache.org/viewvc?rev=1386837&view=rev
Log:
EMPIREDB-157 
JSF2 determine field index by calling getFieldIndex instead of rowset.getColumnIndex()

Modified:
    empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBRecord.java

Modified: empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBRecord.java
URL: http://svn.apache.org/viewvc/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBRecord.java?rev=1386837&r1=1386836&r2=1386837&view=diff
==============================================================================
--- empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBRecord.java (original)
+++ empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBRecord.java Mon Sep 17
21:01:06 2012
@@ -586,7 +586,7 @@ public class DBRecord extends DBRecordDa
         if (!isValid())
             throw new ObjectNotValidException(this);
         // Get Column Index
-        setValue(rowset.getColumnIndex(column), value);
+        setValue(getFieldIndex(column), value);
     }
     
     /**
@@ -666,7 +666,7 @@ public class DBRecord extends DBRecordDa
     {
         if (rowset==null)
             throw new ObjectNotValidException(this);
-    	if (rowset.getColumnIndex(column)<0)
+    	if (getFieldIndex(column)<0)
             throw new InvalidArgumentException("column", column);
     	// Check key column 
         if (isValid() && !isNew() && rowset.isKeyColumn((DBColumn)column))



Mime
View raw message