public class PropertyDateValueEntity extends Object
Constructor and Description |
---|
PropertyDateValueEntity() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
getDateValue() |
short |
getDayOfMonth() |
short |
getDayOfWeek() |
short |
getDayOfYear() |
org.alfresco.util.Pair<Long,Date> |
getEntityPair() |
short |
getFullYear() |
short |
getHalfOfYear() |
short |
getMonthOfYear() |
short |
getQuarterOfYear() |
short |
getWeekOfMonth() |
short |
getWeekOfYear() |
int |
hashCode() |
void |
setDateValue(long dateValue) |
void |
setDayOfMonth(short dayOfMonth) |
void |
setDayOfWeek(short dayOfWeek) |
void |
setDayOfYear(short dayOfYear) |
void |
setFullYear(short fullYear) |
void |
setHalfOfYear(short halfOfYear) |
void |
setMonthOfYear(short monthOfYear) |
void |
setQuarterOfYear(short quarterOfYear) |
void |
setValue(Date value) |
void |
setWeekOfMonth(short weekOfMonth) |
void |
setWeekOfYear(short weekOfYear) |
String |
toString() |
static Date |
truncateDate(Date value)
Converts the given date (with arbitrary time values) to a date-only (no time or milliseconds)
|
public static Date truncateDate(Date value)
value
- the Java date, possibly containing hours, minutes, seconds and millisecondspublic org.alfresco.util.Pair<Long,Date> getEntityPair()
public void setValue(Date value)
public long getDateValue()
public void setDateValue(long dateValue)
public short getFullYear()
public void setFullYear(short fullYear)
public short getHalfOfYear()
public void setHalfOfYear(short halfOfYear)
public short getQuarterOfYear()
public void setQuarterOfYear(short quarterOfYear)
public short getMonthOfYear()
public void setMonthOfYear(short monthOfYear)
public short getWeekOfYear()
public void setWeekOfYear(short weekOfYear)
public short getWeekOfMonth()
public void setWeekOfMonth(short weekOfMonth)
public short getDayOfYear()
public void setDayOfYear(short dayOfYear)
public short getDayOfMonth()
public void setDayOfMonth(short dayOfMonth)
public short getDayOfWeek()
public void setDayOfWeek(short dayOfWeek)
Copyright © 2005–2017 Alfresco Software. All rights reserved.