Package org.opennms.core.criteria
Class Criteria
- java.lang.Object
-
- org.opennms.core.criteria.Criteria
-
- All Implemented Interfaces:
java.lang.Cloneable
public class Criteria extends java.lang.Object implements java.lang.Cloneable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Criteria.CriteriaVisitor
static class
Criteria.LockType
This enum provides all of the locking modes that are available in the ORM implementation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Criteria
addRestriction(Restriction restriction)
Criteria
clone()
java.util.Collection<Alias>
getAliases()
java.lang.Class<?>
getCriteriaClass()
java.util.Collection<Fetch>
getFetchTypes()
java.lang.Integer
getLimit()
Criteria.LockType
getLockType()
java.lang.Integer
getOffset()
java.util.Collection<Order>
getOrders()
java.util.Collection<Restriction>
getRestrictions()
java.lang.String
getRootAlias()
java.lang.Class<?>
getType(java.lang.String path)
boolean
isDistinct()
Criteria
setAliases(java.util.Collection<? extends Alias> aliases)
void
setClass(java.lang.Class<?> m_class)
Criteria
setDistinct(boolean distinct)
Criteria
setFetchTypes(java.util.Collection<? extends Fetch> fetchTypes)
Criteria
setLimit(java.lang.Integer limit)
Criteria
setLockType(Criteria.LockType lock)
Criteria
setOffset(java.lang.Integer offset)
Criteria
setOrders(java.util.Collection<? extends Order> orderCollection)
Criteria
setRestrictions(java.util.Collection<? extends Restriction> restrictions)
java.lang.String
toString()
void
visit(Criteria.CriteriaVisitor visitor)
-
-
-
Method Detail
-
visit
public void visit(Criteria.CriteriaVisitor visitor)
-
setClass
public void setClass(java.lang.Class<?> m_class)
-
getCriteriaClass
public final java.lang.Class<?> getCriteriaClass()
-
getRootAlias
public final java.lang.String getRootAlias()
-
getOrders
public final java.util.Collection<Order> getOrders()
-
getFetchTypes
public final java.util.Collection<Fetch> getFetchTypes()
-
setFetchTypes
public final Criteria setFetchTypes(java.util.Collection<? extends Fetch> fetchTypes)
-
getAliases
public final java.util.Collection<Alias> getAliases()
-
getRestrictions
public final java.util.Collection<Restriction> getRestrictions()
-
setRestrictions
public final Criteria setRestrictions(java.util.Collection<? extends Restriction> restrictions)
-
addRestriction
public final Criteria addRestriction(Restriction restriction)
-
isDistinct
public final boolean isDistinct()
-
setDistinct
public final Criteria setDistinct(boolean distinct)
-
getLimit
public final java.lang.Integer getLimit()
-
setLimit
public final Criteria setLimit(java.lang.Integer limit)
-
getLockType
public final Criteria.LockType getLockType()
-
setLockType
public final Criteria setLockType(Criteria.LockType lock)
-
getOffset
public final java.lang.Integer getOffset()
-
setOffset
public final Criteria setOffset(java.lang.Integer offset)
-
getType
public final java.lang.Class<?> getType(java.lang.String path) throws java.beans.IntrospectionException
- Throws:
java.beans.IntrospectionException
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
clone
public final Criteria clone()
- Overrides:
clone
in classjava.lang.Object
-
-