[infinispan-commits] Infinispan SVN: r1517 - in trunk/query/src: main/java/org/infinispan/query/backend and 8 other directories.
infinispan-commits at lists.jboss.org
infinispan-commits at lists.jboss.org
Fri Feb 19 07:24:53 EST 2010
Author: sannegrinovero
Date: 2010-02-19 07:24:52 -0500 (Fri, 19 Feb 2010)
New Revision: 1517
Modified:
trunk/query/src/main/java/org/infinispan/query/CacheQuery.java
trunk/query/src/main/java/org/infinispan/query/DefaultTransformer.java
trunk/query/src/main/java/org/infinispan/query/QueryFactory.java
trunk/query/src/main/java/org/infinispan/query/QueryIterator.java
trunk/query/src/main/java/org/infinispan/query/Transformable.java
trunk/query/src/main/java/org/infinispan/query/Transformer.java
trunk/query/src/main/java/org/infinispan/query/backend/IndexSearcherCloser.java
trunk/query/src/main/java/org/infinispan/query/backend/KeyTransformationHandler.java
trunk/query/src/main/java/org/infinispan/query/backend/LocalQueryInterceptor.java
trunk/query/src/main/java/org/infinispan/query/backend/QueryHelper.java
trunk/query/src/main/java/org/infinispan/query/backend/QueryInterceptor.java
trunk/query/src/main/java/org/infinispan/query/backend/SearchableCacheConfiguration.java
trunk/query/src/main/java/org/infinispan/query/backend/TransactionalEventTransactionContext.java
trunk/query/src/main/java/org/infinispan/query/impl/AbstractIterator.java
trunk/query/src/main/java/org/infinispan/query/impl/CacheQueryImpl.java
trunk/query/src/main/java/org/infinispan/query/impl/EagerIterator.java
trunk/query/src/main/java/org/infinispan/query/impl/LazyIterator.java
trunk/query/src/test/java/org/infinispan/query/backend/KeyTransformationHandlerTest.java
trunk/query/src/test/java/org/infinispan/query/backend/QueryHelperTest.java
trunk/query/src/test/java/org/infinispan/query/blackbox/AbstractLocalQueryTest.java
trunk/query/src/test/java/org/infinispan/query/blackbox/BrokenAnnotationTest.java
trunk/query/src/test/java/org/infinispan/query/blackbox/ClusteredCacheTest.java
trunk/query/src/test/java/org/infinispan/query/blackbox/KeyTypeTest.java
trunk/query/src/test/java/org/infinispan/query/blackbox/LocalCacheTest.java
trunk/query/src/test/java/org/infinispan/query/blackbox/MarshalledValueClusteredQueryTest.java
trunk/query/src/test/java/org/infinispan/query/blackbox/MarshalledValueQueryTest.java
trunk/query/src/test/java/org/infinispan/query/config/DeclarativeConfigTest.java
trunk/query/src/test/java/org/infinispan/query/config/QueryParsingTest.java
trunk/query/src/test/java/org/infinispan/query/helper/TestQueryHelperFactory.java
trunk/query/src/test/java/org/infinispan/query/impl/EagerIteratorTest.java
trunk/query/src/test/java/org/infinispan/query/impl/LazyIteratorTest.java
trunk/query/src/test/java/org/infinispan/query/test/BrokenDocumentId.java
trunk/query/src/test/java/org/infinispan/query/test/BrokenProvided.java
trunk/query/src/test/java/org/infinispan/query/test/CustomKey.java
trunk/query/src/test/java/org/infinispan/query/test/CustomKey2.java
trunk/query/src/test/java/org/infinispan/query/test/CustomTransformer.java
trunk/query/src/test/java/org/infinispan/query/test/Person.java
trunk/query/src/test/java/org/infinispan/query/tx/TransactionalQueryTest.java
Log:
Query module: less whitespace, JBoss copyrights, don't throw HibernateException but SearchException
Modified: trunk/query/src/main/java/org/infinispan/query/CacheQuery.java
===================================================================
--- trunk/query/src/main/java/org/infinispan/query/CacheQuery.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/main/java/org/infinispan/query/CacheQuery.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,6 +1,6 @@
/*
* JBoss, Home of Professional Open Source
- * Copyright ${year}, Red Hat Middleware LLC, and individual contributors
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
@@ -19,7 +19,6 @@
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
-
package org.infinispan.query;
import org.apache.lucene.search.Filter;
@@ -40,12 +39,12 @@
* @see QueryFactory#getBasicQuery(String, String)
*/
public interface CacheQuery extends Iterable {
+
/**
* Returns the results of a search as a list.
*
* @return list of objects that were found from the search.
*/
-
List<Object> list();
/**
@@ -54,7 +53,6 @@
* @param fetchSize integer to be given to the implementation constructor.
* @return a QueryResultIterator which can be used to iterate through the results that were found.
*/
-
QueryIterator iterator(int fetchSize);
/**
@@ -63,7 +61,6 @@
*
* @return a QueryResultIterator which can be used to iterate through the results that were found.
*/
-
QueryIterator iterator();
/**
@@ -73,7 +70,6 @@
* @param fetchSize integer to be passed into the lazy implementation of {@link QueryIterator}
* @return a QueryResultIterator which can be used to <B>lazily</B> iterate through results.
*/
-
QueryIterator lazyIterator(int fetchSize);
/**
@@ -81,8 +77,6 @@
*
* @return a QueryResultIterator which can be used to <B>lazily</B> iterate through results.
*/
-
-
QueryIterator lazyIterator();
/**
@@ -91,7 +85,6 @@
* @param index of result to be set to the first.
* @throws IllegalArgumentException if the index given is less than zero.
*/
-
void setFirstResult(int index);
/**
@@ -99,7 +92,6 @@
*
* @param numResults that are to be set to the maxResults.
*/
-
void setMaxResults(int numResults);
/**
@@ -107,7 +99,6 @@
*
* @return integer number of results.
*/
-
int getResultSize();
/**
@@ -115,7 +106,6 @@
*
* @param s - lucene sort object
*/
-
void setSort(Sort s);
/**
@@ -126,7 +116,6 @@
*/
public FullTextFilter enableFullTextFilter(String name);
-
/**
* Disable a given filter by its name.
*
@@ -139,8 +128,6 @@
*
* @param f - lucene filter
*/
-
public void setFilter(Filter f);
-
}
Modified: trunk/query/src/main/java/org/infinispan/query/DefaultTransformer.java
===================================================================
--- trunk/query/src/main/java/org/infinispan/query/DefaultTransformer.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/main/java/org/infinispan/query/DefaultTransformer.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query;
import org.jboss.util.Base64;
@@ -12,6 +33,7 @@
* @author Navin Surtani
*/
public class DefaultTransformer implements Transformer {
+
@Override
public Object fromString(String s) {
return Base64.decodeToObject(s);
@@ -25,4 +47,5 @@
throw new IllegalArgumentException("Expected " + customType.getClass() + " to be Serializable!");
}
}
+
}
Modified: trunk/query/src/main/java/org/infinispan/query/QueryFactory.java
===================================================================
--- trunk/query/src/main/java/org/infinispan/query/QueryFactory.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/main/java/org/infinispan/query/QueryFactory.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
@@ -14,8 +35,6 @@
* @author Navin Surtani
* @since 4.0
*/
-
-
public class QueryFactory {
private Cache cache;
@@ -32,7 +51,6 @@
* @param luceneQuery - {@link org.apache.lucene.search.Query}
* @return the query result
*/
-
public CacheQuery getQuery(Query luceneQuery) {
return new CacheQueryImpl(luceneQuery, searchFactory, cache);
}
@@ -54,7 +72,6 @@
* @param search - the String that you want to be using to search
* @return {@link org.infinispan.query.CacheQuery} result
*/
-
public CacheQuery getBasicQuery(String field, String search) throws org.apache.lucene.queryParser.ParseException {
QueryParser parser = new QueryParser(field, new StandardAnalyzer());
@@ -62,4 +79,5 @@
return new CacheQueryImpl(luceneQuery, searchFactory, cache);
}
+
}
Modified: trunk/query/src/main/java/org/infinispan/query/QueryIterator.java
===================================================================
--- trunk/query/src/main/java/org/infinispan/query/QueryIterator.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/main/java/org/infinispan/query/QueryIterator.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,6 +1,6 @@
/*
* JBoss, Home of Professional Open Source
- * Copyright ${year}, Red Hat Middleware LLC, and individual contributors
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
@@ -19,7 +19,6 @@
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
-
package org.infinispan.query;
import java.util.ListIterator;
Modified: trunk/query/src/main/java/org/infinispan/query/Transformable.java
===================================================================
--- trunk/query/src/main/java/org/infinispan/query/Transformable.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/main/java/org/infinispan/query/Transformable.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query;
import java.lang.annotation.Target;
Modified: trunk/query/src/main/java/org/infinispan/query/Transformer.java
===================================================================
--- trunk/query/src/main/java/org/infinispan/query/Transformer.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/main/java/org/infinispan/query/Transformer.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query;
/**
Modified: trunk/query/src/main/java/org/infinispan/query/backend/IndexSearcherCloser.java
===================================================================
--- trunk/query/src/main/java/org/infinispan/query/backend/IndexSearcherCloser.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/main/java/org/infinispan/query/backend/IndexSearcherCloser.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,6 +1,6 @@
/*
* JBoss, Home of Professional Open Source
- * Copyright ${year}, Red Hat Middleware LLC, and individual contributors
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
@@ -34,7 +34,7 @@
* org.infinispan.query.impl.EagerIterator}
* <p/>
* <p/>
- * Simply an abstraction for one method to reduce unneccesary code replication.
+ * Simply an abstraction for one method to reduce unnecessary code replication.
*
* @author Navin Surtani
*/
Modified: trunk/query/src/main/java/org/infinispan/query/backend/KeyTransformationHandler.java
===================================================================
--- trunk/query/src/main/java/org/infinispan/query/backend/KeyTransformationHandler.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/main/java/org/infinispan/query/backend/KeyTransformationHandler.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query.backend;
import org.infinispan.CacheException;
Modified: trunk/query/src/main/java/org/infinispan/query/backend/LocalQueryInterceptor.java
===================================================================
--- trunk/query/src/main/java/org/infinispan/query/backend/LocalQueryInterceptor.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/main/java/org/infinispan/query/backend/LocalQueryInterceptor.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query.backend;
import org.hibernate.search.engine.SearchFactoryImplementor;
@@ -16,8 +37,6 @@
* @author Navin Surtani
* @since 4.0
*/
-
-
public class LocalQueryInterceptor extends QueryInterceptor {
@Inject
Modified: trunk/query/src/main/java/org/infinispan/query/backend/QueryHelper.java
===================================================================
--- trunk/query/src/main/java/org/infinispan/query/backend/QueryHelper.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/main/java/org/infinispan/query/backend/QueryHelper.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query.backend;
import org.hibernate.search.cfg.SearchConfiguration;
@@ -33,8 +54,6 @@
* @author Navin Surtani
* @since 4.0
*/
-
-
public class QueryHelper {
private Cache cache;
Modified: trunk/query/src/main/java/org/infinispan/query/backend/QueryInterceptor.java
===================================================================
--- trunk/query/src/main/java/org/infinispan/query/backend/QueryInterceptor.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/main/java/org/infinispan/query/backend/QueryInterceptor.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query.backend;
import org.hibernate.search.backend.TransactionContext;
Modified: trunk/query/src/main/java/org/infinispan/query/backend/SearchableCacheConfiguration.java
===================================================================
--- trunk/query/src/main/java/org/infinispan/query/backend/SearchableCacheConfiguration.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/main/java/org/infinispan/query/backend/SearchableCacheConfiguration.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,6 +1,6 @@
/*
* JBoss, Home of Professional Open Source
- * Copyright ${year}, Red Hat Middleware LLC, and individual contributors
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
Modified: trunk/query/src/main/java/org/infinispan/query/backend/TransactionalEventTransactionContext.java
===================================================================
--- trunk/query/src/main/java/org/infinispan/query/backend/TransactionalEventTransactionContext.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/main/java/org/infinispan/query/backend/TransactionalEventTransactionContext.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,6 +1,6 @@
/*
* JBoss, Home of Professional Open Source
- * Copyright ${year}, Red Hat Middleware LLC, and individual contributors
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
@@ -84,7 +84,6 @@
* @return a JTA transaction if one is available, or a null otherwise.
* @see javax.transaction.TransactionManager
*/
-
public Object getTransactionIdentifier() {
if (transactionManager == null) return null;
Modified: trunk/query/src/main/java/org/infinispan/query/impl/AbstractIterator.java
===================================================================
--- trunk/query/src/main/java/org/infinispan/query/impl/AbstractIterator.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/main/java/org/infinispan/query/impl/AbstractIterator.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query.impl;
import org.infinispan.Cache;
@@ -12,8 +33,6 @@
* @see org.infinispan.query.impl.LazyIterator
* @since 4.0
*/
-
-
public abstract class AbstractIterator implements QueryIterator {
protected Object[] buffer;
Modified: trunk/query/src/main/java/org/infinispan/query/impl/CacheQueryImpl.java
===================================================================
--- trunk/query/src/main/java/org/infinispan/query/impl/CacheQueryImpl.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/main/java/org/infinispan/query/impl/CacheQueryImpl.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,6 +1,6 @@
/*
* JBoss, Home of Professional Open Source
- * Copyright ${year}, Red Hat Middleware LLC, and individual contributors
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
@@ -25,7 +25,6 @@
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.Term;
import org.apache.lucene.search.*;
-import org.hibernate.HibernateException;
import org.hibernate.search.FullTextFilter;
import org.hibernate.search.SearchException;
import org.hibernate.search.engine.DocumentBuilder;
@@ -124,7 +123,7 @@
resultSize = hits.totalHits;
}
catch (IOException e) {
- throw new HibernateException("Unable to query Lucene index", e);
+ throw new SearchException("Unable to query Lucene index", e);
}
finally {
//searcher cannot be null
@@ -201,11 +200,11 @@
}
- public QueryIterator iterator() throws HibernateException {
+ public QueryIterator iterator() throws SearchException {
return iterator(1);
}
- public QueryIterator iterator(int fetchSize) throws HibernateException {
+ public QueryIterator iterator(int fetchSize) throws SearchException {
List<Object> keyList = null;
IndexSearcher searcher = buildSearcher(searchFactory);
if (searcher == null) {
@@ -233,7 +232,7 @@
}
catch (IOException e) {
- throw new HibernateException("Unable to query Lucene index", e);
+ throw new SearchException("Unable to query Lucene index", e);
}
@@ -269,13 +268,13 @@
catch (SearchException ee) {
//we have the initial issue already
}
- throw new HibernateException("Unable to query Lucene index", e);
+ throw new SearchException("Unable to query Lucene index", e);
}
}
- public List<Object> list() throws HibernateException {
+ public List<Object> list() throws SearchException {
IndexSearcher searcher = buildSearcher(searchFactory);
if (searcher == null) return Collections.EMPTY_LIST;
@@ -318,7 +317,7 @@
}
catch (IOException e) {
- throw new HibernateException("Unable to query Lucene index", e);
+ throw new SearchException("Unable to query Lucene index", e);
}
finally {
@@ -382,7 +381,7 @@
// empty targetedEntities array means search over all indexed enities,
// but we have to make sure there is at least one
if (builders.isEmpty()) {
- throw new HibernateException(
+ throw new SearchException (
"There are no mapped entities. Don't forget to add @Indexed to at least one class."
);
}
@@ -411,7 +410,7 @@
for (Class clazz : involvedClasses) {
DocumentBuilderIndexedEntity builder = builders.get(clazz);
if (builder == null) {
- throw new HibernateException("Not a mapped entity (don't forget to add @Indexed): " + clazz);
+ throw new SearchException ("Not a mapped entity (don't forget to add @Indexed): " + clazz);
}
if (builder.getIdKeywordName() != null) {
idFieldNames.add(builder.getIdKeywordName());
@@ -465,7 +464,7 @@
if (similarity == null) {
similarity = builder.getSimilarity();
} else if (!similarity.getClass().equals(builder.getSimilarity().getClass())) {
- throw new HibernateException("Cannot perform search on two entities with differing Similarity implementations (" + similarity.getClass().getName() + " & " + builder.getSimilarity().getClass().getName() + ")");
+ throw new SearchException("Cannot perform search on two entities with differing Similarity implementations (" + similarity.getClass().getName() + " & " + builder.getSimilarity().getClass().getName() + ")");
}
return similarity;
Modified: trunk/query/src/main/java/org/infinispan/query/impl/EagerIterator.java
===================================================================
--- trunk/query/src/main/java/org/infinispan/query/impl/EagerIterator.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/main/java/org/infinispan/query/impl/EagerIterator.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,6 +1,6 @@
/*
* JBoss, Home of Professional Open Source
- * Copyright ${year}, Red Hat Middleware LLC, and individual contributors
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
@@ -22,7 +22,6 @@
package org.infinispan.query.impl;
-
import net.jcip.annotations.NotThreadSafe;
import org.infinispan.Cache;
import org.infinispan.util.logging.Log;
@@ -40,7 +39,6 @@
*
* @author Navin Surtani
*/
-
@NotThreadSafe
public class EagerIterator extends AbstractIterator {
//private final int size;
@@ -77,7 +75,6 @@
* @param index to jump to
* @throws IndexOutOfBoundsException
*/
-
public void jumpToResult(int index) throws IndexOutOfBoundsException {
if (index > idList.size() || index < 0) {
throw new IndexOutOfBoundsException("The index you entered is either greater than the size of the list or negative");
@@ -147,7 +144,6 @@
*
* @return The previous element in the list.
*/
-
public Object previous() {
if (!hasPrevious()) throw new IndexOutOfBoundsException("Index is out of bounds. There is no previous");
@@ -195,11 +191,9 @@
*
* @return Index of next element.
*/
-
public int nextIndex() {
if (!hasNext()) throw new NoSuchElementException("Out of boundaries");
return index + 1;
-
}
/**
@@ -207,7 +201,6 @@
*
* @return Index of previous element.
*/
-
public int previousIndex() {
if (!hasPrevious()) throw new NoSuchElementException("Out of boundaries");
return index - 1;
@@ -236,10 +229,8 @@
* @param o
* @throws UnsupportedOperationException
*/
-
public void add(Object o) {
throw new UnsupportedOperationException("Not supported as you are trying to change something in the cache. Please use searchableCache.put()");
}
-
}
Modified: trunk/query/src/main/java/org/infinispan/query/impl/LazyIterator.java
===================================================================
--- trunk/query/src/main/java/org/infinispan/query/impl/LazyIterator.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/main/java/org/infinispan/query/impl/LazyIterator.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,6 +1,6 @@
/*
* JBoss, Home of Professional Open Source
- * Copyright ${year}, Red Hat Middleware LLC, and individual contributors
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
@@ -202,7 +202,6 @@
* @param o
* @throws UnsupportedOperationException
*/
-
public void add(Object o) {
throw new UnsupportedOperationException("Not supported as you are trying to change something in the cache");
}
Modified: trunk/query/src/test/java/org/infinispan/query/backend/KeyTransformationHandlerTest.java
===================================================================
--- trunk/query/src/test/java/org/infinispan/query/backend/KeyTransformationHandlerTest.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/test/java/org/infinispan/query/backend/KeyTransformationHandlerTest.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query.backend;
import org.infinispan.query.test.CustomKey;
Modified: trunk/query/src/test/java/org/infinispan/query/backend/QueryHelperTest.java
===================================================================
--- trunk/query/src/test/java/org/infinispan/query/backend/QueryHelperTest.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/test/java/org/infinispan/query/backend/QueryHelperTest.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query.backend;
import org.infinispan.Cache;
Modified: trunk/query/src/test/java/org/infinispan/query/blackbox/AbstractLocalQueryTest.java
===================================================================
--- trunk/query/src/test/java/org/infinispan/query/blackbox/AbstractLocalQueryTest.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/test/java/org/infinispan/query/blackbox/AbstractLocalQueryTest.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query.blackbox;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
Modified: trunk/query/src/test/java/org/infinispan/query/blackbox/BrokenAnnotationTest.java
===================================================================
--- trunk/query/src/test/java/org/infinispan/query/blackbox/BrokenAnnotationTest.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/test/java/org/infinispan/query/blackbox/BrokenAnnotationTest.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query.blackbox;
import org.infinispan.Cache;
Modified: trunk/query/src/test/java/org/infinispan/query/blackbox/ClusteredCacheTest.java
===================================================================
--- trunk/query/src/test/java/org/infinispan/query/blackbox/ClusteredCacheTest.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/test/java/org/infinispan/query/blackbox/ClusteredCacheTest.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query.blackbox;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
Modified: trunk/query/src/test/java/org/infinispan/query/blackbox/KeyTypeTest.java
===================================================================
--- trunk/query/src/test/java/org/infinispan/query/blackbox/KeyTypeTest.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/test/java/org/infinispan/query/blackbox/KeyTypeTest.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query.blackbox;
import org.apache.lucene.index.Term;
Modified: trunk/query/src/test/java/org/infinispan/query/blackbox/LocalCacheTest.java
===================================================================
--- trunk/query/src/test/java/org/infinispan/query/blackbox/LocalCacheTest.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/test/java/org/infinispan/query/blackbox/LocalCacheTest.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query.blackbox;
import org.infinispan.config.Configuration;
Modified: trunk/query/src/test/java/org/infinispan/query/blackbox/MarshalledValueClusteredQueryTest.java
===================================================================
--- trunk/query/src/test/java/org/infinispan/query/blackbox/MarshalledValueClusteredQueryTest.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/test/java/org/infinispan/query/blackbox/MarshalledValueClusteredQueryTest.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,14 +1,29 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query.blackbox;
-import org.infinispan.Cache;
import org.infinispan.config.Configuration;
-import org.infinispan.query.test.Person;
import org.testng.annotations.Test;
-import java.util.List;
-
-import static org.infinispan.config.Configuration.CacheMode.REPL_SYNC;
-
/**
* Clustered version of {@link org.infinispan.query.blackbox.MarshalledValueQueryTest}
*
@@ -16,8 +31,6 @@
* @author Navin Surtani
* @since 4.0
*/
-
-
@Test (groups = "functional")
public class MarshalledValueClusteredQueryTest extends ClusteredCacheTest {
@@ -25,4 +38,5 @@
protected void enhanceConfig(Configuration c) {
c.setUseLazyDeserialization(true);
}
+
}
Modified: trunk/query/src/test/java/org/infinispan/query/blackbox/MarshalledValueQueryTest.java
===================================================================
--- trunk/query/src/test/java/org/infinispan/query/blackbox/MarshalledValueQueryTest.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/test/java/org/infinispan/query/blackbox/MarshalledValueQueryTest.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query.blackbox;
import org.infinispan.config.Configuration;
Modified: trunk/query/src/test/java/org/infinispan/query/config/DeclarativeConfigTest.java
===================================================================
--- trunk/query/src/test/java/org/infinispan/query/config/DeclarativeConfigTest.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/test/java/org/infinispan/query/config/DeclarativeConfigTest.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query.config;
import org.apache.lucene.queryParser.ParseException;
@@ -2,3 +23,2 @@
import org.infinispan.manager.CacheManager;
-import org.infinispan.manager.DefaultCacheManager;
import org.infinispan.query.CacheQuery;
Modified: trunk/query/src/test/java/org/infinispan/query/config/QueryParsingTest.java
===================================================================
--- trunk/query/src/test/java/org/infinispan/query/config/QueryParsingTest.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/test/java/org/infinispan/query/config/QueryParsingTest.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query.config;
import org.infinispan.Cache;
Modified: trunk/query/src/test/java/org/infinispan/query/helper/TestQueryHelperFactory.java
===================================================================
--- trunk/query/src/test/java/org/infinispan/query/helper/TestQueryHelperFactory.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/test/java/org/infinispan/query/helper/TestQueryHelperFactory.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query.helper;
import org.infinispan.Cache;
Modified: trunk/query/src/test/java/org/infinispan/query/impl/EagerIteratorTest.java
===================================================================
--- trunk/query/src/test/java/org/infinispan/query/impl/EagerIteratorTest.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/test/java/org/infinispan/query/impl/EagerIteratorTest.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query.impl;
import org.easymock.EasyMock;
Modified: trunk/query/src/test/java/org/infinispan/query/impl/LazyIteratorTest.java
===================================================================
--- trunk/query/src/test/java/org/infinispan/query/impl/LazyIteratorTest.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/test/java/org/infinispan/query/impl/LazyIteratorTest.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query.impl;
import org.apache.lucene.queryParser.ParseException;
@@ -328,5 +349,3 @@
}
}
-
-
Modified: trunk/query/src/test/java/org/infinispan/query/test/BrokenDocumentId.java
===================================================================
--- trunk/query/src/test/java/org/infinispan/query/test/BrokenDocumentId.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/test/java/org/infinispan/query/test/BrokenDocumentId.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query.test;
import org.hibernate.search.annotations.DocumentId;
Modified: trunk/query/src/test/java/org/infinispan/query/test/BrokenProvided.java
===================================================================
--- trunk/query/src/test/java/org/infinispan/query/test/BrokenProvided.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/test/java/org/infinispan/query/test/BrokenProvided.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query.test;
import org.hibernate.search.annotations.Field;
Modified: trunk/query/src/test/java/org/infinispan/query/test/CustomKey.java
===================================================================
--- trunk/query/src/test/java/org/infinispan/query/test/CustomKey.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/test/java/org/infinispan/query/test/CustomKey.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,7 +1,27 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query.test;
import org.infinispan.query.Transformable;
-import org.infinispan.query.backend.KeyTransformationHandlerTest;
@Transformable(transformer = CustomTransformer.class)
public class CustomKey {
Modified: trunk/query/src/test/java/org/infinispan/query/test/CustomKey2.java
===================================================================
--- trunk/query/src/test/java/org/infinispan/query/test/CustomKey2.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/test/java/org/infinispan/query/test/CustomKey2.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query.test;
import org.infinispan.query.Transformable;
Modified: trunk/query/src/test/java/org/infinispan/query/test/CustomTransformer.java
===================================================================
--- trunk/query/src/test/java/org/infinispan/query/test/CustomTransformer.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/test/java/org/infinispan/query/test/CustomTransformer.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query.test;
import org.infinispan.query.Transformer;
Modified: trunk/query/src/test/java/org/infinispan/query/test/Person.java
===================================================================
--- trunk/query/src/test/java/org/infinispan/query/test/Person.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/test/java/org/infinispan/query/test/Person.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,6 +1,26 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query.test;
-
import org.hibernate.search.annotations.Field;
import org.hibernate.search.annotations.FieldBridge;
import org.hibernate.search.annotations.Index;
Modified: trunk/query/src/test/java/org/infinispan/query/tx/TransactionalQueryTest.java
===================================================================
--- trunk/query/src/test/java/org/infinispan/query/tx/TransactionalQueryTest.java 2010-02-19 12:11:04 UTC (rev 1516)
+++ trunk/query/src/test/java/org/infinispan/query/tx/TransactionalQueryTest.java 2010-02-19 12:24:52 UTC (rev 1517)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.infinispan.query.tx;
import org.hibernate.search.annotations.Field;
More information about the infinispan-commits
mailing list