Package com.db4o.qlin
Interface QLin<T>
-
- All Known Implementing Classes:
QLinConstraint
,QLinField
,QLinNode
,QLinOrderBy
,QLinRoot
,QLinSodaNode
,QLinSubNode
public interface QLin<T>
a node in a QLin ("Coolin") query. QLin is a new experimental query interface. We would really like to have LINQ for Java instead.- Since:
- 8.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description QLin<T>
equal(java.lang.Object obj)
QLin<T>
greater(java.lang.Object obj)
QLin<T>
limit(int size)
QLin<T>
orderBy(java.lang.Object expression, QLinOrderByDirection direction)
orders the query by the expression.ObjectSet<T>
select()
executes the QLin query and returns the result as anObjectSet
.T
single()
T
singleOrDefault(T defaultValue)
QLin<T>
smaller(java.lang.Object obj)
QLin<T>
startsWith(java.lang.String string)
QLin<T>
where(java.lang.Object expression)
adds a where node to this QLin query.
-
-
-
Method Detail
-
where
QLin<T> where(java.lang.Object expression)
adds a where node to this QLin query.- Parameters:
expression
- can be any of the following:
-
select
ObjectSet<T> select()
executes the QLin query and returns the result as anObjectSet
. Note that ObjectSet extends List and Iterable on the platforms that support these interfaces. You may want to use these interfaces instead of working directly against an ObjectSet.
-
orderBy
QLin<T> orderBy(java.lang.Object expression, QLinOrderByDirection direction)
orders the query by the expression. Use theQLinSupport.ascending()
andQLinSupport.descending()
helper methods to set the direction.
-
single
T single()
-
-