T - the generic typeK - the key typepublic class DefaultKunderaEntity<T,K> extends Object implements KunderaEntity<T,K>
| Constructor and Description |
|---|
DefaultKunderaEntity() |
| Modifier and Type | Method and Description |
|---|---|
static void |
bind(String propertiesPath,
Class clazz)
Bind.
|
void |
delete()
Delete.
|
T |
find(K key)
Find.
|
List<T> |
query(String query)
Query.
|
List<T> |
query(String query,
QueryType type)
Query.
|
void |
save()
Save.
|
static void |
unbind()
Unbind.
|
void |
update()
Update.
|
public final T find(K key)
KunderaEntityfind in interface KunderaEntity<T,K>key - the keypublic final void save()
KunderaEntitysave in interface KunderaEntity<T,K>public final void update()
KunderaEntityupdate in interface KunderaEntity<T,K>public final void delete()
KunderaEntitydelete in interface KunderaEntity<T,K>public static void bind(String propertiesPath, Class clazz) throws BindingException
propertiesPath - the properties pathclazz - the clazzBindingException - the binding exceptionpublic static void unbind()
public List<T> query(String query)
KunderaEntityquery in interface KunderaEntity<T,K>query - the querypublic List<T> query(String query, QueryType type)
KunderaEntityquery in interface KunderaEntity<T,K>query - the querytype - the typeCopyright © 2017. All Rights Reserved.