Skip navigation links

Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.7.0)

E17060-04


oracle.odi.domain.runtime.scheduling
Class Period

java.lang.Object
  extended by oracle.odi.domain.support.BusinessObject
      extended by oracle.odi.domain.support.PersistableValue
          extended by oracle.odi.domain.runtime.scheduling.Period

All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public final class Period
extends oracle.odi.domain.support.PersistableValue

Period is a value object representing a the notion of period of time. It is defined by a time value and the time unit in which the value is expressed.

It is used by OdiSchedule to represent several attributes.

Since:
11.1.1.6.0
See Also:
TimeUnti, OdiSchedule, Repetition, Serialized Form

Constructor Summary
Period(int pValue, TimeUnit pTimeUnit)
          Constructs the Period object with specified value and time unit.

 

Method Summary
 boolean equals(java.lang.Object obj)
           
 TimeUnit getTimeUnit()
          Returns the time unit.
 int getValue()
          Returns the value.
 int hashCode()
           
 java.lang.String toString()
           

 

Methods inherited from class oracle.odi.domain.support.BusinessObject
clone

 

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

 

Constructor Detail

Period

public Period(int pValue,
              TimeUnit pTimeUnit)
Constructs the Period object with specified value and time unit.
Parameters:
pValue - time value
pTimeUnit - time unit
Throws:
DomainRuntimeException - if time unit is null, or time value is not positive integer.

Method Detail

getValue

public int getValue()
Returns the value.
Returns:
the value

getTimeUnit

public TimeUnit getTimeUnit()
Returns the time unit.
Returns:
the time unit

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Skip navigation links

Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.7.0)

E17060-04


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