[phylr] r48 commited - Added CQLTranslator property

3 views
Skip to first unread message

codesite...@google.com

unread,
Jul 29, 2009, 11:10:48 AM7/29/09
to phylr-...@googlegroups.com
Revision: 48
Author: dazhi.jiao
Date: Wed Jul 29 07:51:42 2009
Log: Added CQLTranslator property
http://code.google.com/p/phylr/source/detail?r=48

Modified:

/trunk/phylr-gsoc/src/main/java/org/nescent/phylr/relational/SRWRelationalDatabase.java
/trunk/phylr-gsoc/src/main/resources/BioSQL.props

=======================================
---
/trunk/phylr-gsoc/src/main/java/org/nescent/phylr/relational/SRWRelationalDatabase.java
Wed Jul 29 07:01:00 2009
+++
/trunk/phylr-gsoc/src/main/java/org/nescent/phylr/relational/SRWRelationalDatabase.java
Wed Jul 29 07:51:42 2009
@@ -286,7 +286,7 @@

String translatorName = dbProperties.getProperty(
"SRWRelationalDatabase.CqlToSQLTranslator",
- "org.nescent.phylr.relational.BasicSQLTranslator");
+ "org.nescent.phylr.relational.BioSQLQueryTranslator");
try {
log.debug("creating translator " + translatorName);
Class translatorClass = Class.forName(translatorName);
=======================================
--- /trunk/phylr-gsoc/src/main/resources/BioSQL.props Wed Jul 29 07:01:00
2009
+++ /trunk/phylr-gsoc/src/main/resources/BioSQL.props Wed Jul 29 07:51:42
2009
@@ -18,6 +18,8 @@
SRWRelationalDatabase.password=phylr
SRWRelationalDatabase.url=jdbc:postgresql://pyran.ath.cx/biosql

+SRWRelationalDatabase.CqlToSQLTranslator=org.nescent.phylr.relational.BioSQLQueryTranslator
+
# Possible result formats
#xmlSchemas=nexml,dc, LuceneDocument
xmlSchemas=dc

Reply all
Reply to author
Forward
0 new messages