|
Lines 17-23
Link Here
|
| 17 |
import org.eclipse.jpt.common.utility.internal.iterables.FilteringIterable; |
17 |
import org.eclipse.jpt.common.utility.internal.iterables.FilteringIterable; |
| 18 |
import org.eclipse.jpt.common.utility.internal.iterables.TransformationIterable; |
18 |
import org.eclipse.jpt.common.utility.internal.iterables.TransformationIterable; |
| 19 |
import org.eclipse.jpt.jpa.core.context.AttributeMapping; |
19 |
import org.eclipse.jpt.jpa.core.context.AttributeMapping; |
|
|
20 |
import org.eclipse.jpt.jpa.core.context.Query; |
| 20 |
import org.eclipse.jpt.jpa.core.context.orm.OrmPersistentType; |
21 |
import org.eclipse.jpt.jpa.core.context.orm.OrmPersistentType; |
|
|
22 |
import org.eclipse.jpt.jpa.core.context.orm.OrmQueryContainer; |
| 21 |
import org.eclipse.jpt.jpa.core.internal.context.JptValidator; |
23 |
import org.eclipse.jpt.jpa.core.internal.context.JptValidator; |
| 22 |
import org.eclipse.jpt.jpa.core.internal.context.orm.AbstractOrmMappedSuperclass; |
24 |
import org.eclipse.jpt.jpa.core.internal.context.orm.AbstractOrmMappedSuperclass; |
| 23 |
import org.eclipse.jpt.jpa.core.jpa2.context.orm.OrmCacheable2_0; |
25 |
import org.eclipse.jpt.jpa.core.jpa2.context.orm.OrmCacheable2_0; |
|
Lines 59-64
Link Here
|
| 59 |
|
61 |
|
| 60 |
protected final OrmEclipseLinkMultitenancy2_3 multitenancy; |
62 |
protected final OrmEclipseLinkMultitenancy2_3 multitenancy; |
| 61 |
|
63 |
|
|
|
64 |
protected final OrmQueryContainer queryContainer; |
| 62 |
|
65 |
|
| 63 |
public OrmEclipseLinkMappedSuperclassImpl(OrmPersistentType parent, XmlMappedSuperclass xmlMappedSuperclass) { |
66 |
public OrmEclipseLinkMappedSuperclassImpl(OrmPersistentType parent, XmlMappedSuperclass xmlMappedSuperclass) { |
| 64 |
super(parent, xmlMappedSuperclass); |
67 |
super(parent, xmlMappedSuperclass); |
|
Lines 68-73
Link Here
|
| 68 |
this.changeTracking = this.buildChangeTracking(); |
71 |
this.changeTracking = this.buildChangeTracking(); |
| 69 |
this.customizer = this.buildCustomizer(); |
72 |
this.customizer = this.buildCustomizer(); |
| 70 |
this.multitenancy = this.buildMultitenancy(); |
73 |
this.multitenancy = this.buildMultitenancy(); |
|
|
74 |
this.queryContainer = this.buildQueryContainer(); |
| 71 |
} |
75 |
} |
| 72 |
|
76 |
|
| 73 |
|
77 |
|
|
Lines 82-87
Link Here
|
| 82 |
this.changeTracking.synchronizeWithResourceModel(); |
86 |
this.changeTracking.synchronizeWithResourceModel(); |
| 83 |
this.customizer.synchronizeWithResourceModel(); |
87 |
this.customizer.synchronizeWithResourceModel(); |
| 84 |
this.multitenancy.synchronizeWithResourceModel(); |
88 |
this.multitenancy.synchronizeWithResourceModel(); |
|
|
89 |
this.queryContainer.synchronizeWithResourceModel(); |
| 85 |
} |
90 |
} |
| 86 |
|
91 |
|
| 87 |
@Override |
92 |
@Override |
|
Lines 93-98
Link Here
|
| 93 |
this.changeTracking.update(); |
98 |
this.changeTracking.update(); |
| 94 |
this.customizer.update(); |
99 |
this.customizer.update(); |
| 95 |
this.multitenancy.update(); |
100 |
this.multitenancy.update(); |
|
|
101 |
this.queryContainer.update(); |
| 96 |
} |
102 |
} |
| 97 |
|
103 |
|
| 98 |
|
104 |
|
|
Lines 184-189
Link Here
|
| 184 |
return JptJpaEclipseLinkCorePlugin.nodeIsEclipseLink2_3Compatible(this); |
190 |
return JptJpaEclipseLinkCorePlugin.nodeIsEclipseLink2_3Compatible(this); |
| 185 |
} |
191 |
} |
| 186 |
|
192 |
|
|
|
193 |
// ********** query container ********** |
| 194 |
|
| 195 |
public OrmQueryContainer getQueryContainer() { |
| 196 |
return this.queryContainer; |
| 197 |
} |
| 198 |
|
| 199 |
protected OrmQueryContainer buildQueryContainer() { |
| 200 |
return this.getContextNodeFactory().buildOrmQueryContainer(this, this.xmlTypeMapping); |
| 201 |
} |
| 202 |
|
| 203 |
@Override |
| 204 |
public Iterable<Query> getQueries() { |
| 205 |
return this.queryContainer.getQueries(); |
| 206 |
} |
| 207 |
|
| 187 |
public boolean isMultitenantMetadataAllowed() { |
208 |
public boolean isMultitenantMetadataAllowed() { |
| 188 |
return true; |
209 |
return true; |
| 189 |
} |
210 |
} |