Changed oddly-named methods. Looks like the result of a bum refactoring.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.0@568327 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Patrick Linskey 2007-08-21 23:28:33 +00:00
parent a5eee82878
commit dc3615c613
3 changed files with 6 additions and 6 deletions

View File

@ -580,7 +580,7 @@ public class StateManagerImpl
// Throw exception if field already has a value assigned.
// @GeneratedValue overrides POJO initial values and setter methods
if (!isDefaultValue(field) && !fmd.is_generated())
if (!isDefaultValue(field) && !fmd.isValueGenerated())
throw new InvalidStateException(_loc.get(
"existing-value-override-excep", fmd.getFullName(false)));
@ -591,7 +591,7 @@ public class StateManagerImpl
// for other fields just assign the field or flush if needed
if (_broker.getStoreManager().assignField(this, field, preFlushing)) {
fmd.set_generated(true);
fmd.setValueGenerated(true);
return true;
}
if (!preFlushing)

View File

@ -2051,11 +2051,11 @@ public class FieldMetaData
}
}
public boolean is_generated() {
public boolean isValueGenerated() {
return _generated;
}
public void set_generated(boolean _generated) {
this._generated = _generated;
public void setValueGenerated(boolean generated) {
this._generated = generated;
}
}

View File

@ -448,7 +448,7 @@ public class ApplicationIds {
.getFullName(false)));
// Assign the generated value
if (store.assignField(sm, pks[i].getIndex(), preFlush))
pks[i].set_generated(true);
pks[i].setValueGenerated(true);
else
return false;
}