private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); this.oppositePropertyId = this.associationProperty.getOppositeProperty().getId(); } }
private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); this.oppositePropertyId = this.associationProperty.getOppositeProperty().getId(); } }
private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); this.oppositePropertyId = this.associationProperty.getOppositeProperty().getId(); } }
public AssociatedNavigableMap(ObjectModel objectModel, int propertyId) { super(null); Arguments.mustNotBeNull("objectModel", objectModel); this.owner = objectModel.getOwner(); ModelProperty property = objectModel.getModelClass().getProperty(propertyId); if (property.getAssociationType() != AssociationType.MAP || !SortedMap.class.isAssignableFrom(property.getStandardCollectionType())) { throw new IllegalArgumentException( CommonMessages.createFailedBecausePropertyMustBe( this.getClass(), property, SortedMap.class ) ); } this.associationProperty = property; if (property.getOppositeProperty() != null) { this.oppositePropertyId = property.getOppositeProperty().getId(); } else { this.oppositePropertyId = -1; } }
public AssociatedIndexedReference(ObjectModel objectModel, int propertyId) { Arguments.mustNotBeNull("objectModel", objectModel); this.owner = objectModel.getOwner(); ModelProperty property = objectModel.getModelClass().getProperty(propertyId); if (property.getAssociationType() != AssociationType.INDEXED_REFERENCE) { throw new IllegalArgumentException( CommonMessages.createFailedBecausePropertyMustBe( this.getClass(), property, IndexedReference.class ) ); } if (property.getOppositeProperty() == null) { throw new IllegalArgumentException( CommonMessages.createFailedBecauseOfunidirectionalAssociation( this.getClass(), IndexedReference.class, property ) ); } this.associationProperty = property; this.oppositePropertyId = property.getOppositeProperty().getId(); }
public AssociatedNavigableSet(ObjectModel objectModel, int propertyId) { super(null); Arguments.mustNotBeNull("objectModel", objectModel); this.owner = objectModel.getOwner(); ModelProperty property = objectModel.getModelClass().getProperty(propertyId); if (property.getAssociationType() != AssociationType.COLLECTION || !SortedSet.class.isAssignableFrom(property.getStandardCollectionType())) { throw new IllegalArgumentException( CommonMessages.createFailedBecausePropertyMustBe( this.getClass(), property, SortedSet.class ) ); } this.associationProperty = property; if (property.getOppositeProperty() != null) { this.oppositePropertyId = property.getOppositeProperty().getId(); } else { this.oppositePropertyId = -1; } }
public AssociatedKeyedReference(ObjectModel objectModel, int propertyId) { Arguments.mustNotBeNull("objectModel", objectModel); this.owner = objectModel.getOwner(); ModelProperty property = objectModel.getModelClass().getProperty(propertyId); if (property.getAssociationType() != AssociationType.KEYED_REFERENCE) { throw new IllegalArgumentException( CommonMessages.createFailedBecausePropertyMustBe( this.getClass(), property, KeyedReference.class ) ); } if (property.getOppositeProperty() == null) { throw new IllegalArgumentException( CommonMessages.createFailedBecauseOfunidirectionalAssociation( this.getClass(), KeyedReference.class, property ) ); } this.associationProperty = property; this.oppositePropertyId = property.getOppositeProperty().getId(); }
public AssociatedList(ObjectModel objectModel, int propertyId) { super(null); Arguments.mustNotBeNull("objectModel", objectModel); this.owner = objectModel.getOwner(); ModelProperty property = objectModel.getModelClass().getProperty(propertyId); if (property.getAssociationType() != AssociationType.LIST || !List.class.isAssignableFrom(property.getStandardCollectionType())) { throw new IllegalArgumentException( CommonMessages.createFailedBecausePropertyMustBe( this.getClass(), property, List.class ) ); } this.associationProperty = property; if (property.getOppositeProperty() != null) { this.oppositePropertyId = property.getOppositeProperty().getId(); } else { this.oppositePropertyId = -1; } }
if (property.getOppositeProperty() != null) { this.oppositePropertyId = property.getOppositeProperty().getId(); } else { this.oppositePropertyId = -1;
if (property.getOppositeProperty() != null) { this.oppositePropertyId = property.getOppositeProperty().getId(); } else { this.oppositePropertyId = -1;
if (property.getOppositeProperty() != null) { this.oppositePropertyId = property.getOppositeProperty().getId(); } else { this.oppositePropertyId = -1;
if (endpoint.getAssociationProperty().getOppositeProperty() == null) { return;
if (endpoint.getAssociationProperty().getOppositeProperty() == null) { return;
if (endpoint.getAssociationProperty().getOppositeProperty() == null) { return; this.setSuspended(true); try { if (endpoint.getAssociationProperty().getOppositeProperty().getAssociationType() == AssociationType.INDEXED_REFERENCE) { EventAttributeContext globalContext = e.getAttributeContext(AttributeScope.GLOBAL); IndexRange indexRange = globalContext.getAttribute(AK_INDEX_RANGE);
if (endpoint.getAssociationProperty().getOppositeProperty() == null) { return; if (endpoint.getAssociationProperty().getOppositeProperty().getAssociationType() == AssociationType.INDEXED_REFERENCE) { EventAttributeContext globalContext = e.getAttributeContext(AttributeScope.GLOBAL); IndexRange indexRange = globalContext.getAttribute(AK_INDEX_RANGE);
if (endpoint.getAssociationProperty().getOppositeProperty() == null) { return;
if (endpoint.getAssociationProperty().getOppositeProperty() == null) { return;
if (endpoint.getAssociationProperty().getOppositeProperty() == null) { return;
continue; ModelProperty oppositeProperty = modelProperty.getOppositeProperty(); if (oppositeProperty == null || !oppositeProperty.getAssociationType().isReference()) { continue;