Package jakarta.nosql.column
Interface ColumnQueryParser
-
public interface ColumnQueryParser
A query parser to column database type, this class will convert a String to an operation inColumnFamilyManager
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ColumnPreparedStatement
prepare(String query, ColumnFamilyManager manager, ColumnObserverParser observer)
Executes a query and returns aColumnPreparedStatement
, when the operations are insert, update and select command it will return the result of the operation when the command is delete it will return an empty collection.Stream<ColumnEntity>
query(String query, ColumnFamilyManager manager, ColumnObserverParser observer)
Executes a query and returns the result, when the operations are insert, update and select command it will return the result of the operation when the command is delete it will return an empty collection.
-
-
-
Method Detail
-
query
Stream<ColumnEntity> query(String query, ColumnFamilyManager manager, ColumnObserverParser observer)
Executes a query and returns the result, when the operations are insert, update and select command it will return the result of the operation when the command is delete it will return an empty collection.- Parameters:
query
- the query asString
manager
- the managerobserver
- the observer- Returns:
- the result of the operation if delete it will always return an empty list
- Throws:
NullPointerException
- when there is parameter nullIllegalArgumentException
- when the query has value parametersQueryException
- when there is error in the syntax
-
prepare
ColumnPreparedStatement prepare(String query, ColumnFamilyManager manager, ColumnObserverParser observer)
Executes a query and returns aColumnPreparedStatement
, when the operations are insert, update and select command it will return the result of the operation when the command is delete it will return an empty collection.- Parameters:
query
- the query asString
manager
- the managerobserver
- the observer- Returns:
- a
ColumnPreparedStatement
instance - Throws:
NullPointerException
- when there is parameter nullIllegalArgumentException
- when the query has value parametersQueryException
- when there is error in the syntax
-
-