[teiid-commits] teiid SVN: r853 - in trunk/common-internal/src/main/java/com/metamatrix/common: config/model and 1 other directory.

teiid-commits at lists.jboss.org teiid-commits at lists.jboss.org
Thu Apr 30 17:31:54 EDT 2009


Author: shawkins
Date: 2009-04-30 17:31:54 -0400 (Thu, 30 Apr 2009)
New Revision: 853

Removed:
   trunk/common-internal/src/main/java/com/metamatrix/common/actions/ExchangeDouble.java
   trunk/common-internal/src/main/java/com/metamatrix/common/actions/ExchangeFloat.java
   trunk/common-internal/src/main/java/com/metamatrix/common/actions/ExchangeInt.java
   trunk/common-internal/src/main/java/com/metamatrix/common/actions/ExchangeLong.java
   trunk/common-internal/src/main/java/com/metamatrix/common/actions/ExchangeShort.java
Modified:
   trunk/common-internal/src/main/java/com/metamatrix/common/actions/AbstractObjectEditor.java
   trunk/common-internal/src/main/java/com/metamatrix/common/config/model/BasicConfigurationObjectEditor.java
Log:
removing unused exchange primitive classes

Modified: trunk/common-internal/src/main/java/com/metamatrix/common/actions/AbstractObjectEditor.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/common/actions/AbstractObjectEditor.java	2009-04-29 20:16:12 UTC (rev 852)
+++ trunk/common-internal/src/main/java/com/metamatrix/common/actions/AbstractObjectEditor.java	2009-04-30 21:31:54 UTC (rev 853)
@@ -161,41 +161,6 @@
       }
     }
 
-    protected void createExchangeInt(Object targetId, AttributeDefinition attrDefn, int oldValue, int newValue) {
-            if ( this.createActions ) {
-                ActionDefinition action = new ExchangeInt(targetId,attrDefn,oldValue,newValue );
-                this.getDestination().addAction(action);
-            }
-    }
-
-    protected void createExchangeLong(Object targetId, AttributeDefinition attrDefn, long oldValue, long newValue) {
-        if ( this.createActions ) {
-                ActionDefinition action = new ExchangeLong(targetId, attrDefn,oldValue,newValue );
-                this.getDestination().addAction(action);
-        }
-    }
-
-    protected void createExchangeDouble(Object targetId, AttributeDefinition attrDefn, double oldValue, double newValue) {
-        if ( this.createActions ) {
-                ActionDefinition action = new ExchangeDouble(targetId, attrDefn,oldValue,newValue );
-                this.getDestination().addAction(action);
-        }
-    }
-
-    protected void createExchangeFloat(Object targetId, AttributeDefinition attrDefn, float oldValue, float newValue) {
-        if ( this.createActions ) {
-                ActionDefinition action = new ExchangeFloat(targetId, attrDefn,oldValue,newValue );
-                this.getDestination().addAction(action);
-        }
-    }
-
-   protected void createExchangeShort(Object targetId, AttributeDefinition attrDefn, short oldValue, short newValue) {
-        if ( this.createActions ) {
-                ActionDefinition action = new ExchangeShort(targetId, attrDefn,oldValue,newValue );
-                this.getDestination().addAction(action);
-        }
-    }
-
     protected void createDestroyAction(Object targetId, Object targetObject) {
         if ( this.createActions ) {
             ActionDefinition action = new DestroyObject(targetId,targetObject);

Deleted: trunk/common-internal/src/main/java/com/metamatrix/common/actions/ExchangeDouble.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/common/actions/ExchangeDouble.java	2009-04-29 20:16:12 UTC (rev 852)
+++ trunk/common-internal/src/main/java/com/metamatrix/common/actions/ExchangeDouble.java	2009-04-30 21:31:54 UTC (rev 853)
@@ -1,98 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * See the COPYRIGHT.txt file distributed with this work for information
- * regarding copyright ownership.  Some portions may be licensed
- * to Red Hat, Inc. under one or more contributor license agreements.
- * 
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- * 
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- * 
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
- * 02110-1301 USA.
- */
-
-package com.metamatrix.common.actions;
-
-public class ExchangeDouble extends ExchangePrimitive {
-    private double previousValue;
-    private double newValue;
-    public ExchangeDouble(Object target, AttributeDefinition attribute, double previousValue, double newValue) {
-        super(target,attribute);
-    	this.previousValue = previousValue;
-    	this.newValue = newValue;
-    }
-    private ExchangeDouble(Object target, Integer attributeCode, double previousValue, double newValue) {
-        super(target,attributeCode);
-    	this.previousValue = previousValue;
-    	this.newValue = newValue;
-    }
-    private ExchangeDouble(ExchangeDouble rhs) {
-        super(rhs);
-    	this.previousValue = rhs.previousValue;
-    	this.newValue = rhs.newValue;
-    }
-
-    public synchronized double getPreviousValue(){
-            return previousValue;
-        }
-    public synchronized double getNewValue(){
-            return newValue;
-        }
-    /**
-     * Returns a string representing the current state of the object.
-     * @return the string representation of this instance.
-     */
-    public String toString() {
-        return getActionDescription() + "; new value = " + newValue + ", previous value = " + previousValue; //$NON-NLS-1$ //$NON-NLS-2$
-    }
-
-    /**
-     * Return a deep cloned instance of this object.  Subclasses must override
-     * this method.
-     * @return the object that is the clone of this instance.
-     */
-    public synchronized Object clone() {
-    	return new ExchangeDouble(this);
-    }
-    /**
-     * Returns true if the specified object is semantically equal to this instance.
-     * Note:  this method is consistent with <code>compareTo()</code>.
-     * <p>
-     * @param obj the object that this instance is to be compared to.
-     * @return whether the object is equal to this object.
-     */
-    public synchronized boolean equals(Object obj) {
-        // Check if instances are identical ...
-        if ( this == obj ) return true;
-
-        // Check if object can be compared to this one
-        // (this includes checking for null ) ...
-        if ( obj instanceof ExchangeDouble ) {
-        	ExchangeDouble that = (ExchangeDouble) obj;
-        	return ( this.getNewValue() == that.getNewValue() && this.getPreviousValue() == that.getPreviousValue() );
-        }
-
-        // Otherwise not comparable ...
-        return false;
-    }
-    /**
-     * Obtain the definition of the action that undoes this action definition.  If a modification action with the
-     * returned action definition is applied to the same target (when the state is such as that left by
-     * the original modification action), the resulting target will be left in a state that is identical to the target
-     * before either action were applied.
-     * @return the action definition that undoes this action definition.
-     */
-    public synchronized ActionDefinition getUndoActionDefinition() {
-        return new ExchangeDouble(this.getTarget(),this.getAttributeCode(),this.newValue, this.previousValue);
-    }
-}
-

Deleted: trunk/common-internal/src/main/java/com/metamatrix/common/actions/ExchangeFloat.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/common/actions/ExchangeFloat.java	2009-04-29 20:16:12 UTC (rev 852)
+++ trunk/common-internal/src/main/java/com/metamatrix/common/actions/ExchangeFloat.java	2009-04-30 21:31:54 UTC (rev 853)
@@ -1,98 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * See the COPYRIGHT.txt file distributed with this work for information
- * regarding copyright ownership.  Some portions may be licensed
- * to Red Hat, Inc. under one or more contributor license agreements.
- * 
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- * 
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- * 
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
- * 02110-1301 USA.
- */
-
-package com.metamatrix.common.actions;
-
-public class ExchangeFloat extends ExchangePrimitive {
-    private float previousValue;
-    private float newValue;
-    public ExchangeFloat(Object target, AttributeDefinition attribute, float previousValue, float newValue) {
-        super(target,attribute);
-    	this.previousValue = previousValue;
-    	this.newValue = newValue;
-    }
-    private ExchangeFloat(Object target, Integer attributeCode, float previousValue, float newValue) {
-        super(target,attributeCode);
-    	this.previousValue = previousValue;
-    	this.newValue = newValue;
-    }
-    private ExchangeFloat(ExchangeFloat rhs) {
-        super(rhs);
-    	this.previousValue = rhs.previousValue;
-    	this.newValue = rhs.newValue;
-    }
-
-    public synchronized float getPreviousValue(){
-            return previousValue;
-        }
-    public synchronized float getNewValue(){
-            return newValue;
-        }
-    /**
-     * Returns a string representing the current state of the object.
-     * @return the string representation of this instance.
-     */
-    public String toString() {
-        return getActionDescription() + "; new value = " + newValue + ", previous value = " + previousValue; //$NON-NLS-1$ //$NON-NLS-2$
-    }
-
-    /**
-     * Return a deep cloned instance of this object.  Subclasses must override
-     * this method.
-     * @return the object that is the clone of this instance.
-     */
-    public synchronized Object clone() {
-    	return new ExchangeFloat(this);
-    }
-    /**
-     * Returns true if the specified object is semantically equal to this instance.
-     * Note:  this method is consistent with <code>compareTo()</code>.
-     * <p>
-     * @param obj the object that this instance is to be compared to.
-     * @return whether the object is equal to this object.
-     */
-    public synchronized boolean equals(Object obj) {
-        // Check if instances are identical ...
-        if ( this == obj ) return true;
-
-        // Check if object can be compared to this one
-        // (this includes checking for null ) ...
-        if ( obj instanceof ExchangeFloat ) {
-        	ExchangeFloat that = (ExchangeFloat) obj;
-        	return ( this.getNewValue() == that.getNewValue() && this.getPreviousValue() == that.getPreviousValue() );
-        }
-
-        // Otherwise not comparable ...
-        return false;
-    }
-    /**
-     * Obtain the definition of the action that undoes this action definition.  If a modification action with the
-     * returned action definition is applied to the same target (when the state is such as that left by
-     * the original modification action), the resulting target will be left in a state that is identical to the target
-     * before either action were applied.
-     * @return the action definition that undoes this action definition.
-     */
-    public synchronized ActionDefinition getUndoActionDefinition() {
-        return new ExchangeFloat(this.getTarget(),this.getAttributeCode(),this.newValue, this.previousValue);
-    }
-}
-

Deleted: trunk/common-internal/src/main/java/com/metamatrix/common/actions/ExchangeInt.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/common/actions/ExchangeInt.java	2009-04-29 20:16:12 UTC (rev 852)
+++ trunk/common-internal/src/main/java/com/metamatrix/common/actions/ExchangeInt.java	2009-04-30 21:31:54 UTC (rev 853)
@@ -1,107 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * See the COPYRIGHT.txt file distributed with this work for information
- * regarding copyright ownership.  Some portions may be licensed
- * to Red Hat, Inc. under one or more contributor license agreements.
- * 
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- * 
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- * 
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
- * 02110-1301 USA.
- */
-
-package com.metamatrix.common.actions;
-
-public class ExchangeInt extends ExchangePrimitive {
-    private int previousValue;
-
-    private int newValue;
-
-    public ExchangeInt(Object target, AttributeDefinition attribute, int previousValue, int newValue) {
-    	super(target,attribute);
-        this.previousValue = previousValue;
-        this.newValue = newValue;
-    }
-    private ExchangeInt(Object target, Integer attributeCode, int previousValue, int newValue) {
-        super(target,attributeCode);
-    	this.previousValue = previousValue;
-    	this.newValue = newValue;
-    }
-
-    private ExchangeInt(ExchangeInt rhs) {
-        super(rhs);
-    	this.previousValue = rhs.previousValue;
-    	this.newValue = rhs.newValue;
-    }
-
-    public synchronized int getPreviousValue() {
-        return previousValue;
-    }
-
-    public synchronized int getNewValue() {
-        return newValue;
-    }
-
-    /**
-     * Returns a string representing the current state of the object.
-     * @return the string representation of this instance.
-     */
-    public String toString() {
-        return getActionDescription() + "; new value = " + newValue + ", previous value = " + previousValue; //$NON-NLS-1$ //$NON-NLS-2$
-    }
-
-    /**
-     * Return a deep cloned instance of this object.  Subclasses must override
-     * this method.
-     * @return the object that is the clone of this instance.
-     */
-    public synchronized Object clone() {
-        return new ExchangeInt(this);
-    }
-
-    /**
-     * Returns true if the specified object is semantically equal to this instance.
-     * Note:  this method is consistent with <code>compareTo()</code>.
-     * <p>
-     * @param obj the object that this instance is to be compared to.
-     * @return whether the object is equal to this object.
-     */
-    public synchronized boolean equals(Object obj) {
-        // Check if instances are identical ...
-        if (this == obj) {
-            return true;
-        }
-
-        // Check if object can be compared to this one
-        // (this includes checking for null ) ...
-        if (obj instanceof ExchangeInt) {
-            ExchangeInt that = (ExchangeInt)obj;
-            return (this.getNewValue() == that.getNewValue() && this.getPreviousValue() == that.getPreviousValue());
-        }
-
-        // Otherwise not comparable ...
-        return false;
-    }
-    /**
-     * Obtain the definition of the action that undoes this action definition.  If a modification action with the
-     * returned action definition is applied to the same target (when the state is such as that left by
-     * the original modification action), the resulting target will be left in a state that is identical to the target
-     * before either action were applied.
-     * @return the action definition that undoes this action definition.
-     */
-    public synchronized ActionDefinition getUndoActionDefinition() {
-        return new ExchangeInt(this.getTarget(), this.getAttributeCode(), this.newValue, this.previousValue);
-    }
-}
-
-

Deleted: trunk/common-internal/src/main/java/com/metamatrix/common/actions/ExchangeLong.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/common/actions/ExchangeLong.java	2009-04-29 20:16:12 UTC (rev 852)
+++ trunk/common-internal/src/main/java/com/metamatrix/common/actions/ExchangeLong.java	2009-04-30 21:31:54 UTC (rev 853)
@@ -1,109 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * See the COPYRIGHT.txt file distributed with this work for information
- * regarding copyright ownership.  Some portions may be licensed
- * to Red Hat, Inc. under one or more contributor license agreements.
- * 
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- * 
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- * 
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
- * 02110-1301 USA.
- */
-
-package com.metamatrix.common.actions;
-
-public class ExchangeLong extends ExchangePrimitive {
-    private long previousValue;
-
-    private long newValue;
-
-    public ExchangeLong(Object target, AttributeDefinition attribute, long previousValue, long newValue) {
-        super(target,attribute);
-        this.previousValue = previousValue;
-        this.newValue = newValue;
-    }
-    private ExchangeLong(Object target, Integer attributeCode, long previousValue, long newValue) {
-        super(target,attributeCode);
-    	this.previousValue = previousValue;
-    	this.newValue = newValue;
-    }
-
-    private ExchangeLong(ExchangeLong rhs) {
-        super(rhs);
-    	this.previousValue = rhs.previousValue;
-    	this.newValue = rhs.newValue;
-    }
-
-    public synchronized long getPreviousValue() {
-        return previousValue;
-    }
-
-    public synchronized long getNewValue() {
-        return newValue;
-    }
-
-    /**
-     * Returns a string representing the current state of the object.
-     * @return the string representation of this instance.
-     */
-    public String toString() {
-        return getActionDescription() + "; new value = " + newValue + ", previous value = " + previousValue; //$NON-NLS-1$ //$NON-NLS-2$
-    }
-
-    /**
-     * Return a deep cloned instance of this object.  Subclasses must override
-     * this method.
-     * @return the object that is the clone of this instance.
-     */
-    public synchronized Object clone() {
-        return new ExchangeLong(this);
-    }
-
-    /**
-     * Returns true if the specified object is semantically equal to this instance.
-     * Note:  this method is consistent with <code>compareTo()</code>.
-     * <p>
-     * @param obj the object that this instance is to be compared to.
-     * @return whether the object is equal to this object.
-     */
-    public synchronized boolean equals(Object obj) {
-        // Check if instances are identical ...
-        if (this == obj) {
-            return true;
-        }
-
-        // Check if object can be compared to this one
-        // (this includes checking for null ) ...
-        if (obj instanceof ExchangeLong) {
-            ExchangeLong that = (ExchangeLong)obj;
-            return (this.getNewValue() == that.getNewValue() && this.getPreviousValue() == that.getPreviousValue());
-        }
-
-        // Otherwise not comparable ...
-        return false;
-    }
-
-    /**
-     * Obtain the definition of the action that undoes this action definition.  If a modification action with the
-     * returned action definition is applied to the same target (when the state is such as that left by
-     * the original modification action), the resulting target will be left in a state that is identical to the target
-     * before either action were applied.
-     * @return the action definition that undoes this action definition.
-     */
-    public synchronized ActionDefinition getUndoActionDefinition() {
-        return new ExchangeLong(this.getTarget(),this.getAttributeCode(),this.newValue, this.previousValue);
-    }
-}
-
-
-

Deleted: trunk/common-internal/src/main/java/com/metamatrix/common/actions/ExchangeShort.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/common/actions/ExchangeShort.java	2009-04-29 20:16:12 UTC (rev 852)
+++ trunk/common-internal/src/main/java/com/metamatrix/common/actions/ExchangeShort.java	2009-04-30 21:31:54 UTC (rev 853)
@@ -1,109 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * See the COPYRIGHT.txt file distributed with this work for information
- * regarding copyright ownership.  Some portions may be licensed
- * to Red Hat, Inc. under one or more contributor license agreements.
- * 
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- * 
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- * 
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
- * 02110-1301 USA.
- */
-
-package com.metamatrix.common.actions;
-
-public class ExchangeShort extends ExchangePrimitive {
-    private short previousValue;
-
-    private short newValue;
-
-    public ExchangeShort(Object target, AttributeDefinition attribute, short previousValue, short newValue) {
-        super(target,attribute);
-        this.previousValue = previousValue;
-        this.newValue = newValue;
-    }
-    private ExchangeShort(Object target, Integer attributeCode, short previousValue, short newValue) {
-        super(target,attributeCode);
-    	this.previousValue = previousValue;
-    	this.newValue = newValue;
-    }
-
-    private ExchangeShort(ExchangeShort rhs) {
-        super(rhs);
-    	this.previousValue = rhs.previousValue;
-    	this.newValue = rhs.newValue;
-    }
-
-    public synchronized short getPreviousValue() {
-        return previousValue;
-    }
-
-    public synchronized short getNewValue() {
-        return newValue;
-    }
-
-    /**
-     * Returns a string representing the current state of the object.
-     * @return the string representation of this instance.
-     */
-    public String toString() {
-        return getActionDescription() + "; new value = " + newValue + ", previous value = " + previousValue; //$NON-NLS-1$ //$NON-NLS-2$
-    }
-
-    /**
-     * Return a deep cloned instance of this object.  Subclasses must override
-     * this method.
-     * @return the object that is the clone of this instance.
-     */
-    public synchronized Object clone() {
-        return new ExchangeShort(this);
-    }
-
-    /**
-     * Returns true if the specified object is semantically equal to this instance.
-     * Note:  this method is consistent with <code>compareTo()</code>.
-     * <p>
-     * @param obj the object that this instance is to be compared to.
-     * @return whether the object is equal to this object.
-     */
-    public synchronized boolean equals(Object obj) {
-        // Check if instances are identical ...
-        if (this == obj) {
-            return true;
-        }
-
-        // Check if object can be compared to this one
-        // (this includes checking for null ) ...
-        if (obj instanceof ExchangeShort) {
-            ExchangeShort that = (ExchangeShort)obj;
-            return (this.getNewValue() == that.getNewValue() && this.getPreviousValue() == that.getPreviousValue());
-        }
-
-        // Otherwise not comparable ...
-        return false;
-    }
-
-    /**
-     * Obtain the definition of the action that undoes this action definition.  If a modification action with the
-     * returned action definition is applied to the same target (when the state is such as that left by
-     * the original modification action), the resulting target will be left in a state that is identical to the target
-     * before either action were applied.
-     * @return the action definition that undoes this action definition.
-     */
-    public synchronized ActionDefinition getUndoActionDefinition() {
-        return new ExchangeShort(this.getTarget(),this.getAttributeCode(),this.newValue, this.previousValue);
-    }
-}
-
-
-

Modified: trunk/common-internal/src/main/java/com/metamatrix/common/config/model/BasicConfigurationObjectEditor.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/common/config/model/BasicConfigurationObjectEditor.java	2009-04-29 20:16:12 UTC (rev 852)
+++ trunk/common-internal/src/main/java/com/metamatrix/common/config/model/BasicConfigurationObjectEditor.java	2009-04-30 21:31:54 UTC (rev 853)
@@ -22,11 +22,47 @@
 
 package com.metamatrix.common.config.model;
 
-import java.util.*;
+import java.util.Collection;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
+import java.util.Properties;
 
 import com.metamatrix.common.CommonPlugin;
-import com.metamatrix.common.actions.*;
-import com.metamatrix.common.config.api.*;
+import com.metamatrix.common.actions.AbstractObjectEditor;
+import com.metamatrix.common.actions.ActionDefinition;
+import com.metamatrix.common.actions.AddObject;
+import com.metamatrix.common.actions.CreateObject;
+import com.metamatrix.common.actions.DestroyObject;
+import com.metamatrix.common.actions.ExchangeBoolean;
+import com.metamatrix.common.actions.ExchangeObject;
+import com.metamatrix.common.actions.RemoveObject;
+import com.metamatrix.common.config.api.AuthenticationProvider;
+import com.metamatrix.common.config.api.ComponentDefn;
+import com.metamatrix.common.config.api.ComponentObject;
+import com.metamatrix.common.config.api.ComponentObjectID;
+import com.metamatrix.common.config.api.ComponentType;
+import com.metamatrix.common.config.api.ComponentTypeDefn;
+import com.metamatrix.common.config.api.ComponentTypeDefnID;
+import com.metamatrix.common.config.api.ComponentTypeID;
+import com.metamatrix.common.config.api.Configuration;
+import com.metamatrix.common.config.api.ConfigurationID;
+import com.metamatrix.common.config.api.ConfigurationObjectEditor;
+import com.metamatrix.common.config.api.ConnectorBinding;
+import com.metamatrix.common.config.api.DeployedComponent;
+import com.metamatrix.common.config.api.DeployedComponentID;
+import com.metamatrix.common.config.api.Host;
+import com.metamatrix.common.config.api.HostID;
+import com.metamatrix.common.config.api.PropDefnAllowedValue;
+import com.metamatrix.common.config.api.PropDefnAllowedValueID;
+import com.metamatrix.common.config.api.ResourceDescriptor;
+import com.metamatrix.common.config.api.RuntimeMetadataServiceComponentType;
+import com.metamatrix.common.config.api.ServiceComponentDefn;
+import com.metamatrix.common.config.api.ServiceComponentDefnID;
+import com.metamatrix.common.config.api.SharedResource;
+import com.metamatrix.common.config.api.VMComponentDefn;
+import com.metamatrix.common.config.api.VMComponentDefnID;
 import com.metamatrix.common.config.api.exceptions.ConfigurationException;
 import com.metamatrix.common.config.api.exceptions.InvalidComponentException;
 import com.metamatrix.common.log.LogConfiguration;
@@ -39,7 +75,6 @@
 import com.metamatrix.common.util.LogCommonConstants;
 import com.metamatrix.core.id.ObjectIDFactory;
 import com.metamatrix.core.id.UUIDFactory;
-import com.metamatrix.core.util.Assertion;
 
 /**
 *   BasicConfigurationObjectEditor provides the update capabiltiy to the implemented versions
@@ -339,38 +374,6 @@
                     }
                 }
 */
-            } else if ( action instanceof ExchangeInt ) {
-//                ExchangeInt anAction = (ExchangeInt) action;
-/*
-                if ( target instanceof BasicDatabase ) {
-                    BasicDatabase db = (BasicDatabase) target;
-                    if (anAction.getAttributeCode().intValue() == ConfigurationModel.Attribute.MAXIMUM_RESULTS_SIZE.getCode()) {
-                        db.setMaximumResultsSize(anAction.getPreviousValue());
-                    } else if (anAction.getAttributeCode().intValue() == ConfigurationModel.Attribute.MAXIMUM_SET_CRITERIA_SIZE.getCode()) {
-                        db.setMaximumSetCriteriaSize(anAction.getPreviousValue());
-                    }
-                } else if ( target instanceof BasicDataElement ) {
-                    BasicDataElement de = (BasicDataElement) target;
-                    if (anAction.getAttributeCode().intValue() == ConfigurationModel.Attribute.MAXIMUM_SCALE.getCode()) {
-                        BasicElementType et = (BasicElementType) de.getElementType();
-                        et.setMaximumScale(anAction.getPreviousValue());
-                    } else if (anAction.getAttributeCode().intValue() == ConfigurationModel.Attribute.MINIMUM_SCALE.getCode()) {
-                        BasicElementType et = (BasicElementType) de.getElementType();
-                        et.setMinimumScale(anAction.getPreviousValue());
-                    }
-                }
-*/
-            } else if ( action instanceof ExchangeLong ) {
-//                ExchangeLong anAction = (ExchangeLong) action;
-/*
-                if ( target instanceof BasicDataElement ) {
-                    BasicDataElement de = (BasicDataElement) target;
-                    if (anAction.getAttributeCode().intValue() == ConfigurationModel.Attribute.COLUMN_SIZE.getCode()) {
-                        BasicElementType et = (BasicElementType) de.getElementType();
-                        et.setColumnSize(anAction.getPreviousValue());
-                    }
-                }
-*/
             } else if ( action instanceof ExchangeBoolean ) {
                 ExchangeBoolean anAction = (ExchangeBoolean) action;
                 if ( target instanceof BasicConfiguration ) {




More information about the teiid-commits mailing list