Skip navigation links

Oracle Role Manager Java API Reference
10g (10.1.4)
E12031-02


oracle.iam.rm.server_api
Class DateTime

java.lang.Object
  extended by oracle.iam.rm.server_api.DateTime

All Implemented Interfaces:
java.io.Serializable

public class DateTime
extends java.lang.Object
implements java.io.Serializable

A representation of a point in time.

See Also:
Serialized Form

Constructor Summary
DateTime()
          Creates a DateTime representing "transaction time" or "now".
DateTime(long dateTime)
          Creates a DateTime representing a specific point in time.

 

Method Summary
 long getTime()
          Gets the time in millis that this DateTime represents.
 boolean isTransactionTime()
          Determines whether this DateTime represents "transaction time".

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

DateTime

public DateTime(long dateTime)
Creates a DateTime representing a specific point in time.
Parameters:
dateTime - the time in millis that the created DateTime will represent

DateTime

public DateTime()
Creates a DateTime representing "transaction time" or "now".

Method Detail

getTime

public long getTime()
Gets the time in millis that this DateTime represents.
Returns:
the time in millis that this DateTime represents or 0 if it is "transaction time".

isTransactionTime

public boolean isTransactionTime()
Determines whether this DateTime represents "transaction time".
Returns:
true if this this DateTime represents "transaction time", false otherwise

Skip navigation links

Oracle Role Manager Java API Reference
10g (10.1.4)
E12031-02


Copyright © 2007, 2008 Oracle. All Rights Reserved.