public interface Bindable
An implementation is expected to be immutable and thread safe.
The design is to take a bean structure with embedded and associated objects etc and flatten that into lists of Bindable objects. These are put into InsertMeta UpdateMeta and DeleteMeta objects to support the generation of DML and binding of statements in a fast and painless manor.
| Modifier and Type | Method and Description |
|---|---|
void |
addChanged(PersistRequestBean<?> request,
List<Bindable> list)
For Updates including only changed properties add the Bindable to the
list if it should be included in the 'update set'.
|
void |
dmlAppend(GenerateDmlRequest request,
boolean checkIncludes)
append sql to the buffer with prefix and suffix options.
|
void |
dmlBind(BindableRequest request,
boolean checkIncludes,
Object bean)
Bind given the request and bean.
|
void |
dmlBindWhere(BindableRequest request,
boolean checkIncludes,
Object bean) |
void |
dmlInsert(GenerateDmlRequest request,
boolean checkIncludes)
append sql to the buffer with prefix and suffix options.
|
void |
dmlWhere(GenerateDmlRequest request,
boolean checkIncludes,
Object bean)
For WHERE clauses append sql to the buffer with prefix and suffix
options.
|
void addChanged(PersistRequestBean<?> request, List<Bindable> list)
void dmlInsert(GenerateDmlRequest request, boolean checkIncludes)
void dmlAppend(GenerateDmlRequest request, boolean checkIncludes)
void dmlWhere(GenerateDmlRequest request, boolean checkIncludes, Object bean)
void dmlBind(BindableRequest request, boolean checkIncludes, Object bean) throws SQLException
SQLExceptionvoid dmlBindWhere(BindableRequest request, boolean checkIncludes, Object bean) throws SQLException
SQLExceptionCopyright © 2014. All Rights Reserved.