package com.quantum.view.subset;
-import com.quantum.IQuantumConstants;
import com.quantum.Messages;
import com.quantum.model.Entity;
import com.quantum.model.EntityHolder;
public ObjectNode(){
}
public String getType(){
- return IQuantumConstants.View;
+ return Entity.VIEW_TYPE;
}
/* (non-Javadoc)
if (node.getOrder() > getOrder()) return -1;
if (node.getOrder() < getOrder()) return 1;
// If the order is the same, we use alphabetical order
- return getEntity().getCondQualifiedName().compareTo(
- node.getEntity().getCondQualifiedName());
+ return getEntity().getQualifiedName().compareTo(
+ node.getEntity().getQualifiedName());
} else throw new ClassCastException();
}
*/
public boolean equals(Object obj) {
if (!(obj instanceof ObjectNode)) return false;
- return (getEntity().getCondQualifiedName().equals(
- ((ObjectNode) obj).getEntity().getCondQualifiedName()));
+ return (getEntity().getQualifiedName().equals(
+ ((ObjectNode) obj).getEntity().getQualifiedName()));
}
/**
*/
public String getQuery() {
String result = new String(""); //$NON-NLS-1$
- result = "SELECT " + metadata.getColumnsString() + " FROM " + getEntity().getCondQualifiedName(); //$NON-NLS-1$ //$NON-NLS-2$
+ result = "SELECT " + metadata.getColumnsString() + " FROM " + getEntity().getQualifiedName(); //$NON-NLS-1$ //$NON-NLS-2$
return result;
}