OPENJPA-417 - Change isStoreMapCollectionInEntityAsBlob() to getStoreMapCollectionInEntityAsBlob()

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@641891 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Albert Lee 2008-03-27 16:56:05 +00:00
parent 315a348848
commit 1b8ccc6245
2 changed files with 4 additions and 4 deletions

View File

@ -884,7 +884,7 @@ public class MappingRepository
protected FieldStrategy handlerCollectionStrategy(FieldMapping field, protected FieldStrategy handlerCollectionStrategy(FieldMapping field,
ValueHandler ehandler, boolean installHandlers) { ValueHandler ehandler, boolean installHandlers) {
if (getConfiguration().getCompatibilityInstance() if (getConfiguration().getCompatibilityInstance()
.isStoreMapCollectionInEntityAsBlob()) .getStoreMapCollectionInEntityAsBlob())
return null; return null;
if (installHandlers) if (installHandlers)
field.getElementMapping().setHandler(ehandler); field.getElementMapping().setHandler(ehandler);
@ -899,7 +899,7 @@ public class MappingRepository
ValueHandler khandler, ValueHandler vhandler, boolean krel, ValueHandler khandler, ValueHandler vhandler, boolean krel,
boolean vrel, boolean installHandlers) { boolean vrel, boolean installHandlers) {
if (getConfiguration().getCompatibilityInstance() if (getConfiguration().getCompatibilityInstance()
.isStoreMapCollectionInEntityAsBlob()) .getStoreMapCollectionInEntityAsBlob())
return null; return null;
if (installHandlers) { if (installHandlers) {
field.getKeyMapping().setHandler(khandler); field.getKeyMapping().setHandler(khandler);
@ -1084,7 +1084,7 @@ public class MappingRepository
return new ObjectIdValueHandler(); return new ObjectIdValueHandler();
} }
if (!getConfiguration().getCompatibilityInstance() if (!getConfiguration().getCompatibilityInstance()
.isStoreMapCollectionInEntityAsBlob() .getStoreMapCollectionInEntityAsBlob()
&& val.isEmbeddedPC()) && val.isEmbeddedPC())
return new ElementEmbedValueHandler(); return new ElementEmbedValueHandler();
return null; return null;

View File

@ -224,7 +224,7 @@ public class Compatibility {
* @since 1.1.0 * @since 1.1.0
*/ */
public boolean isStoreMapCollectionInEntityAsBlob() { public boolean getStoreMapCollectionInEntityAsBlob() {
return _storeMapCollectionInEntityAsBlob; return _storeMapCollectionInEntityAsBlob;
} }