Removing debugging statements. NIHVIVO-1140
This commit is contained in:
parent
bba244d852
commit
5002c3d761
1 changed files with 15 additions and 50 deletions
|
@ -2,11 +2,8 @@
|
||||||
|
|
||||||
package edu.cornell.mannlib.vitro.webapp.beans;
|
package edu.cornell.mannlib.vitro.webapp.beans;
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
|
import java.util.Date;
|
||||||
import org.apache.commons.logging.Log;
|
|
||||||
import org.apache.commons.logging.LogFactory;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* a class representing a particular instance of an object property
|
* a class representing a particular instance of an object property
|
||||||
|
@ -25,19 +22,6 @@ public class ObjectPropertyStatementImpl implements VitroTimeWindowedResource, O
|
||||||
private boolean subjectOriented = true; //is the range the item of interest?
|
private boolean subjectOriented = true; //is the range the item of interest?
|
||||||
private String description = null; //generated desc based on subjectOriented during sql query.
|
private String description = null; //generated desc based on subjectOriented during sql query.
|
||||||
|
|
||||||
/*
|
|
||||||
fields in db:
|
|
||||||
id
|
|
||||||
domainId
|
|
||||||
rangeId
|
|
||||||
relationId
|
|
||||||
modTime
|
|
||||||
propertyId
|
|
||||||
sunrise
|
|
||||||
sunset
|
|
||||||
qualifier
|
|
||||||
*/
|
|
||||||
|
|
||||||
public ObjectPropertyStatementImpl() { }
|
public ObjectPropertyStatementImpl() { }
|
||||||
|
|
||||||
public ObjectPropertyStatementImpl(String subjectUri, String propertyUri, String objectUri) {
|
public ObjectPropertyStatementImpl(String subjectUri, String propertyUri, String objectUri) {
|
||||||
|
@ -200,33 +184,14 @@ public String toString(){
|
||||||
this.propertyURI = URI;
|
this.propertyURI = URI;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Change the values of this object property statement object
|
|
||||||
* so that it is from the other side of the relation.
|
|
||||||
* This must be associative.
|
|
||||||
* This does NOT modify this.property
|
|
||||||
*
|
|
||||||
public void reflect(){
|
|
||||||
Individual tmp = getSubject();
|
|
||||||
setSubject(getObject());
|
|
||||||
setObject(tmp);
|
|
||||||
setSubjectURI(getSubject().getURI());
|
|
||||||
setObjectURI(getObject().getURI());
|
|
||||||
setSubjectOriented( !isSubjectOriented() );
|
|
||||||
}*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sorts entity object for display presentation.
|
* Sorts entity object for display presentation.
|
||||||
* @author bdc34
|
* @author bdc34
|
||||||
*/
|
*/
|
||||||
public static class DisplayComparator implements Comparator{
|
public static class DisplayComparator implements Comparator{
|
||||||
private static final Log log = LogFactory.getLog(DisplayComparator.class.getName());
|
|
||||||
|
|
||||||
public int compare(Object o1, Object o2) {
|
public int compare(Object o1, Object o2) {
|
||||||
Individual ent1 = ((ObjectPropertyStatement) o1).getSubject();
|
Individual ent1 = ((ObjectPropertyStatement) o1).getSubject();
|
||||||
Individual ent2 = ((ObjectPropertyStatement) o2).getSubject();
|
Individual ent2 = ((ObjectPropertyStatement) o2).getSubject();
|
||||||
log.debug("Comparing "+ent1.getName()+" to"+ent2.getName());
|
|
||||||
return ent1.getName().compareTo(ent2.getName());
|
return ent1.getName().compareTo(ent2.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue