public Object getAttributeValueFromObject(Object object) { if (((ForeignReferenceMapping)object).hasCustomSelectionQuery()) { return ((ForeignReferenceMapping)object).getSelectionQuery(); } return null; }
public Object getAttributeValueFromObject(Object object) { if (((ForeignReferenceMapping)object).hasCustomSelectionQuery()) { return ((ForeignReferenceMapping)object).getSelectionQuery(); } return null; }
public Object getAttributeValueFromObject(Object object) { if (((ForeignReferenceMapping)object).hasCustomSelectionQuery()) { return ((ForeignReferenceMapping)object).getSelectionQuery(); } return null; }
public Object getAttributeValueFromObject(Object object) { if (((ForeignReferenceMapping)object).hasCustomSelectionQuery()) { return ((ForeignReferenceMapping)object).getSelectionQuery(); } return null; }
public Object getAttributeValueFromObject(Object object) { if (((ForeignReferenceMapping)object).hasCustomSelectionQuery()) { return ((ForeignReferenceMapping)object).getSelectionQuery(); } return null; }
public Object getAttributeValueFromObject(Object object) { if (((ForeignReferenceMapping)object).hasCustomSelectionQuery()) { return ((ForeignReferenceMapping)object).getSelectionQuery(); } return null; }
protected boolean shouldInitializeSelectionCriteria() { if (shouldForceInitializationOfSelectionCriteria()) { return true; } if (hasCustomSelectionQuery()) { return false; } if (getSelectionCriteria() == null) { return true; } return false; }
protected boolean shouldInitializeSelectionCriteria() { if (shouldForceInitializationOfSelectionCriteria()) { return true; } if (hasCustomSelectionQuery()) { return false; } if (getSelectionCriteria() == null) { return true; } return false; }
protected boolean shouldInitializeSelectionCriteria() { if (shouldForceInitializationOfSelectionCriteria()) { return true; } if (hasCustomSelectionQuery()) { return false; } if (getSelectionCriteria() == null) { return true; } return false; }
/** * INTERNAL: */ protected void prepareCascadeLockingPolicy(DatabaseMapping mapping) { if (mapping.isPrivateOwned() && mapping.isForeignReferenceMapping()) { if (mapping.isCascadedLockingSupported()) { // Even if the mapping says it is supported in general, there // may be conditions where it is not. Need the following checks. if (((ForeignReferenceMapping)mapping).hasCustomSelectionQuery()) { throw ValidationException.unsupportedCascadeLockingMappingWithCustomQuery(mapping); } else if (isDescriptorTypeAggregate()) { throw ValidationException.unsupportedCascadeLockingDescriptor(this); } else { mapping.prepareCascadeLockingPolicy(); } } else { throw ValidationException.unsupportedCascadeLockingMapping(mapping); } } }
/** * INTERNAL: */ protected void prepareCascadeLockingPolicy(DatabaseMapping mapping) { if (mapping.isPrivateOwned() && mapping.isForeignReferenceMapping()) { if (mapping.isCascadedLockingSupported()) { // Even if the mapping says it is supported in general, there // may be conditions where it is not. Need the following checks. if (((ForeignReferenceMapping)mapping).hasCustomSelectionQuery()) { throw ValidationException.unsupportedCascadeLockingMappingWithCustomQuery(mapping); } else if (isDescriptorTypeAggregate()) { throw ValidationException.unsupportedCascadeLockingDescriptor(this); } else { mapping.prepareCascadeLockingPolicy(); } } else { throw ValidationException.unsupportedCascadeLockingMapping(mapping); } } }
/** * INTERNAL: */ protected void prepareCascadeLockingPolicy(DatabaseMapping mapping) { if (mapping.isPrivateOwned() && mapping.isForeignReferenceMapping()) { if (mapping.isCascadedLockingSupported()) { // Even if the mapping says it is supported in general, there // may be conditions where it is not. Need the following checks. if (((ForeignReferenceMapping)mapping).hasCustomSelectionQuery()) { throw ValidationException.unsupportedCascadeLockingMappingWithCustomQuery(mapping); } else if (isDescriptorTypeAggregate()) { throw ValidationException.unsupportedCascadeLockingDescriptor(this); } else { mapping.prepareCascadeLockingPolicy(); } } else { throw ValidationException.unsupportedCascadeLockingMapping(mapping); } } }