|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.destin.beans.Persist<T,ID>
public class Persist<T,ID extends java.io.Serializable>
| Constructor Summary | |
|---|---|
Persist()
|
|
| Method Summary | |
|---|---|
int |
countAll()
Count all entities |
int |
countByExample(java.lang.Object exampleInstance)
Count entities based on an example |
void |
delete(java.lang.Object entity)
delete an entity from the database |
java.util.List |
findAll()
Load all entities |
java.util.List |
findByExample(java.lang.Object exampleInstance)
Find entities based on an example |
java.lang.Object |
findById(java.io.Serializable id)
Find an entity by its primary key |
java.util.List |
findByNamedQuery(java.lang.String queryName,
java.lang.Object... params)
Find using a named query |
java.util.List |
findByNamedQueryAndNamedParams(java.lang.String queryName,
java.util.Map params)
Find using a named query |
java.lang.Class |
getEntityClass()
Get the Class of the entity |
java.lang.Object |
save(java.lang.Object entity)
save an entity. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Persist()
| Method Detail |
|---|
public int countAll()
PersistInterface
countAll in interface PersistInterfacepublic int countByExample(java.lang.Object exampleInstance)
PersistInterface
countByExample in interface PersistInterfaceexampleInstance - the search criteria
public void delete(java.lang.Object entity)
PersistInterface
delete in interface PersistInterfaceentity - the entity to deletepublic java.util.List findAll()
PersistInterface
findAll in interface PersistInterfacepublic java.util.List findByExample(java.lang.Object exampleInstance)
PersistInterface
findByExample in interface PersistInterfaceexampleInstance - the example
public java.lang.Object findById(java.io.Serializable id)
PersistInterface
findById in interface PersistInterfaceid - the primary key
public java.util.List findByNamedQuery(java.lang.String queryName,
java.lang.Object... params)
PersistInterface
findByNamedQuery in interface PersistInterfacequeryName - the name of the queryparams - the query parameters
public java.util.List findByNamedQueryAndNamedParams(java.lang.String queryName,
java.util.Map params)
PersistInterface
findByNamedQueryAndNamedParams in interface PersistInterfacequeryName - the name of the queryparams - the query parameters
public java.lang.Class getEntityClass()
PersistInterface
getEntityClass in interface PersistInterfacepublic java.lang.Object save(java.lang.Object entity)
PersistInterface
save in interface PersistInterfaceentity - the entity to save
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||