com.starteam
Class DateProperty.WebCacheDateProperty

java.lang.Object
  extended by com.starteam.Property.WebCacheProperty
      extended by com.starteam.ScalarProperty.WebCacheScalarProperty
          extended by com.starteam.DateProperty.WebCacheDateProperty
Enclosing class:
DateProperty

public static class DateProperty.WebCacheDateProperty
extends ScalarProperty.WebCacheScalarProperty

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


Method Summary
 Date getDefaultValue()
          Returns the default Date value for this Property
 Date getMaxValue()
          Returns the maximum Date value for this Property or MIN_VALUE if none has been specified
 Date getMinValue()
          Returns the minimum Date value for this Property or MIN_VALUE if none has been specified
 QueryPart.WebCacheQueryPart newQueryPart(QueryPart.Relation relation, Date value)
          Creates a new query expression that tests this property against a DateTime value.
 QueryPart.WebCacheQueryPart newQueryPart(QueryPart.Relation relation, TimeSpan value)
          Returns a new QueryPart that tests this property against the given value using the given query relation
 void setDefaultValue(Date value)
          Sets the default Date value for this Property
 void setMaxValue(Date value)
          Sets the maximum Date value for this Property
 void setMinValue(Date value)
          Sets the minimum Date 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 Date getDefaultValue()
Returns the default Date value for this Property

Returns:
the default Date value for this Property

setDefaultValue

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

Parameters:
value - the default Date value for this Property

getMaxValue

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

Returns:
the maximum Date value for this Property

setMaxValue

public void setMaxValue(Date value)
Sets the maximum Date value for this Property

Parameters:
value - the maximum Date value for this Property

getMinValue

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

Returns:
the minimum Date value for this Property

setMinValue

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

Parameters:
value - the minimum Date value for this Property

newQueryPart

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

Parameters:
relation - The query relation.
value - The Date 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)
Returns a new QueryPart that tests this property against the given value using the given query relation

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.