- All Known Implementing Classes:
MapperQueryBinder,MultiIndexQueryPreparer.MultiIndexQueryBinder
public interface QueryBinder<T>
-
Method Summary
Modifier and TypeMethodDescriptionBind the value to a new PreparedStatement.voidbindTo(T value, PreparedStatement ps) Bind the value to the specified PreparedStatement.
-
Method Details
-
bind
Bind the value to a new PreparedStatement.- Parameters:
value- the value- Returns:
- the created PreparedStatement
- Throws:
SQLException- if an error occurs
-
bindTo
Bind the value to the specified PreparedStatement. If any parameters is a List or an array it will throw an UnsupportedOperationException.- Parameters:
value- the valueps- the PreparedStatement- Throws:
SQLException- if an error occursUnsupportedOperationException- if a parameter is an array or a List
-