-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
DeleteQuery.DeleteQueryProvider
A provider toDeleteQuery
, this provider converts query text inDeleteQuery
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getEntity()
The entity nameList<String>
getFields()
The fields that will delete in this query, if this fields is empty, this query will remove the whole entity.static DeleteQuery.DeleteQueryProvider
getProvider()
Returns theDeleteQuery.DeleteQueryProvider
instanceOptional<Where>
getWhere()
The condition at thisDeleteQuery
, if the Where is empty that means will delete the whole entities.static DeleteQuery
parse(String query)
Obtains an instance ofDeleteQuery
from a text string.
-
-
-
Method Detail
-
getFields
List<String> getFields()
The fields that will delete in this query, if this fields is empty, this query will remove the whole entity.- Returns:
- the fields list
-
getEntity
String getEntity()
The entity name- Returns:
- the entity name
-
getWhere
Optional<Where> getWhere()
The condition at thisDeleteQuery
, if the Where is empty that means will delete the whole entities.- Returns:
- the
Where
entity otherwiseOptional.empty()
-
parse
static DeleteQuery parse(String query)
Obtains an instance ofDeleteQuery
from a text string.- Parameters:
query
- the query- Returns:
DeleteQuery
instance- Throws:
NullPointerException
- when the query is nullQuerySyntaxException
- if the text cannot be parsedProviderNotFoundException
- when the provider is not found
-
getProvider
static DeleteQuery.DeleteQueryProvider getProvider()
Returns theDeleteQuery.DeleteQueryProvider
instance- Returns:
- the DeleteQueryProvider instance
- Throws:
ProviderNotFoundException
- when the provider is not found
-
-