public interface ActiveEntity<T>
extends com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>
| Modifier and Type | Method and Description |
|---|---|
default com.github.drinkjava2.jdbpro.SqlItem |
bind(Object... parameters) |
default int |
countAll(Object... optionItems) |
default com.github.drinkjava2.jsqlbox.SqlBoxContext |
ctx(Object... optionItems) |
default void |
delete(Object... optionItems) |
default void |
deleteById(Object id,
Object... optionItems) |
default int |
deleteByIdTry(Object id,
Object... optionItems) |
default int |
deleteTry(Object... optionItems) |
default boolean |
exist(Object... optionItems) |
default boolean |
existById(Object id,
Object... optionItems) |
default List<T> |
findAll(Object... optionItems) |
default List<T> |
findByIds(Iterable<?> ids,
Object... optionItems) |
default List<T> |
findBySample(Object sampleBean,
Object... optionItems) |
default List<T> |
findBySQL(Object... optionItems) |
default <E> E |
findOneRelated(Object... optionItems) |
default <E> List<E> |
findRelatedList(Object... optionItems) |
default <E> Map<Object,E> |
findRelatedMap(Object... optionItems) |
default <E> Set<E> |
findRelatedSet(Object... optionItems) |
default <U> U |
guess(Object... params) |
default com.github.drinkjava2.jdbpro.PreparedSQL |
guessPreparedSQL(Object... params) |
default String |
guessSQL() |
default T |
insert(Object... optionItems) |
static Object[] |
insertThisClassIfNotHave(Object entity,
Object... optionItems) |
default T |
load(Object... optionItems) |
default T |
loadById(Object id,
Object... optionItems) |
default T |
loadByIdTry(Object id,
Object... optionItems) |
default int |
loadTry(Object... optionItems) |
default T |
put(Object... fieldAndValues) |
default T |
putFields(String... fieldNames) |
default T |
putValues(Object... values) |
default com.github.drinkjava2.jsqlbox.SqlBoxContext |
shardDB(Object... optionItems) |
default String |
shardTB(Object... optionItems) |
default T |
update(Object... optionItems) |
default int |
updateTry(Object... optionItems) |
default com.github.drinkjava2.jsqlbox.SqlBoxContext ctx(Object... optionItems)
ctx in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>default T insert(Object... optionItems)
insert in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>default T update(Object... optionItems)
update in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>default int updateTry(Object... optionItems)
updateTry in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>default void delete(Object... optionItems)
delete in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>default int deleteTry(Object... optionItems)
deleteTry in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>default void deleteById(Object id, Object... optionItems)
deleteById in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>default int deleteByIdTry(Object id, Object... optionItems)
deleteByIdTry in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>default boolean exist(Object... optionItems)
exist in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>default boolean existById(Object id, Object... optionItems)
existById in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>default T load(Object... optionItems)
load in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>default int loadTry(Object... optionItems)
loadTry in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>default T loadById(Object id, Object... optionItems)
loadById in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>default T loadByIdTry(Object id, Object... optionItems)
loadByIdTry in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>default List<T> findAll(Object... optionItems)
findAll in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>default List<T> findByIds(Iterable<?> ids, Object... optionItems)
findByIds in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>default List<T> findBySQL(Object... optionItems)
findBySQL in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>default List<T> findBySample(Object sampleBean, Object... optionItems)
findBySample in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>static Object[] insertThisClassIfNotHave(Object entity, Object... optionItems)
default <E> E findOneRelated(Object... optionItems)
findOneRelated in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>default <E> List<E> findRelatedList(Object... optionItems)
findRelatedList in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>default <E> Set<E> findRelatedSet(Object... optionItems)
findRelatedSet in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>default <E> Map<Object,E> findRelatedMap(Object... optionItems)
findRelatedMap in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>default int countAll(Object... optionItems)
countAll in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>default T put(Object... fieldAndValues)
put in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>default T putFields(String... fieldNames)
putFields in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>default T putValues(Object... values)
putValues in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>default <U> U guess(Object... params)
guess in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>default String guessSQL()
guessSQL in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>default com.github.drinkjava2.jdbpro.PreparedSQL guessPreparedSQL(Object... params)
guessPreparedSQL in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>default com.github.drinkjava2.jdbpro.SqlItem bind(Object... parameters)
bind in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>default String shardTB(Object... optionItems)
shardTB in interface com.github.drinkjava2.jsqlbox.ActiveRecordSupport<T>Copyright © 2018. All rights reserved.