Package com.pyranid
Class DefaultPreparedStatementBinder
java.lang.Object
com.pyranid.DefaultPreparedStatementBinder
- All Implemented Interfaces:
PreparedStatementBinder
Basic implementation of
PreparedStatementBinder
.- Since:
- 1.0.0
- Author:
- Mark Allen
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultPreparedStatementBinder
(DatabaseType databaseType) Creates aPreparedStatementBinder
for the givendatabaseType
.DefaultPreparedStatementBinder
(DatabaseType databaseType, ZoneId timeZone) Creates aPreparedStatementBinder
for the givendatabaseType
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
bind
(PreparedStatement preparedStatement, List<Object> parameters) Binds parameters to a SQL prepared statement.
-
Constructor Details
-
DefaultPreparedStatementBinder
Creates aPreparedStatementBinder
for the givendatabaseType
.- Parameters:
databaseType
- the type of database we're working with
-
DefaultPreparedStatementBinder
Creates aPreparedStatementBinder
for the givendatabaseType
.- Parameters:
databaseType
- the type of database we're working withtimeZone
- the timezone to use when working withTimestamp
and similar values- Since:
- 1.0.15
-
-
Method Details
-
bind
Description copied from interface:PreparedStatementBinder
Binds parameters to a SQL prepared statement.- Specified by:
bind
in interfacePreparedStatementBinder
- Parameters:
preparedStatement
- the prepared statement to bind toparameters
- the parameters to bind
-