Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.java.sql
Class BaseTime

java.lang.Object
  extended by java.util.Date
      extended by oracle.adfnmc.java.sql.BaseTime
All Implemented Interfaces:
Comparable
Direct Known Subclasses:
Time

public class BaseTime
extends java.util.Date
implements Comparable


Constructor Summary
BaseTime(long theTime)
          Constructs a Time object using a supplied time specified in milliseconds
 
Method Summary
 int compareTo(java.lang.Object another)
          Answers an integer indicating the relative positions of the receiver and the argument in the natural order of elements of the receiver's class.
 void setTime(long time)
          Sets the time for this Time object to the supplied milliseconds value.
 java.lang.String toString()
          Formats the Time as a String in JDBC escape format: hh:mm:ss
static BaseTime valueOfInternal(java.lang.String timeString)
          Creates a Time object from a String holding a time represented in JDBC escape format: hh:mm:ss.
 
Methods inherited from class java.util.Date
equals, getTime, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseTime

public BaseTime(long theTime)
Constructs a Time object using a supplied time specified in milliseconds

Parameters:
theTime - a Time specified in milliseconds since the Epoch (January 1st 1970, 00:00:00.000)
Method Detail

setTime

public void setTime(long time)
Sets the time for this Time object to the supplied milliseconds value.

Overrides:
setTime in class java.util.Date
Parameters:
time - A time value expressed as milliseconds since the Epoch. Negative values are milliseconds before the Epoch. The Epoch is January 1 1970, 00:00:00.000

toString

public java.lang.String toString()
Formats the Time as a String in JDBC escape format: hh:mm:ss

Overrides:
toString in class java.util.Date
Returns:
A String representing the Time value in JDBC escape format: HH:mm:ss

valueOfInternal

public static BaseTime valueOfInternal(java.lang.String timeString)
Creates a Time object from a String holding a time represented in JDBC escape format: hh:mm:ss.

An exception occurs if the input string is not in the form of a time in JDBC escape format.

Parameters:
timeString - A String representing the time value in JDBC escape format: hh:mm:ss
Returns:
The Time object set to a time corresponding to the given time
Throws:
java.lang.IllegalArgumentException - if the supplied time string is not in JDBC escape format.

compareTo

public int compareTo(java.lang.Object another)
Description copied from interface: Comparable
Answers an integer indicating the relative positions of the receiver and the argument in the natural order of elements of the receiver's class.

Specified by:
compareTo in interface Comparable
Parameters:
another - Object an object to compare the receiver to
Returns:
int which should be <0 if the receiver should sort before the argument, 0 if the receiver should sort in the same position as the argument, and >0 if the receiver should sort after the argument.

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.