public class IgnoreDuplicatesPersistenceVisitor extends PersistenceVisitor
AbstractPersistentObject.insertPlainWithComponents()),
if components are referenced more than once within the same root entity.| Constructor and Description |
|---|
IgnoreDuplicatesPersistenceVisitor()
Creates the visitor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPersistenceOperationAllowed(AbstractDbObject<?> object,
char modType)
Checks whether object has already been persisted.
|
void |
visit(AbstractDbObject<?> object,
Character modType)
Visits all objects.
|
findVisitMethod, handleException, isImplementedClass, visitpublic IgnoreDuplicatesPersistenceVisitor()
public void visit(AbstractDbObject<?> object, Character modType)
This is the dispatched method!
object - the objectmodType - the modification type (ignored)public boolean isPersistenceOperationAllowed(AbstractDbObject<?> object, char modType)
isPersistenceOperationAllowed in class PersistenceVisitorobject - the persistable objectmodType - the modification type (ignored)Copyright © 2016 Krake Softwaretechnik. All rights reserved.