Interface TermFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Factory for
Term objects encapsulating a binding value. Classes implementing this factory interface
may return inline terms to render values as part of the query string, or bind markers to supply parameters on
statement creation/parameter binding.
A TermFactory is typically used with StatementBuilder.
- Since:
- 3.0
- Author:
- Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanCheck whether the term factory acceptsCollectionvalues to be created asTerm.com.datastax.oss.driver.api.querybuilder.term.TermCreate aTermfor the givenvalue.
-
Method Details
-
create
Create aTermfor the givenvalue.- Parameters:
value- the value to bind, can be null.- Returns:
- the
Termfor the givenvalue.
-
canBindCollection
default boolean canBindCollection()Check whether the term factory acceptsCollectionvalues to be created asTerm.- Returns:
truewhether the term factory canCollectionvalues.- Since:
- 3.2.6
-