Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkmoore2008-09-05 15:27:21 +0000
committerkmoore2008-09-05 15:27:21 +0000
commit5f26fd9c9b4ec7e08f045c2c009850985bd7e4a2 (patch)
treee2739664afdc596b0339e18570676ec4f7d05e89 /jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/java/AbstractJavaMultiRelationshipMapping.java
parent8d671037412f5e07e5274573d44403ce65d6e8df (diff)
downloadwebtools.dali-5f26fd9c9b4ec7e08f045c2c009850985bd7e4a2.tar.gz
webtools.dali-5f26fd9c9b4ec7e08f045c2c009850985bd7e4a2.tar.xz
webtools.dali-5f26fd9c9b4ec7e08f045c2c009850985bd7e4a2.zip
renaming java context model methods get*Resource() to getResource*(), other similar renames
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/java/AbstractJavaMultiRelationshipMapping.java')
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/java/AbstractJavaMultiRelationshipMapping.java30
1 files changed, 15 insertions, 15 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/java/AbstractJavaMultiRelationshipMapping.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/java/AbstractJavaMultiRelationshipMapping.java
index a80d8a3d0a..daa1090bc7 100644
--- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/java/AbstractJavaMultiRelationshipMapping.java
+++ b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/java/AbstractJavaMultiRelationshipMapping.java
@@ -83,15 +83,15 @@ public abstract class AbstractJavaMultiRelationshipMapping<T extends Relationshi
String oldOrderBy = this.orderBy;
this.orderBy = newOrderBy;
if (newOrderBy == null) {
- if (getOrderByResource() != null) {
- removeOrderByResource();
+ if (getResourceOrderBy() != null) {
+ removeResourceOrderBy();
}
}
else {
- if (getOrderByResource() == null) {
- addOrderByResource();
+ if (getResourceOrderBy() == null) {
+ addResourceOrderBy();
}
- getOrderByResource().setValue(newOrderBy);
+ getResourceOrderBy().setValue(newOrderBy);
}
firePropertyChanged(MultiRelationshipMapping.ORDER_BY_PROPERTY, oldOrderBy, newOrderBy);
}
@@ -102,15 +102,15 @@ public abstract class AbstractJavaMultiRelationshipMapping<T extends Relationshi
firePropertyChanged(MultiRelationshipMapping.ORDER_BY_PROPERTY, oldOrderBy, newOrderBy);
}
- protected OrderByAnnotation getOrderByResource() {
+ protected OrderByAnnotation getResourceOrderBy() {
return (OrderByAnnotation) getResourcePersistentAttribute().getAnnotation(OrderByAnnotation.ANNOTATION_NAME);
}
- protected OrderByAnnotation addOrderByResource() {
+ protected OrderByAnnotation addResourceOrderBy() {
return (OrderByAnnotation) getResourcePersistentAttribute().addAnnotation(OrderByAnnotation.ANNOTATION_NAME);
}
- protected void removeOrderByResource() {
+ protected void removeResourceOrderBy() {
getResourcePersistentAttribute().removeAnnotation(OrderByAnnotation.ANNOTATION_NAME);
}
@@ -122,8 +122,8 @@ public abstract class AbstractJavaMultiRelationshipMapping<T extends Relationshi
boolean oldNoOrdering = this.isNoOrdering;
this.isNoOrdering = newNoOrdering;
if (newNoOrdering) {
- if (getOrderByResource() != null) {
- removeOrderByResource();
+ if (getResourceOrderBy() != null) {
+ removeResourceOrderBy();
}
}
else {
@@ -146,11 +146,11 @@ public abstract class AbstractJavaMultiRelationshipMapping<T extends Relationshi
boolean oldPkOrdering = this.isPkOrdering;
this.isPkOrdering = newPkOrdering;
if (newPkOrdering) {
- if (getOrderByResource() == null) {
- addOrderByResource();
+ if (getResourceOrderBy() == null) {
+ addResourceOrderBy();
}
else {
- getOrderByResource().setValue(null);
+ getResourceOrderBy().setValue(null);
}
}
firePropertyChanged(PK_ORDERING_PROPERTY, oldPkOrdering, newPkOrdering);
@@ -302,7 +302,7 @@ public abstract class AbstractJavaMultiRelationshipMapping<T extends Relationshi
if (mapKey != null) {
this.mapKey = mapKey.getName();
}
- this.initializeOrderBy(this.getOrderByResource());
+ this.initializeOrderBy(this.getResourceOrderBy());
this.joinTable.initialize(resourcePersistentAttribute);
}
@@ -331,7 +331,7 @@ public abstract class AbstractJavaMultiRelationshipMapping<T extends Relationshi
public void update(JavaResourcePersistentAttribute resourcePersistentAttribute) {
super.update(resourcePersistentAttribute);
this.updateMapKey(resourcePersistentAttribute);
- this.updateOrderBy(this.getOrderByResource());
+ this.updateOrderBy(this.getResourceOrderBy());
this.joinTable.update(resourcePersistentAttribute);
}

Back to the top