Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.4.0)

E10653-05

oracle.jbo.domain
Class TimestampTZ

java.lang.Object
  extended by oracle.sql.Datum
      extended by oracle.sql.TIMESTAMP
          extended by oracle.jbo.domain.Timestamp
              extended by oracle.jbo.domain.TimestampTZ
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable, DomainInterface, KeyAttributeInterface, NativeTypeDomainInterface, XMLDomainInterface, XMLDomainWriter, oracle.jdbc.internal.ObjectData, ORAData
Direct Known Subclasses:
TimestampLTZ

public class TimestampTZ
extends Timestamp

See Also:
Serialized Form

Field Summary
 
Fields inherited from class oracle.sql.TIMESTAMP
BUILD_DATE, SIZE_DATE, SIZE_TIMESTAMP, SIZE_TIMESTAMP_NOFRAC, TRACE
 
Constructor Summary
TimestampTZ()
           
TimestampTZ(java.lang.String value)
          Creates a TimestampTZ Domain object from a Java String.
TimestampTZ(java.lang.String value, boolean bConvertToUserTZ)
          Creates a TimestampTZ Domain object from a Java String.
TimestampTZ(java.lang.String value, java.util.Calendar cal)
          Creates a TimestampTZ Domain object from a Java String.
TimestampTZ(java.sql.Timestamp value)
          Creates a TimestampTZ Domain object from a JDBC Timestamp.
TimestampTZ(Timestamp value)
          Create a TimestampTZ instance from a oracle.jbo.domain.Timestamp.
TimestampTZ(java.sql.Timestamp value, boolean bConvertToUserTZ)
          Creates a TimestampTZ Domain object from a JDBC Timestamp.
TimestampTZ(java.sql.Timestamp value, java.util.Calendar cal)
          Creates a TimestampTZ Domain object from a JDBC Timestamp.
 
Method Summary
static ORADataFactory getORADataFactory()
           
static XMLDomainReaderFactory getXMLDomainFactory(java.lang.Class attrClass)
          Internal: Applications should not use this method.
 void setContext(DomainOwnerInterface owner, Transaction trans, java.lang.Object ctx)
          Internal: Applications should not invoke this method.
 Datum toDatum(java.sql.Connection conn)
          Internal: Applications should not invoke this method.
 java.lang.String toString()
          For testing purposes only: converts this to a textual representation.
protected  void validate()
          Implements domain validation logic and throws a JboException on error.
 
Methods inherited from class oracle.jbo.domain.Timestamp
compareTo, dateValue, equals, getData, getNativeObject, getSerializedDomainXML, getTime, getValue, getXMLContentNode, hashCode, printXMLDefinition, toTimestamp
 
Methods inherited from class oracle.sql.TIMESTAMP
getNanos, isConvertibleTo, makeJdbcArray, stringValue, timestampValue, timestampValue, timeValue, TimeZoneConvert, toBytes, toBytes, toBytes, toBytes, toBytes, toBytes, toBytes, toDate, toDATE, toJdbc, toString, toTime, toTimestamp, toTimestamp
 
Methods inherited from class oracle.sql.Datum
asciiStreamValue, bigDecimalValue, binaryStreamValue, booleanValue, byteValue, characterStreamValue, compareBytes, doubleValue, floatValue, getBytes, getLength, getStream, intValue, longValue, setBytes, setShareBytes, shareBytes, stringValue, timeValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface oracle.jbo.domain.KeyAttributeInterface
getBytes, setBytes
 

Constructor Detail

TimestampTZ

public TimestampTZ()
            throws java.sql.SQLException
Throws:
java.sql.SQLException

TimestampTZ

public TimestampTZ(java.sql.Timestamp value)
            throws java.sql.SQLException
Creates a TimestampTZ Domain object from a JDBC Timestamp.

Parameters:
value - a TIMESTAMP SQL object.
Throws:
java.sql.SQLException

TimestampTZ

public TimestampTZ(java.sql.Timestamp value,
                   boolean bConvertToUserTZ)
Creates a TimestampTZ Domain object from a JDBC Timestamp.

Parameters:
value - a TIMESTAMP SQL object.
bConvertToUserTZ - if this flag is true then the timestamp is converted to the user time zone. User Time zone is obtained from the ADF Context. It is typically configured in the application settings.

TimestampTZ

public TimestampTZ(java.sql.Timestamp value,
                   java.util.Calendar cal)
Creates a TimestampTZ Domain object from a JDBC Timestamp.

Parameters:
value - a TIMESTAMP SQL object.
cal - converts the value to the timezone in the cal argument.

TimestampTZ

public TimestampTZ(Timestamp value)
            throws java.sql.SQLException
Create a TimestampTZ instance from a oracle.jbo.domain.Timestamp.

Throws:
java.sql.SQLException

TimestampTZ

public TimestampTZ(java.lang.String value)
Creates a TimestampTZ Domain object from a Java String.

Parameters:
value - a textual representation of a Timestamp.

TimestampTZ

public TimestampTZ(java.lang.String value,
                   boolean bConvertToUserTZ)
Creates a TimestampTZ Domain object from a Java String.

Parameters:
value - a textual representation of a Timestamp.
bConvertToUserTZ - if this flag is true then the timestamp is converted to the user time zone. User Time zone is obtained from the ADF Context. It is typically configured in the application settings.

TimestampTZ

public TimestampTZ(java.lang.String value,
                   java.util.Calendar cal)
Creates a TimestampTZ Domain object from a Java String.

Parameters:
value - a textual representation of a Timestamp.
cal - converts the value to the timezone in the cal argument.
Method Detail

validate

protected void validate()
Implements domain validation logic and throws a JboException on error.


getORADataFactory

public static ORADataFactory getORADataFactory()

toDatum

public Datum toDatum(java.sql.Connection conn)
              throws java.sql.SQLException
Description copied from class: Timestamp
Internal: Applications should not invoke this method.

Converts this Timestamp Domain object back into an SQL TIMESTAMP object.

Specified by:
toDatum in interface ORAData
Overrides:
toDatum in class Timestamp
Parameters:
conn - OracleConnection Not used.
Returns:
A Datum containing TIMESTAMP object.
Throws:
java.sql.SQLException

setContext

public void setContext(DomainOwnerInterface owner,
                       Transaction trans,
                       java.lang.Object ctx)
Description copied from class: Timestamp
Internal: Applications should not invoke this method.

Specified by:
setContext in interface DomainInterface
Overrides:
setContext in class Timestamp

toString

public java.lang.String toString()
Description copied from class: Timestamp
For testing purposes only: converts this to a textual representation.

Overrides:
toString in class Timestamp

getXMLDomainFactory

public static XMLDomainReaderFactory getXMLDomainFactory(java.lang.Class attrClass)
Internal: Applications should not use this method.


Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.4.0)

E10653-05

Copyright © 1997, 2011, Oracle. All rights reserved.