/** * INTERNAL: * Convenience method. * Return the value of an attribute, unwrapping value holders if necessary. * If the value is null, build a new container. */ @Override public Object getRealCollectionAttributeValueFromObject(Object object, AbstractSession session) throws DescriptorException { Object value = this.getRealAttributeValueFromObject(object, session); if (value == null) { value = this.getContainerPolicy().containerInstance(1); } return value; }
/** * The message is passed to its reference class descriptor. */ public void postDeleteAttributeValue(DeleteObjectQuery query, Object attributeValue) throws DatabaseException, OptimisticLockException { if (attributeValue == null) { return; } ContainerPolicy cp = this.getContainerPolicy(); for (Object iter = cp.iteratorFor(attributeValue); cp.hasNext(iter);) { super.postDeleteAttributeValue(query, cp.next(iter, query.getSession())); } }
/** * The message is passed to its reference class descriptor. */ public void postUpdateAttributeValue(WriteObjectQuery query, Object attributeValue) throws DatabaseException, OptimisticLockException { if (attributeValue == null) { return; } ContainerPolicy cp = this.getContainerPolicy(); for (Object iter = cp.iteratorFor(attributeValue); cp.hasNext(iter);) { super.postUpdateAttributeValue(query, cp.next(iter, query.getSession())); } }
/** * The message is passed to its reference class descriptor. */ public void preDeleteAttributeValue(DeleteObjectQuery query, Object attributeValue) throws DatabaseException, OptimisticLockException { if (attributeValue == null) { return; } ContainerPolicy cp = this.getContainerPolicy(); for (Object iter = cp.iteratorFor(attributeValue); cp.hasNext(iter);) { super.preDeleteAttributeValue(query, cp.next(iter, query.getSession())); } }
/** * Iterate on the specified attribute value. */ @Override protected void iterateOnAttributeValue(DescriptorIterator descriptorIterator, Object attributeValue) { if (attributeValue == null) { return; } ContainerPolicy cp = this.getContainerPolicy(); for (Object iter = cp.iteratorFor(attributeValue); cp.hasNext(iter);) { super.iterateOnAttributeValue(descriptorIterator, cp.next(iter, descriptorIterator.getSession())); } }
/** * The message is passed to its reference class descriptor. */ public void postInsertAttributeValue(WriteObjectQuery query, Object attributeValue) throws DatabaseException, OptimisticLockException { if (attributeValue == null) { return; } ContainerPolicy cp = this.getContainerPolicy(); for (Object iter = cp.iteratorFor(attributeValue); cp.hasNext(iter);) { super.postInsertAttributeValue(query, cp.next(iter, query.getSession())); } }
/** * The message is passed to its reference class descriptor. */ public void preUpdateAttributeValue(WriteObjectQuery query, Object attributeValue) throws DatabaseException, OptimisticLockException { if (attributeValue == null) { return; } ContainerPolicy cp = this.getContainerPolicy(); for (Object iter = cp.iteratorFor(attributeValue); cp.hasNext(iter);) { super.preUpdateAttributeValue(query, cp.next(iter, query.getSession())); } }
/** * The message is passed to its reference class descriptor. */ public void preInsertAttributeValue(WriteObjectQuery query, Object attributeValue) throws DatabaseException, OptimisticLockException { if (attributeValue == null) { return; } ContainerPolicy cp = this.getContainerPolicy(); for (Object iter = cp.iteratorFor(attributeValue); cp.hasNext(iter);) { super.preInsertAttributeValue(query, cp.next(iter, query.getSession())); } }
/** * Iterate on the specified attribute value. */ @Override protected void iterateOnAttributeValue(DescriptorIterator descriptorIterator, Object attributeValue) { if (attributeValue == null) { return; } ContainerPolicy cp = this.getContainerPolicy(); for (Object iter = cp.iteratorFor(attributeValue); cp.hasNext(iter);) { super.iterateOnAttributeValue(descriptorIterator, cp.next(iter, descriptorIterator.getSession())); } }
/** * The message is passed to its reference class descriptor. */ @Override public void postUpdateAttributeValue(WriteObjectQuery query, Object attributeValue) throws DatabaseException, OptimisticLockException { if (attributeValue == null) { return; } ContainerPolicy cp = this.getContainerPolicy(); for (Object iter = cp.iteratorFor(attributeValue); cp.hasNext(iter);) { super.postUpdateAttributeValue(query, cp.next(iter, query.getSession())); } }
/** * The message is passed to its reference class descriptor. */ @Override public void preDeleteAttributeValue(DeleteObjectQuery query, Object attributeValue) throws DatabaseException, OptimisticLockException { if (attributeValue == null) { return; } ContainerPolicy cp = this.getContainerPolicy(); for (Object iter = cp.iteratorFor(attributeValue); cp.hasNext(iter);) { super.preDeleteAttributeValue(query, cp.next(iter, query.getSession())); } }
/** * The message is passed to its reference class descriptor. */ @Override public void preUpdateAttributeValue(WriteObjectQuery query, Object attributeValue) throws DatabaseException, OptimisticLockException { if (attributeValue == null) { return; } ContainerPolicy cp = this.getContainerPolicy(); for (Object iter = cp.iteratorFor(attributeValue); cp.hasNext(iter);) { super.preUpdateAttributeValue(query, cp.next(iter, query.getSession())); } }
/** * Iterate on the specified attribute value. */ protected void iterateOnAttributeValue(DescriptorIterator descriptorIterator, Object attributeValue) { if (attributeValue == null) { return; } ContainerPolicy cp = this.getContainerPolicy(); for (Object iter = cp.iteratorFor(attributeValue); cp.hasNext(iter);) { super.iterateOnAttributeValue(descriptorIterator, cp.next(iter, descriptorIterator.getSession())); } }
/** * The message is passed to its reference class descriptor. */ @Override public void postDeleteAttributeValue(DeleteObjectQuery query, Object attributeValue) throws DatabaseException, OptimisticLockException { if (attributeValue == null) { return; } ContainerPolicy cp = this.getContainerPolicy(); for (Object iter = cp.iteratorFor(attributeValue); cp.hasNext(iter);) { super.postDeleteAttributeValue(query, cp.next(iter, query.getSession())); } }
/** * The message is passed to its reference class descriptor. */ @Override public void postInsertAttributeValue(WriteObjectQuery query, Object attributeValue) throws DatabaseException, OptimisticLockException { if (attributeValue == null) { return; } ContainerPolicy cp = this.getContainerPolicy(); for (Object iter = cp.iteratorFor(attributeValue); cp.hasNext(iter);) { super.postInsertAttributeValue(query, cp.next(iter, query.getSession())); } }
/** * The message is passed to its reference class descriptor. */ @Override public void postUpdateAttributeValue(WriteObjectQuery query, Object attributeValue) throws DatabaseException, OptimisticLockException { if (attributeValue == null) { return; } ContainerPolicy cp = this.getContainerPolicy(); for (Object iter = cp.iteratorFor(attributeValue); cp.hasNext(iter);) { super.postUpdateAttributeValue(query, cp.next(iter, query.getSession())); } }
/** * The message is passed to its reference class descriptor. */ @Override public void preInsertAttributeValue(WriteObjectQuery query, Object attributeValue) throws DatabaseException, OptimisticLockException { if (attributeValue == null) { return; } ContainerPolicy cp = this.getContainerPolicy(); for (Object iter = cp.iteratorFor(attributeValue); cp.hasNext(iter);) { super.preInsertAttributeValue(query, cp.next(iter, query.getSession())); } }
/** * The message is passed to its reference class descriptor. */ @Override public void preUpdateAttributeValue(WriteObjectQuery query, Object attributeValue) throws DatabaseException, OptimisticLockException { if (attributeValue == null) { return; } ContainerPolicy cp = this.getContainerPolicy(); for (Object iter = cp.iteratorFor(attributeValue); cp.hasNext(iter);) { super.preUpdateAttributeValue(query, cp.next(iter, query.getSession())); } }
/** * The message is passed to its reference class descriptor. */ @Override public void preInsertAttributeValue(WriteObjectQuery query, Object attributeValue) throws DatabaseException, OptimisticLockException { if (attributeValue == null) { return; } ContainerPolicy cp = this.getContainerPolicy(); for (Object iter = cp.iteratorFor(attributeValue); cp.hasNext(iter);) { super.preInsertAttributeValue(query, cp.next(iter, query.getSession())); } }
/** * The message is passed to its reference class descriptor. */ @Override public void postInsertAttributeValue(WriteObjectQuery query, Object attributeValue) throws DatabaseException, OptimisticLockException { if (attributeValue == null) { return; } ContainerPolicy cp = this.getContainerPolicy(); for (Object iter = cp.iteratorFor(attributeValue); cp.hasNext(iter);) { super.postInsertAttributeValue(query, cp.next(iter, query.getSession())); } }