Interface BindableRequest
-
- All Known Implementing Classes:
DeleteHandler
,DmlHandler
,InsertHandler
,UpdateHandler
public interface BindableRequest
Request object passed to bindables.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
bind(Object value, int sqlType)
Bind a raw value.void
bind(Object value, BeanProperty prop)
Bind the value to a PreparedStatement.void
bindNoLog(Object value, int sqlType, String logPlaceHolder)
Bind a raw value with a placeHolder to put into the transaction log.void
bindNoLog(Object value, BeanProperty prop)
Bind the value to the preparedStatement without logging.PersistRequestBean<?>
getPersistRequest()
Return the original PersistRequest.boolean
isUpdate()
Return true if this is an update request.long
now()
Return the system current time in millis.void
setIdValue(Object idValue)
Set the id for use with summary level logging.
-
-
-
Method Detail
-
setIdValue
void setIdValue(Object idValue)
Set the id for use with summary level logging.
-
bind
void bind(Object value, BeanProperty prop) throws SQLException
Bind the value to a PreparedStatement.Takes into account logicalType to dbType conversion if required.
Returns the value that was bound (and was potentially converted from logicalType to dbType.
- Throws:
SQLException
-
bind
void bind(Object value, int sqlType) throws SQLException
Bind a raw value. Used to bind the discriminator column.- Throws:
SQLException
-
bindNoLog
void bindNoLog(Object value, int sqlType, String logPlaceHolder) throws SQLException
Bind a raw value with a placeHolder to put into the transaction log.- Throws:
SQLException
-
bindNoLog
void bindNoLog(Object value, BeanProperty prop) throws SQLException
Bind the value to the preparedStatement without logging.- Throws:
SQLException
-
getPersistRequest
PersistRequestBean<?> getPersistRequest()
Return the original PersistRequest.
-
now
long now()
Return the system current time in millis. This is expected to the same time used by multiple generated properties for a single request.
-
isUpdate
boolean isUpdate()
Return true if this is an update request.
-
-