Strabon

changeset 208:43997580e39f

made print outs to logger.debug in LiteralManager and LiteralTable
author Babis Nikolaou <charnik@di.uoa.gr>
date Thu May 31 14:02:19 2012 +0300 (2012-05-31)
parents ea0831917846
children fea9dde865ef
files generaldb/src/main/java/org/openrdf/sail/generaldb/managers/LiteralManager.java generaldb/src/main/java/org/openrdf/sail/generaldb/schema/LiteralTable.java
line diff
     1.1 --- a/generaldb/src/main/java/org/openrdf/sail/generaldb/managers/LiteralManager.java	Thu May 31 11:20:51 2012 +0300
     1.2 +++ b/generaldb/src/main/java/org/openrdf/sail/generaldb/managers/LiteralManager.java	Thu May 31 14:02:19 2012 +0300
     1.3 @@ -5,7 +5,6 @@
     1.4   */
     1.5  package org.openrdf.sail.generaldb.managers;
     1.6  
     1.7 -import java.io.IOException;
     1.8  import java.sql.SQLException;
     1.9  import java.util.Locale;
    1.10  import java.util.TimeZone;
    1.11 @@ -16,8 +15,10 @@
    1.12  import org.openrdf.model.Literal;
    1.13  import org.openrdf.model.URI;
    1.14  import org.openrdf.sail.generaldb.model.XMLGSDatatypeUtil;
    1.15 +import org.openrdf.sail.generaldb.schema.LiteralTable;
    1.16  import org.openrdf.sail.rdbms.model.RdbmsLiteral;
    1.17 -import org.openrdf.sail.generaldb.schema.LiteralTable;
    1.18 +import org.slf4j.Logger;
    1.19 +import org.slf4j.LoggerFactory;
    1.20  
    1.21  /**
    1.22   * Manages RDBMS Literals. Including creation, id lookup, and inserting them
    1.23 @@ -28,6 +29,8 @@
    1.24   */
    1.25  public class LiteralManager extends ValueManagerBase<RdbmsLiteral> {
    1.26  
    1.27 +	private static Logger logger = LoggerFactory.getLogger(org.openrdf.sail.generaldb.managers.LiteralManager.class);
    1.28 +	
    1.29  	private static TimeZone Z = TimeZone.getTimeZone("GMT");
    1.30  
    1.31  	public static long getCalendarValue(XMLGregorianCalendar xcal) {
    1.32 @@ -97,7 +100,7 @@
    1.33  			/**********************************************/
    1.34  			try {
    1.35  				if (XMLGSDatatypeUtil.isNumericDatatype(datatype)) {
    1.36 -					System.out.println("about to insert double value:"+literal.doubleValue());
    1.37 +					logger.debug("about to insert double value:"+literal.doubleValue());
    1.38  					table.insertNumeric(id, label, dt, literal.doubleValue());
    1.39  				}
    1.40  				else if (XMLGSDatatypeUtil.isCalendarDatatype(datatype)) {
     2.1 --- a/generaldb/src/main/java/org/openrdf/sail/generaldb/schema/LiteralTable.java	Thu May 31 11:20:51 2012 +0300
     2.2 +++ b/generaldb/src/main/java/org/openrdf/sail/generaldb/schema/LiteralTable.java	Thu May 31 14:02:19 2012 +0300
     2.3 @@ -11,6 +11,8 @@
     2.4  import java.lang.IllegalArgumentException;
     2.5  import org.openrdf.sail.generaldb.exceptions.conversionException;
     2.6  import org.openrdf.query.algebra.evaluation.function.spatial.StrabonPolyhedron;
     2.7 +import org.slf4j.Logger;
     2.8 +import org.slf4j.LoggerFactory;
     2.9  
    2.10  /**
    2.11   * A Facade to the five literal value tables. Which are labels, languages,
    2.12 @@ -21,6 +23,8 @@
    2.13   */
    2.14  public class LiteralTable {
    2.15  
    2.16 +	private static Logger logger = LoggerFactory.getLogger(org.openrdf.sail.generaldb.schema.LiteralTable.class);
    2.17 +	
    2.18  	public static final boolean ONLY_INSERT_LABEL = false;
    2.19  
    2.20  	private ValueTable labels;
    2.21 @@ -226,7 +230,7 @@
    2.22  	{
    2.23  		labels.insert(id, label);
    2.24  		datatypes.insert(id, datatype);
    2.25 -		System.out.println("about to insert double value:"+value);
    2.26 +		logger.debug("about to insert double value:"+value);
    2.27  		numeric.insert(id, value);
    2.28  	}
    2.29