generated from Nekojimi/JavaMavenTemplate
parent
ba9fde9cac
commit
d3f083e0d5
@ -0,0 +1,33 @@ |
||||
/* |
||||
* To change this license header, choose License Headers in Project Properties. |
||||
* To change this template file, choose Tools | Templates |
||||
* and open the template in the editor. |
||||
*/ |
||||
package moe.nekojimi.musicsearcher; |
||||
|
||||
/** |
||||
* |
||||
* @author jim |
||||
*/ |
||||
public class Query |
||||
{ |
||||
private String textSearch; |
||||
|
||||
public static Query fullText(String text) |
||||
{ |
||||
Query query = new Query(); |
||||
query.setTextSearch(text); |
||||
return query; |
||||
} |
||||
|
||||
public String getTextSearch() |
||||
{ |
||||
return textSearch; |
||||
} |
||||
|
||||
public void setTextSearch(String textSearch) |
||||
{ |
||||
this.textSearch = textSearch; |
||||
} |
||||
|
||||
} |
@ -0,0 +1,22 @@ |
||||
/* |
||||
* To change this license header, choose License Headers in Project Properties. |
||||
* To change this template file, choose Tools | Templates |
||||
* and open the template in the editor. |
||||
*/ |
||||
package moe.nekojimi.musicsearcher; |
||||
|
||||
/** |
||||
* |
||||
* @author jim |
||||
*/ |
||||
public class QueryFieldUnsupportedException extends RuntimeException |
||||
{ |
||||
private final String field; |
||||
|
||||
public QueryFieldUnsupportedException(String field) |
||||
{ |
||||
super("Searcher doesn't support query field: " + field); |
||||
this.field = field; |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue