Package com.activepersistence.service
Class Base<T>
- java.lang.Object
-
- com.activepersistence.service.Base<T>
-
- All Implemented Interfaces:
Persistence<T>,Querying<T>,Delegation<T>
public abstract class Base<T> extends Object implements Persistence<T>, Querying<T>, Delegation<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Relation<T>buildRelation()Relation<T>defaultScope()Class<T>getEntityClass()abstract javax.persistence.EntityManagergetEntityManager()voidsetIgnoreDefaultScope(boolean ignoreDefaultScope)booleanshouldIgnoreDefaultScope()booleanuseDefaultScope()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.activepersistence.service.relation.Delegation
all, average, count, count, distinct, distinct, eagerLoads, exists, exists, findBy, findByOrFail, first, first, firstOrFail, from, group, having, ids, includes, joins, last, last, lastOrFail, limit, lock, maximum, minimum, none, offset, order, pluck, reorder, reselect, rewhere, scoping, select, sum, take, take, takeOrFail, unscope, unscoped, where
-
Methods inherited from interface com.activepersistence.service.Persistence
create, destroy, reload, save, update
-
Methods inherited from interface com.activepersistence.service.Querying
buildNativeQuery, buildNativeQuery, buildNativeQuery_, buildQuery, buildQuery, buildQuery_
-
-
-
-
Method Detail
-
getEntityManager
public abstract javax.persistence.EntityManager getEntityManager()
- Specified by:
getEntityManagerin interfacePersistence<T>- Specified by:
getEntityManagerin interfaceQuerying<T>
-
getEntityClass
public Class<T> getEntityClass()
- Specified by:
getEntityClassin interfaceQuerying<T>
-
buildRelation
public Relation<T> buildRelation()
- Specified by:
buildRelationin interfaceDelegation<T>
-
useDefaultScope
public boolean useDefaultScope()
-
shouldIgnoreDefaultScope
public boolean shouldIgnoreDefaultScope()
-
setIgnoreDefaultScope
public void setIgnoreDefaultScope(boolean ignoreDefaultScope)
-
-