com.starteam
Class DateTimeProperty.WebCacheDateTimeProperty

java.lang.Object
  extended by com.starteam.Property.WebCacheProperty
      extended by com.starteam.ScalarProperty.WebCacheScalarProperty
          extended by com.starteam.DateTimeProperty.WebCacheDateTimeProperty
Enclosing class:
DateTimeProperty

public static class DateTimeProperty.WebCacheDateTimeProperty
extends ScalarProperty.WebCacheScalarProperty

Base accessor for cached SDK objects encapsulating the statefulness of objects obtained from the artifact cache.


Method Summary
 DateTime getDefaultValue()
          Returns the default DateTime value for this Property
 DateTime getMaxValue()
          Returns the maximum DateTime value for this Property or MAX_VALUE if none has been specified
 DateTime getMinValue()
          Returns the minimum DateTime value for this Property or MIN_VALUE if none has been specified
 QueryPart.WebCacheQueryPart newQueryPart(QueryPart.Relation relation, DateTime value)
          Creates a new query expression that tests this property against a DateTime value.
 QueryPart.WebCacheQueryPart newQueryPart(QueryPart.Relation relation, TimeSpan value)
          Creates a new query expression that tests this property against a DateTime value.
 void setDefaultValue(DateTime value)
          Sets the default DateTime value for this Property
 void setMaxValue(DateTime value)
          Sets the minimum DateTime value for this Property
 void setMinValue(DateTime value)
          Sets the minimum DateTime value for this Property
 
Methods inherited from class com.starteam.Property.WebCacheProperty
equals, getContext, getDisplayName, getDisplayNameTranslations, getDisplayValue, getGenericDefaultValue, getID, getName, getType, hashCode, isAdvanced, isCalculated, isClientCalculated, isDescriptor, isDirty, isDisabled, isEnabled, isGenericCalculated, isHeader, isItemProperty, isLegalValue, isPrimaryDescriptor, isQueryRelationSupported, isRequired, isRestricted, isRevisionIndependent, isServerCalculated, isSortByTextValueSupported, isStored, isSysDefined, isUserCustomized, isUserDefined, isUserModifiable, isViewSpecific, refresh, setDescriptor, setDisplayName, setDisplayNameTranslations, setEnabled, setGenericDefaultValue, setPrimaryDescriptor, setRequired, toXml, update
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefaultValue

public DateTime getDefaultValue()
Returns the default DateTime value for this Property

Returns:
the default DateTime value for this Property

setDefaultValue

public void setDefaultValue(DateTime value)
Sets the default DateTime value for this Property

Parameters:
value - the default DateTime value for this Property

getMaxValue

public DateTime getMaxValue()
Returns the maximum DateTime value for this Property or MAX_VALUE if none has been specified

Returns:
the maximum DateTime value for this Property

setMaxValue

public void setMaxValue(DateTime value)
Sets the minimum DateTime value for this Property

Parameters:
value - the minimum DateTime value for this Property

getMinValue

public DateTime getMinValue()
Returns the minimum DateTime value for this Property or MIN_VALUE if none has been specified

Returns:
the minimum DateTime value for this Property

setMinValue

public void setMinValue(DateTime value)
Sets the minimum DateTime value for this Property

Parameters:
value - the minimum DateTime value for this Property

newQueryPart

public QueryPart.WebCacheQueryPart newQueryPart(QueryPart.Relation relation,
                                                DateTime value)
Creates a new query expression that tests this property against a DateTime value.

Parameters:
relation - The query relation.
value - The DateTime value to be tested.
Returns:
A new query expression.
See Also:
QueryPart.Relation.LESS_THAN, QueryPart.Relation.LESS_THAN_OR_EQUAL_TO, QueryPart.Relation.EQUAL_TO, QueryPart.Relation.GREATER_THAN_OR_EQUAL_TO, QueryPart.Relation.GREATER_THAN, QueryPart.Relation.NOT_EQUAL_TO

newQueryPart

public QueryPart.WebCacheQueryPart newQueryPart(QueryPart.Relation relation,
                                                TimeSpan value)
Creates a new query expression that tests this property against a DateTime value.

Parameters:
relation - The query relation.
value - The TimeSpan value to be tested.
Returns:
A new query expression.
See Also:
QueryPart.Relation.DATE_WITHIN_LAST_DAYS, QueryPart.Relation.DATE_WITHIN_LAST_WEEKS, QueryPart.Relation.DATE_OLDER_THAN_DAYS, QueryPart.Relation.DATE_OLDER_THAN_WEEKS


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