empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doeb...@apache.org
Subject svn commit: r1301442 - in /empire-db/trunk/empire-db/src/main/java/org/apache/empire: data/bean/BeanRecordProxy.java db/DBRecord.java
Date Fri, 16 Mar 2012 11:35:27 GMT
Author: doebele
Date: Fri Mar 16 11:35:27 2012
New Revision: 1301442

URL: http://svn.apache.org/viewvc?rev=1301442&view=rev
Log:
EMPIREDB-137
small addition

Modified:
    empire-db/trunk/empire-db/src/main/java/org/apache/empire/data/bean/BeanRecordProxy.java
    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/data/bean/BeanRecordProxy.java
URL: http://svn.apache.org/viewvc/empire-db/trunk/empire-db/src/main/java/org/apache/empire/data/bean/BeanRecordProxy.java?rev=1301442&r1=1301441&r2=1301442&view=diff
==============================================================================
--- empire-db/trunk/empire-db/src/main/java/org/apache/empire/data/bean/BeanRecordProxy.java
(original)
+++ empire-db/trunk/empire-db/src/main/java/org/apache/empire/data/bean/BeanRecordProxy.java
Fri Mar 16 11:35:27 2012
@@ -157,6 +157,8 @@ public class BeanRecordProxy<T> implemen
 
     public boolean isFieldReadOnly(Column column)
     {
+        if (isReadOnly())
+            return true;
     	if (isNew()==false && ObjectUtils.contains(keyColumns, column))
     		return true;
     	if (column.isAutoGenerated())

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=1301442&r1=1301441&r2=1301442&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 Fri Mar 16
11:35:27 2012
@@ -561,6 +561,8 @@ public class DBRecord extends DBRecordDa
     {
         if (rowset==null)
             throw new ObjectNotValidException(this);
+        if (isReadOnly())
+            return true;
         // Ask RowSet
         return (rowset.isColumnReadOnly(column));
     }



Mime
View raw message