mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-21 21:14:12 +08:00
made LuceneQuery abstract
This commit is contained in:
parent
790651b787
commit
a5422253a5
@ -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
|
||||
}
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user