Project

General

Profile

  • svn:eol-style: native
  • svn:executable: *
  • svn:keywords: Author Date Id Revision

# Date Author Comment
3227 04/12/2007 10:23 AM berkley

checking in timing print statments

3221 04/03/2007 01:10 PM berkley

paging now works well. sped up the caching by using SAX instead of DOM parsing. it seems fast. need some other people to test for me though. the two params needed are 'pagesize' and 'pagestart'. I haven't updated any of the web interfaces to use this, so if you want to try it, you'll have to type in the url the old fashioned way

3220 04/02/2007 04:38 PM Jing Tao

Add a new overload method - createResultDocument and add a new check for null.

3219 04/02/2007 03:23 PM berkley

got paging working. metacat also now caches resultsets for users' sessions. the paging is a bit slow, due to some xpath statements. i need to get this optimized now.

3211 03/22/2007 09:59 AM berkley

adding changes to make paged query results possible

3104 11/29/2006 05:40 PM perry

Merged the spatial web.xml.combined into the default web.xml.tomcat5

3077 11/10/2006 10:25 AM Matt Jones

Removed the release ant token from all files in 'src'.

3055 10/04/2006 02:44 PM perry

fix to docid overrides to handle an empty result set

3047 09/18/2006 11:21 AM perry

Added docid override mechanism to DBQuery. Bypasses the queryspec.printSQL method and creates an optimized docid query in cases (like the spatial query) where you know the docids a priori

3034 08/31/2006 04:37 PM perry

initial import of changes to metacat source and config files to support spatial option

3003 06/08/2006 11:09 AM sgarg

check for nullpointerexception

2948 03/03/2006 11:47 AM sgarg

iModified code -- the booleans werent really getting tested :(

2946 03/03/2006 11:36 AM sgarg

iModified the switch to turn/off the spatial searching.:wq

2912 02/20/2006 07:41 PM harris

Integration of the metacat servlet with the spatial option -- rubberbanding is implemented too.

2787 11/30/2005 08:34 AM sgarg

Modified code to that isModerator param is passed to the xsl which will render the results.

2752 11/16/2005 05:27 PM Matt Jones

Metacat has had problems with threading issues when accessed from ecogrid. These problems may stem from the use of shared global variables within the servlet that are not protected against threading problems. We used a lot of these, which I am eliminating in this commit. Besides final variables used as constants (which are not a problem), now there are only three unprotected variables (sessionHash, logMetacat, and conn) which are harder to eliminate. I will be discussiong this with Sid tomorrow to see how to eliminate them.

2681 10/20/2005 11:34 AM sgarg

Removed code entered in previous commit as it is no longer needed

2663 10/10/2005 11:06 AM sgarg

Replacing MetaCatUtil.debugMessage or MetaCatUtil.logMetacat call with logMetacat (private Logger object) call

2658 10/06/2005 11:37 AM sgarg

if moderator is logged into metacat and no option for enable-editing is specified then enable editing by default

2641 10/04/2005 10:58 AM Jing Tao

Change the code to make sure DocumentImpl class's constructor should have rev attached.

2486 04/13/2005 11:38 AM sgarg

Fixed a bug - when returnfield_id is not found in xml_returnfield, records are not added to xml_queryresults

2474 04/07/2005 05:04 PM sgarg

1. removed the call to QuerySpecification.printAttributeSQL() from QuerySpecification.printExtendedSQL()
2. in QuerySpecification.printExtendedSQL() if ( returnFieldList.size() == 0 ) then it returns null
3. DBQuery.addReturnfield() doesnt execute the element query if printExtendedSQL returns null

2473 04/07/2005 04:08 PM Chris Jones

A minor change from containAtrributeReturnField to
containsAttributeReturnField

2462 04/06/2005 02:21 PM sgarg

Replaced 1.4.0 with release

2446 04/04/2005 04:15 PM sgarg

Removed occurence of enum which is a keyword in Java 1.5

Changed the queries so that PreparedStatement.setString() and .setInt() are used instead of write the string directly into the sql statements

2430 03/29/2005 08:06 AM sgarg

Added new database upgrade script for postgres.
Modified the database upgrade script for oracle
Added comment to DBquery.java
Fixed a bug in xmltables.sql

2428 03/23/2005 01:30 PM Chris Jones

Added the trailing '/' that was ommitted when XPATH queries included attributes.
This is a partial bug fix for:

http://bugzilla.ecoinformatics.org/show_bug.cgi?id=2052

2425 03/18/2005 11:19 AM sgarg

Added code to check if the document is indexed yet! So entry into xml_queryresult is only made if the doc is in xml_index.

2424 03/18/2005 08:51 AM sgarg

Added code such that an offset can be specified in metacat.properties for entering records into xml_queryresult table. The value of xml_returnfield.usage_count should be more than the value specified in metacat.properties for records to be entered into xml_queryresult. so if you want results for any combination of returnfields should be stored in xml_queryresult only after that combination has been requested 50 times, set this value to 50

2421 03/17/2005 05:26 PM sgarg

Changes for entering new records into xml_queryresult:

1. Added a function which checks if there is a record exsists in xml_returnfield table for a given combination of return fields. If a record is found, the id for the record is returned. otherwise a new record is created in the xml_returnfield table and the id of the new record is returned....

2406 03/10/2005 11:47 AM sgarg

Modified the offset which is used for creating the resultset. This helps in fixing the 'more than 1000 enteries in IN query' bug on Oracle.

2376 01/18/2005 12:11 PM sgarg

Modifying code so that nodedata is stored in xml_index table next to the paths.
This helps in making the search faster.

2366 01/13/2005 04:39 PM sgarg

Modified code so that when a % search is done, a xml_nodes search is not done. This search is not required and hence saves time in doing a % search

2360 01/06/2005 12:47 PM sgarg

Fixed a bug in containsKey() function.

2168 05/14/2004 10:53 AM Jing Tao

Revised the api and ecogrid can use it easily.

2106 04/05/2004 04:25 PM Matt Jones

Fixed the returndoctype bug in DBQuery as described in bug 1451. Now,
results are returned even if returndoctype is null, which is the
appropriate behavior.

2091 04/01/2004 03:38 PM Jing Tao

Clean up some code.

2087 03/31/2004 05:47 PM Jing Tao

Add a new transferm method for string reader.

2075 03/30/2004 10:09 AM Matt Jones

Reformatted DBQuery.java for readability and consistency.

2074 03/30/2004 10:02 AM Matt Jones

Changed printAttributeQuery() to no longer depend on the xml_index table. Now, if useXMLIndex is false, the method will use a recursive query on xml_nodes to match paths instead of using xml_index.

2072 03/29/2004 01:59 PM Matt Jones

Moved decision about whether to use xml_index for
query to the metacat.properties as "usexmlindex". Default
is now false. Still have some refactoring to do to remove a
few more uses of the xml_index table.

2069 03/29/2004 11:24 AM Matt Jones

Created new printExtendedSQL function that can get the extended
return fields using only xml_nodes and not xml_index. One
step closer to eliminating the dependence ofn xml_index.

2045 03/15/2004 02:08 PM Jing Tao

Fixed the bug for sessionid storing, revision couldn't be zero and Ldap DN is case sensitive.

2043 03/09/2004 06:18 PM sgarg

Replaced Hash table with Vector of Vector datastructure in getting <param> from Query. This was done so that the results are represented in same order as they appeared in the document.

1956 12/10/2003 01:15 AM Matt Jones

Enabled stylesheet parameters to be passed through metacat even when the
'query' function is called. Previously, query would interpret all
parameters except a few hardcoded ones to be pathexpressions that should be
built into a squery. Now, metacat.properties contains a new configuration...

1834 10/08/2003 05:39 PM Jing Tao

Add a new method to find document from queryspecification.

1630 04/30/2003 06:03 PM Jing Tao

Field data will be normalized.

1450 03/04/2003 12:05 PM Jing Tao

Fixed a bug which cause infinite loop.

1448 03/04/2003 10:20 AM Jing Tao

Add access control for return fields.

1445 03/03/2003 06:06 PM Jing Tao

Add access control for return fields in the subtree.

1427 02/26/2003 05:30 PM Jing Tao

Change the code to handle permission checking.

1361 01/09/2003 04:28 PM Jing Tao

If a text node was split into two parts, now it will be combined.

1356 01/08/2003 03:05 PM Jing Tao

Merge the code to handle export single document.

1353 01/07/2003 05:03 PM Jing Tao

Support return field has attributes.

1349 01/03/2003 05:53 PM Jing Tao

Change the code for percentage search.

1347 01/03/2003 02:12 PM Jing Tao

Fixed a bug that after finding a non-dataset document, then go back to find dataset document for it in xml_relation table.

1303 10/11/2002 10:33 AM Jing Tao

Create a shortcut for the query to get user's onwer doc lists. Create a private method named getOwnerQuery. If the coming query equals the owner query, the access permission checking would NOT append to the comming query. Because the owner has all permission.

1300 10/09/2002 05:25 PM Jing Tao

Add the checking permission query into orignal query.

1297 09/09/2002 03:32 PM Jing Tao

Delete the code for permission checking in execute extened query. It was redundant. Add some debug message for displaying search time.

1292 07/14/2002 12:33 PM Jing Tao

Merge cvs branch replication to cvs head.

1217 06/13/2002 11:54 AM Jing Tao

Merge DBConnection branch to head.

1096 05/20/2002 05:23 PM Jing Tao

Add debugMessage level in this class

963 03/06/2002 04:17 PM berkley

fixed my tagging error

962 03/06/2002 03:58 PM berkley

some small changes I had to make to get the QAENGINE demo to work right. this should be committing in a branch

957 03/05/2002 01:09 PM Jing Tao

Add a throwing exception in haspermission method.

953 03/05/2002 09:19 AM Jing Tao

Access document was added to exported data package too.

948 02/26/2002 01:53 PM Jing Tao

When user request a data package, the old version documents would be exported. Only export the request one.

During the export function. Every document will be check if the user has the permission to read or not.

945 02/26/2002 08:23 AM Jing Tao

A new method named hasPermissionToExportPackage was added. So when MetaCat handle export action, it will check if user has permission to read the data package. If it has, MetaCat will export a zip output stream to it. Otherwise, MetaCat will be through a exception.

940 02/22/2002 02:50 PM Jing Tao

A public method named getZippedPackage() and other relative private methods were add to this class. The public method can give a zip output stream if a docid and other parameters were passed to it.

894 01/15/2002 08:46 AM berkley

fixed bug with ampersands in the returned relations in the resultset.

834 09/17/2001 10:01 AM Matt Jones

Fixed bug in metacat where an Exception was thrown when a search returned
an empty resultset. Now we avoid the function call that threw the exeption.

820 08/08/2001 05:07 PM bojilova

fixed an error of NullPointerException

818 08/02/2001 10:29 AM berkley

fixed error with out of cursors error because pstmts were not getting closed in DBQuery

802 07/20/2001 09:03 PM bojilova

added support for multiple group membership

800 07/20/2001 11:23 AM Matt Jones

Added fix to DocumentImpl that showed problems when the DocumentImpl(conn)
constructor was called. Now there is a new constructor:
DocumentImpl(Connection, String, boolean)
where the boolean value is used to determine if the nodeset should be
read a t the time the cosntructor is called. if false, then...

790 07/06/2001 11:58 AM bojilova

added constructor in DocumentImpl for use in DBQuery.findDocuments();
this new constructor is used with getDocumentInfo() to get the doc info only;
because the other constructor builds the whole xml doc which is not needed here and time consuming;
this happens on backtracking only.

768 06/01/2001 04:12 PM bojilova

MS SQL Server stores trailing spaces in varchar fields which shouldn't be
thus added docid.trim() in the Java code

766 06/01/2001 01:26 PM bojilova

the ODBC multi-threading problem:
in DBQuery we open ResultSet in the db connection and we are trying to
open another Resultset by AccessControlList which does not work
thus open separate connection for use by AccessControlList.

745 05/22/2001 03:24 PM Matt Jones

Fixed bug in metacat where return doctypes were not being properly
back traced. Changed DBQuery.findDocuments() so that it no longer
takes a returndoc array, but instead retrieves the returndoc array
fromthe QUERYSpecification. The QuerySpecification was augmented...

744 05/21/2001 02:30 PM Matt Jones

Added ability to process multiple "returndoc" elements in
a pathquery document. Now, any query hit will be back traced to an
associated package if that package is listed in one of the
"returndoctype" elements.

743 05/21/2001 01:51 PM Matt Jones

Modifications that change the package handling behavior of metacat. Package
membership is now determined by an identifier being used as either the subject
or object in a triple. One can not request arbitrary returndocs -- only
those types that have package information embedded can be "returndoctype"...

739 05/08/2001 02:40 PM bojilova

as John were testing Metacat on postgres,
he discovered that Connection needs more precise check
whether it is open because of db timing outs.
So used to be:
if ( conn null ) { get new connection from db; }
Now changed to:
if ( conn null || conn.isClosed() ) { get new connection from db; }...

710 02/26/2001 04:42 PM berkley

added print info and timing info

706 02/23/2001 02:14 PM bojilova

included flag in DBQuery to run pathqueries with or without the index,
but for the command line only.

705 02/23/2001 10:31 AM berkley

added timing info to main

692 02/01/2001 10:56 AM bojilova

there were more mentions of DOCTITLE attr - cleared them

675 01/18/2001 03:15 PM berkley

added precise location information (class.method) to each catch statement so that errors are more easily traced.

674 01/18/2001 01:46 PM berkley

removed print statements

673 01/18/2001 12:46 PM bojilova

fixed typo

671 01/18/2001 12:27 PM berkley

fixed introduced problem with preparedStatements

669 01/18/2001 11:52 AM Matt Jones

Added license terms to source code files, and cleaned up some javadoc
documentation in a few places.

667 01/18/2001 11:25 AM berkley

closed all preparedStatement variables

626 12/20/2000 10:20 AM berkley

fixed sql error

624 12/20/2000 09:28 AM berkley

removed package doctype filtering from the resultset.

612 12/13/2000 02:18 PM bojilova

fixed typo

610 12/13/2000 12:53 PM berkley

commented out print statement

607 12/13/2000 11:29 AM bojilova

problems with passing the connection between objects

606 12/13/2000 11:12 AM berkley

overwrite Jivka's overwrite

605 12/13/2000 10:56 AM bojilova

problem with passing the connection between objects

604 12/13/2000 10:23 AM bojilova

problem with passing the connection between objects