The YearMonthDay derived property represents a date that is derived from the values of year, month, and day fields. It is implemented by the property descriptor atg.repository.dp.YearMonthDayPropertyDescriptor, which uses the supporting derivation method atg.repository.dp.YearMonthDay.

The YearMonthDay property is readable, writable, and queryable. It has the following three attributes:

Attribute

Type

Required

Description

yearPropertyName

string

yes

The name of the property that represents the year field.

monthOfYearPropertyName

string

yes

The name of the property that represents the month field.

dayOfMonthPropertyName

string

yes

The name of the property that represents the day field

All dates use the default time zone of the JVM.

The following example shows how to configure the time interval derived property in a GSA repository definition to calculate a user’s date of birth:

<property name="dob"
          data-type="date"
          writable="true"
          property-type="atg.repository.dp.YearMonthDayPropertyDescriptor">
   <attribute name="yearPropertyName" value="dobYearField"/>
   <attribute name="monthOfYearPropertyName" value="dobMonthOfYearField"/>
   <attribute name="dayOfMonthPropertyName" value="dobDayOfMonthField"/>
</property>

Note that the date computed for this derived property does include the time, which is always 12:00 AM. However, any comparison queries performed with this property ignore the time and use the date only.


Copyright © 1997, 2012 Oracle and/or its affiliates. All rights reserved. Legal Notices