org.nuiton.wikitty.query.conditions
Class Select

java.lang.Object
  extended by org.nuiton.wikitty.query.conditions.AbstractCondition
      extended by org.nuiton.wikitty.query.conditions.ContainerOperator
          extended by org.nuiton.wikitty.query.conditions.ContainerUnaryOperator
              extended by org.nuiton.wikitty.query.conditions.Select
All Implemented Interfaces:
Serializable, Condition, ConditionValue

public class Select
extends ContainerUnaryOperator
implements ConditionValue

Cette condition n'accept pas d'etre utilise dans une autre condition. Il sert a demander l'extraction d'un autre champs que l'id. Si la valeur du champs est retrouvee plusieurs fois, cette valeur n'apparaitra qu'une seule fois dans les resultats (comme 'DISTINCT' en SQL)

Il y a donc deux types d'utilisation possible

 SELECT extName.fieldName WHERE condition
 condition ... IN (SELECT extName.fieldName WHERE other condition)
 

Version:
$Revision: 1463 $ Last update: $Date: 2012-04-05 18:08:38 +0200 (jeu, 05 avr 2012) $ by : $Author: bpoussin $
Author:
poussin
See Also:
Serialized Form

Field Summary
protected  Aggregate aggregate
           
protected  Element element
           
 
Fields inherited from class org.nuiton.wikitty.query.conditions.ContainerUnaryOperator
subCondition
 
Constructor Summary
Select(Element element)
           
Select(Element element, Aggregate aggregate)
           
Select(Element element, Aggregate aggregate, Condition restriction)
           
Select(Element element, Condition restriction)
           
 
Method Summary
 Aggregate getAggregate()
           
 Element getElement()
           
 
Methods inherited from class org.nuiton.wikitty.query.conditions.ContainerUnaryOperator
accept, addCondition, getSubCondition, waitCondition
 
Methods inherited from class org.nuiton.wikitty.query.conditions.AbstractCondition
copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.nuiton.wikitty.query.conditions.Condition
accept, addCondition, copy, waitCondition
 

Field Detail

aggregate

protected Aggregate aggregate

element

protected Element element
Constructor Detail

Select

public Select(Element element)

Select

public Select(Element element,
              Aggregate aggregate)

Select

public Select(Element element,
              Condition restriction)

Select

public Select(Element element,
              Aggregate aggregate,
              Condition restriction)
Method Detail

getAggregate

public Aggregate getAggregate()

getElement

public Element getElement()


Copyright © 2009-2012 CodeLutin. All Rights Reserved.