|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal 11g Release 1 (11.1.1.7.0) E15995-06 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.wcps.property.DateTime
public class DateTime
Encapsulates a datetime. The datetime is stored as a timestamp and may be persisted as a timestamp.
Field Summary | |
---|---|
static java.lang.String |
DATETIME_FORMAT |
Constructor Summary | |
---|---|
DateTime() |
|
DateTime(java.util.Calendar cal) Creates this by converting the given cal calendar value into timestamp. |
|
DateTime(java.util.Date utilDate) Creates this by converting the given utilDate into a timestamp value. |
|
DateTime(long timeInMillis) Create this by converting the given timeInMillis value into a timestamp value. |
|
DateTime(java.lang.String value) Creates this by parsing the given value into a Timestamp value. |
|
DateTime(java.sql.Timestamp value) Creates this with the given timestamp value . |
Method Summary | |
---|---|
java.util.List<PropertyValue> |
asList(DateTime[] ts) Converts the given array to list of this. |
boolean |
equals(java.lang.Object o) |
java.util.Date |
getDate() Converts this into a Date . |
java.sql.Timestamp |
getValue() Returns a raw property value. |
int |
hashCode() |
void |
setValue(java.sql.Timestamp value) Sets the given timestamp value as the value for this. |
java.lang.String |
toString() |
java.io.Serializable |
unwrap() Unwraps this into correct type value. |
java.io.Serializable |
unwrap(java.util.List<? extends PropertyValue> values, boolean isMultiValue) Unwraps this into correct type values. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String DATETIME_FORMAT
Constructor Detail |
---|
public DateTime()
public DateTime(java.lang.String value) throws java.text.ParseException
value
into a Timestamp
value. The datetime format used for parsing is
yyyy-MM-dd'T'HH:mm:ss.SSSZZ
value
- the string representation of a datetime in the above format.ParseException
- if unable to parse the given string.java.text.ParseException
public DateTime(java.sql.Timestamp value)
value
.
value
- value to be stored.public DateTime(java.util.Date utilDate)
utilDate
into a timestamp value.
utilDate
- date value.public DateTime(long timeInMillis)
timeInMillis
value into a timestamp value.
timeInMillis
- value representing time in milliseconds.public DateTime(java.util.Calendar cal)
cal
calendar value into timestamp.
cal
- a calendar instance.Method Detail |
---|
public java.sql.Timestamp getValue()
PropertyValue
getValue
in interface PropertyValue
public void setValue(java.sql.Timestamp value)
value
as the value for this.value
- a timestamp value.public java.util.List<PropertyValue> asList(DateTime[] ts)
ts
- an array of this.ts
.public java.io.Serializable unwrap(java.util.List<? extends PropertyValue> values, boolean isMultiValue)
PropertyValue
isMultiValue
is true it will convert values
into an array of values.unwrap
in interface PropertyValue
values
- a list of property values.isMultiValue
- if this is an array or not.public java.util.Date getDate()
Date
.public java.io.Serializable unwrap()
PropertyValue
unwrap
in interface PropertyValue
Type
enum values.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal 11g Release 1 (11.1.1.7.0) E15995-06 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |