Class AbstractSnapshotField<A,B extends Comparable>
java.lang.Object
org.opencastproject.assetmanager.impl.query.AbstractSnapshotField<A,B>
- Type Parameters:
A- The business type of the field, e.g.VersionB- The JPA internal type of the field, e.g.Long
- All Implemented Interfaces:
Field<A>,EntityPaths
- Direct Known Subclasses:
SimpleSnapshotField,VersionFieldImpl
public abstract class AbstractSnapshotField<A,B extends Comparable>
extends Object
implements Field<A>, EntityPaths
Generic implementation to query
SnapshotDto fields.-
Field Summary
Fields inherited from interface org.opencastproject.assetmanager.impl.persistence.EntityPaths
$NO_ENTITY, $Q_PROPERTY, $Q_SNAPSHOT, Q_ASSET, Q_PROPERTY, Q_SNAPSHOT -
Constructor Summary
ConstructorsConstructorDescriptionAbstractSnapshotField(com.mysema.query.types.expr.ComparableExpressionBase<B> path) Create a new snapshot field. -
Method Summary
Modifier and TypeMethodDescriptionasc()Create an ascending order specifier for the field.desc()Create a descending order specifier for the field.Create a predicate that holds true if the field's value and constant valuerightare equal.eq(PropertyField<A> right) Create a predicate that holds true if the field's value and the value of property fieldrightare equal.exists()Create a predicate that holds true if the field exists.protected abstract BExtract database typeBfrom business typeA.Create a predicate that holds true if the field's value is greater than constant valuerightor equal to it.ge(PropertyField<A> right) Create a predicate that holds true if the field's value is greater than the value of property fieldrightor equal to it.Create a predicate that holds true if the field's value is strictly greater than constant valueright.gt(PropertyField<A> right) Create a predicate that holds true if the field's value is strictly greater than the value of property fieldright.Create a predicate that holds true if the field's value is less than constant valuerightor equal to it.le(PropertyField<A> right) Create a predicate that holds true if the field's value is less than the value of property fieldrightor equal to it.Create a predicate that holds true if the field's value is strictly less than constant valueright.lt(PropertyField<A> right) Create a predicate that holds true if the field's value is strictly less than the value of property fieldright.protected static PredicatemkPredicate(com.mysema.query.types.expr.BooleanExpression where) Create a predicate that holds true if the field does not exist.
-
Constructor Details
-
AbstractSnapshotField
Create a new snapshot field.- Parameters:
path- a path to a snapshot field
-
-
Method Details
-
extract
Extract database typeBfrom business typeA. -
eq
Description copied from interface:FieldCreate a predicate that holds true if the field's value and constant valuerightare equal. -
eq
Description copied from interface:FieldCreate a predicate that holds true if the field's value and the value of property fieldrightare equal. -
lt
Description copied from interface:FieldCreate a predicate that holds true if the field's value is strictly less than constant valueright. -
lt
Description copied from interface:FieldCreate a predicate that holds true if the field's value is strictly less than the value of property fieldright. -
le
Description copied from interface:FieldCreate a predicate that holds true if the field's value is less than constant valuerightor equal to it. -
le
Description copied from interface:FieldCreate a predicate that holds true if the field's value is less than the value of property fieldrightor equal to it. -
gt
Description copied from interface:FieldCreate a predicate that holds true if the field's value is strictly greater than constant valueright. -
gt
Description copied from interface:FieldCreate a predicate that holds true if the field's value is strictly greater than the value of property fieldright. -
ge
Description copied from interface:FieldCreate a predicate that holds true if the field's value is greater than constant valuerightor equal to it. -
ge
Description copied from interface:FieldCreate a predicate that holds true if the field's value is greater than the value of property fieldrightor equal to it. -
exists
Description copied from interface:FieldCreate a predicate that holds true if the field exists. -
notExists
Description copied from interface:FieldCreate a predicate that holds true if the field does not exist. -
desc
Description copied from interface:FieldCreate a descending order specifier for the field. -
asc
Description copied from interface:FieldCreate an ascending order specifier for the field. -
mkPredicate
-