Revision 2663
Added by sgarg over 18 years ago
DBSAXNode.java | ||
---|---|---|
32 | 32 |
import java.util.Hashtable; |
33 | 33 |
import java.util.Enumeration; |
34 | 34 |
//import oracle.jdbc.driver.*; |
35 |
import org.apache.log4j.Logger; |
|
35 | 36 |
import org.xml.sax.SAXException; |
36 | 37 |
|
37 | 38 |
import edu.ucsb.nceas.dbadapter.AbstractDatabase; |
... | ... | |
45 | 46 |
private DBConnection connection; |
46 | 47 |
private DBSAXNode parentNode; |
47 | 48 |
private static final AbstractDatabase dbAdapter = MetaCatUtil.dbAdapter; |
49 |
private Logger logMetacat = Logger.getLogger(DBSAXNode.class); |
|
48 | 50 |
|
49 | 51 |
/** |
50 | 52 |
* Construct a new node instance for DOCUMENT nodes |
... | ... | |
144 | 146 |
|
145 | 147 |
// Increase DBConnection usage count |
146 | 148 |
connection.increaseUsageCount(1); |
147 |
MetaCatUtil.debugMessage("INSERTING DOCNAME: " + nodename, 35);
|
|
149 |
logMetacat.info("INSERTING DOCNAME: " + nodename);
|
|
148 | 150 |
} else { |
149 | 151 |
if(data != null && !data.trim().equals("") |
150 | 152 |
&& !data.trim().equals("NaN")){ |
... | ... | |
296 | 298 |
{ |
297 | 299 |
|
298 | 300 |
PreparedStatement pstmt; |
299 |
MetaCatUtil.debugMessage("Insert dtd into db: "+nodename +" "+data, 45);
|
|
301 |
logMetacat.info("Insert dtd into db: "+nodename +" "+data);
|
|
300 | 302 |
if(data != null && !data.trim().equals("")){ |
301 | 303 |
try{ |
302 | 304 |
double numberData = Double.parseDouble(data); |
Also available in: Unified diff
Replacing MetaCatUtil.debugMessage or MetaCatUtil.logMetacat call with logMetacat (private Logger object) call