db4o 8.0

com.db4o.qlin
Interface QLin<T>


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
 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, com.db4o.qlin.QLinOrderByDirection direction)
          orders the query by the expression.
 ObjectSet<T> select()
          executes the QLin query and returns the result as an ObjectSet.
 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 an ObjectSet. 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.


equal

QLin<T> equal(java.lang.Object obj)

startsWith

QLin<T> startsWith(java.lang.String string)

limit

QLin<T> limit(int size)

smaller

QLin<T> smaller(java.lang.Object obj)

greater

QLin<T> greater(java.lang.Object obj)

orderBy

QLin<T> orderBy(java.lang.Object expression,
                com.db4o.qlin.QLinOrderByDirection direction)
orders the query by the expression. Use the QLinSupport.ascending() and QLinSupport.descending() helper methods to set the direction.


singleOrDefault

T singleOrDefault(T defaultValue)

single

T single()

db4o 8.0

Copyright 2009 Versant Corporation. All rights reserved.