Package com.activepersistence.service
Class Relation<T>
- java.lang.Object
-
- com.activepersistence.service.Relation<T>
-
- All Implemented Interfaces:
Querying<T>,Calculation<T>,FinderMethods<T>,QueryMethods<T>
public class Relation<T> extends Object implements FinderMethods<T>, QueryMethods<T>, Calculation<T>, Querying<T>
-
-
Method Summary
-
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.Calculation
average, count, count, ids, maximum, minimum, pluck, sum
-
Methods inherited from interface com.activepersistence.service.relation.FinderMethods
exists, exists, findBy, findByOrFail, first, first, firstOrFail, last, last, lastOrFail, take, take, takeOrFail
-
Methods inherited from interface com.activepersistence.service.Querying
buildNativeQuery, buildNativeQuery, buildNativeQuery_, buildQuery, buildQuery, buildQuery_
-
Methods inherited from interface com.activepersistence.service.relation.QueryMethods
all, distinct, distinct, distinct_, eagerLoads, eagerLoads_, from, from_, group, group_, having, having_, includes, includes_, joins, joins_, limit, limit_, lock, lock_, none, none_, offset, offset_, order, order_, reorder, reselect, rewhere, select, select_, unscope, unscope_, where, where_
-
-
-
-
Method Detail
-
fetchOne
public T fetchOne()
-
fetchOneOrFail
public T fetchOneOrFail()
-
fetch_
public List fetch_()
-
fetchExists
public boolean fetchExists()
-
toJpql
public String toJpql()
-
setCalculation
public void setCalculation(String calulation)
-
addSelect
public void addSelect(String[] select)
-
addJoins
public void addJoins(String[] joins)
-
addWhere
public void addWhere(String where)
-
addGroup
public void addGroup(String[] group)
-
addOrder
public void addOrder(String[] order)
-
addIncludes
public void addIncludes(String[] includes)
-
addEagerLoads
public void addEagerLoads(String[] eagerLoads)
-
setFromClause
public void setFromClause(String fromClause)
-
setOffset
public void setOffset(int offset)
-
setLimit
public void setLimit(int limit)
-
setDistinct
public void setDistinct(boolean distinct)
-
hasDistinct
public boolean hasDistinct()
-
setConstructor
public void setConstructor(boolean constructor)
-
setCalculating
public void setCalculating(boolean calculating)
-
clearFrom
public void clearFrom()
-
clearSelect
public void clearSelect()
-
clearJoins
public void clearJoins()
-
clearGroup
public void clearGroup()
-
clearIncludes
public void clearIncludes()
-
clearEagerLoads
public void clearEagerLoads()
-
clearHaving
public void clearHaving()
-
clearWhere
public void clearWhere()
-
clearOrder
public void clearOrder()
-
setLock
public void setLock(boolean lock)
-
hasOrderValues
public boolean hasOrderValues()
-
getService
public Base getService()
- Specified by:
getServicein interfaceQueryMethods<T>
-
getCurrentScope
public Relation<T> getCurrentScope()
- Specified by:
getCurrentScopein interfaceQueryMethods<T>
-
getDefaultScope
public Relation<T> getDefaultScope()
- Specified by:
getDefaultScopein interfaceQueryMethods<T>
-
getEntityManager
public javax.persistence.EntityManager getEntityManager()
- Specified by:
getEntityManagerin interfaceQuerying<T>
-
getEntityClass
public Class<T> getEntityClass()
- Specified by:
getEntityClassin interfaceQuerying<T>
-
getEntityAlias
public String getEntityAlias()
- Specified by:
getEntityAliasin interfaceCalculation<T>- Specified by:
getEntityAliasin interfaceFinderMethods<T>
-
spawn
public Relation<T> spawn()
- Specified by:
spawnin interfaceCalculation<T>- Specified by:
spawnin interfaceQueryMethods<T>
-
thiz
public Relation<T> thiz()
- Specified by:
thizin interfaceFinderMethods<T>- Specified by:
thizin interfaceQueryMethods<T>
-
-