public final class MissingRefServiceImpl extends java.lang.Object implements IMissingRefService
IMissingRefService implementation.| Constructor and Description | 
|---|
MissingRefServiceImpl(OdiInstance pOdiInstance)
Constructs a MissingRefServiceImpl object. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
java.util.Collection | 
findEntityMissingReferences(java.lang.Class pOdiEntityClass,
                           java.io.Serializable pOdiEntityId,
                           boolean pApplyToChildren)  | 
java.util.Collection | 
findEntityMissingReferences(java.lang.Class pOdiEntityClass,
                           java.lang.String pOdiEntityGlobalId,
                           boolean pApplyToChildren)  | 
java.util.Collection | 
findMissingReferences(java.lang.Class pOdiEntityClass,
                     java.io.Serializable pOdiEntityId,
                     boolean pApplyToChildren)
Query the missing references for the given entity type and identifier. 
 | 
java.util.Collection | 
findMissingReferences(java.lang.Class pOdiEntityClass,
                     java.lang.String pOdiEntityGlobalId,
                     boolean pApplyToChildren)
Query the missing references for the given entity type and identifier. 
 | 
void | 
markAsFixed(java.util.Collection pMissingRefs)
Mark the given missing references collection as fixed. 
 | 
void | 
markAsFixed(IMissingRef pMissingRef)
Mark the given missing reference as fixed. 
 | 
public MissingRefServiceImpl(OdiInstance pOdiInstance)
pOdiInstance - an OdiInstance objectpublic java.util.Collection findMissingReferences(java.lang.Class pOdiEntityClass,
                                                  java.io.Serializable pOdiEntityId,
                                                  boolean pApplyToChildren)
Returns an empty collection if no missing reference was found.
This method doesn't need to be called within a surrounding transaction.
findMissingReferences in interface IMissingRefServicepOdiEntityClass - the entity java classpOdiEntityId - the entity internal identifierpApplyToChildren - true to apply the query to children of the entity, false otherwisepublic java.util.Collection findEntityMissingReferences(java.lang.Class pOdiEntityClass,
                                                        java.io.Serializable pOdiEntityId,
                                                        boolean pApplyToChildren)
public java.util.Collection findMissingReferences(java.lang.Class pOdiEntityClass,
                                                  java.lang.String pOdiEntityGlobalId,
                                                  boolean pApplyToChildren)
Returns an empty collection if no missing reference was found.
This method doesn't need to be called within a surrounding transaction.
pOdiEntityClass - the entity java classpOdiEntityGlobalId - the entity global identifierpApplyToChildren - true to apply the query to children of the entity, false otherwisepublic java.util.Collection findEntityMissingReferences(java.lang.Class pOdiEntityClass,
                                                        java.lang.String pOdiEntityGlobalId,
                                                        boolean pApplyToChildren)
public void markAsFixed(IMissingRef pMissingRef)
This method needs to be called within a surrounding transaction. If no transaction is started, this method will throw an IllegalTransactionStateException.
markAsFixed in interface IMissingRefServicepMissingRef - The missing reference that has been corrected and therefore no longer existmarkAsFixed(Collection)public void markAsFixed(java.util.Collection pMissingRefs)
markAsFixed in interface IMissingRefServicepMissingRefs - the collection of missing refs that have been corrected and therefore no longer existmarkAsFixed(IMissingRef)