com.starteam
Class QueryPart.Relation

java.lang.Object
  extended by com.starteam.QueryPart.Relation
Enclosing class:
QueryPart

public static final class QueryPart.Relation
extends java.lang.Object

Relations that can be used in the expression


Field Summary
static QueryPart.Relation[] ALL
          All possible relations
static QueryPart.Relation CONTAINS
          Tests if a map or multi-select enumerated valued property contains the specified object.
static QueryPart.Relation CONTAINS_KEY
          Tests if a map valued property contains the specified key.
static QueryPart.Relation CONTAINS_VALUE
          Tests if a map valued property contains the specified value.
static QueryPart.Relation DATE_OLDER_THAN_DAYS
          True if the date is older than the specified number of days.
static QueryPart.Relation DATE_OLDER_THAN_WEEKS
          True if the date is older than the specified number of weeks.
static QueryPart.Relation DATE_WITHIN_LAST_DAYS
          True if the date falls within the last specified number of days.
static QueryPart.Relation DATE_WITHIN_LAST_WEEKS
          True if the date falls within the last specified number of weeks.
static QueryPart.Relation EQUAL_TO
          The "equal-to" relation.
static QueryPart.Relation GREATER_THAN
          The "greater-than" relation.
static QueryPart.Relation GREATER_THAN_OR_EQUAL_TO
          The "greater-than-or-equal-to" relation.
static QueryPart.Relation KEY_CONTAINS_VALUE
          Tests if a map valued property contains the specified key value pair.
static QueryPart.Relation LESS_THAN
          The "less-than" relation.
static QueryPart.Relation LESS_THAN_OR_EQUAL_TO
          The "less-than-or-equal-to" relation.
static QueryPart.Relation NOT_EQUAL_TO
          The "not-equal" relation.
static QueryPart.Relation STRING_CONTAINS_TEXT
          Tests if a string valued property contains the specified string.
static QueryPart.Relation STRING_ENDS_WITH_TEXT
          Tests if a string valued property ends with the specified string.
static QueryPart.Relation STRING_STARTS_WITH_TEXT
          Tests if a string valued property starts with the specified string.
 
Method Summary
 boolean equals(java.lang.Object o)
          tests two relations for equality
static QueryPart.Relation fromID(int id)
          Gets the Relation value corresponding to the given ID.
 int getID()
          The ID of the corresponding Relation.
 int hashCode()
          returns the hash code for this relation
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LESS_THAN

public static final QueryPart.Relation LESS_THAN
The "less-than" relation.


LESS_THAN_OR_EQUAL_TO

public static final QueryPart.Relation LESS_THAN_OR_EQUAL_TO
The "less-than-or-equal-to" relation.


EQUAL_TO

public static final QueryPart.Relation EQUAL_TO
The "equal-to" relation.


GREATER_THAN_OR_EQUAL_TO

public static final QueryPart.Relation GREATER_THAN_OR_EQUAL_TO
The "greater-than-or-equal-to" relation.


GREATER_THAN

public static final QueryPart.Relation GREATER_THAN
The "greater-than" relation.


NOT_EQUAL_TO

public static final QueryPart.Relation NOT_EQUAL_TO
The "not-equal" relation.


DATE_WITHIN_LAST_DAYS

public static final QueryPart.Relation DATE_WITHIN_LAST_DAYS
True if the date falls within the last specified number of days. Applies to date valued properties.


DATE_WITHIN_LAST_WEEKS

public static final QueryPart.Relation DATE_WITHIN_LAST_WEEKS
True if the date falls within the last specified number of weeks. Applies to date valued properties.


DATE_OLDER_THAN_DAYS

public static final QueryPart.Relation DATE_OLDER_THAN_DAYS
True if the date is older than the specified number of days. Applies to date valued properties.


DATE_OLDER_THAN_WEEKS

public static final QueryPart.Relation DATE_OLDER_THAN_WEEKS
True if the date is older than the specified number of weeks. Applies to date valued properties.


STRING_CONTAINS_TEXT

public static final QueryPart.Relation STRING_CONTAINS_TEXT
Tests if a string valued property contains the specified string.


STRING_STARTS_WITH_TEXT

public static final QueryPart.Relation STRING_STARTS_WITH_TEXT
Tests if a string valued property starts with the specified string.


STRING_ENDS_WITH_TEXT

public static final QueryPart.Relation STRING_ENDS_WITH_TEXT
Tests if a string valued property ends with the specified string.


CONTAINS

public static final QueryPart.Relation CONTAINS
Tests if a map or multi-select enumerated valued property contains the specified object.


CONTAINS_KEY

public static final QueryPart.Relation CONTAINS_KEY
Tests if a map valued property contains the specified key.


CONTAINS_VALUE

public static final QueryPart.Relation CONTAINS_VALUE
Tests if a map valued property contains the specified value.


KEY_CONTAINS_VALUE

public static final QueryPart.Relation KEY_CONTAINS_VALUE
Tests if a map valued property contains the specified key value pair.


ALL

public static final QueryPart.Relation[] ALL
All possible relations

Method Detail

getID

public int getID()
The ID of the corresponding Relation.

Returns:
The ID of this Relation value.

equals

public boolean equals(java.lang.Object o)
tests two relations for equality

Overrides:
equals in class java.lang.Object
Parameters:
o - the Relation to test for equality
Returns:
true if the two relations are considered equal

hashCode

public int hashCode()
returns the hash code for this relation

Overrides:
hashCode in class java.lang.Object
Returns:
a hash code for this relation

fromID

public static QueryPart.Relation fromID(int id)
Gets the Relation value corresponding to the given ID.

Parameters:
id - The ID of a Relation.
Returns:
The corresponding Relation value, or null.


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.