made LuceneQuery abstract

This commit is contained in:
Timo Westkämper 2010-03-17 12:20:53 +00:00
parent 790651b787
commit a5422253a5
2 changed files with 3 additions and 44 deletions

View File

@ -17,7 +17,7 @@ import com.mysema.query.types.path.Path;
*
* @param <T>
*/
public class LuceneQuery<T> implements SimpleQuery<LuceneQuery<T>>, SimpleProjectable<T>{
public abstract class LuceneQuery<T> implements SimpleQuery<LuceneQuery<T>>, SimpleProjectable<T>{
private final Session session;
@ -51,46 +51,5 @@ public class LuceneQuery<T> implements SimpleQuery<LuceneQuery<T>>, SimpleProjec
return queryMixin.where(e);
}
@Override
public long count() {
// TODO Auto-generated method stub
return 0;
}
@Override
public long countDistinct() {
// TODO Auto-generated method stub
return 0;
}
@Override
public List<T> list() {
// TODO Auto-generated method stub
return null;
}
@Override
public List<T> listDistinct() {
// TODO Auto-generated method stub
return null;
}
@Override
public SearchResults<T> listDistinctResults() {
// TODO Auto-generated method stub
return null;
}
@Override
public SearchResults<T> listResults() {
// TODO Auto-generated method stub
return null;
}
@Override
public T uniqueResult() {
// TODO Auto-generated method stub
return null;
}
// TODO : Projectable implementations
}

View File

@ -15,7 +15,7 @@ public class SimpleTest {
PathBuilder<Object> entityPath = new PathBuilder<Object>(Object.class, "obj");
PString stringPath = entityPath.getString("prop");
LuceneQuery<Object> query = new LuceneQuery<Object>(session, entityPath);
// LuceneQuery<Object> query = new LuceneQuery<Object>(session, entityPath);
// Terms & Phrases
// "test" or "hello dolly"