Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.2.0)

E17483-03


oracle.jbo.domain
Class TimestampLTZ

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
                  extended by oracle.jbo.domain.TimestampLTZ

All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable, DomainInterface, KeyAttributeInterface, NativeTypeDomainInterface, XMLDomainInterface, XMLDomainWriter, oracle.jdbc.internal.ObjectData, ORAData

public class TimestampLTZ
extends TimestampTZ
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
TimestampLTZ()
           
TimestampLTZ(java.lang.String value)
          Creates a TimestampLTZ Domain object from a Java String.
TimestampLTZ(java.lang.String value, boolean bConvertToUserTZ)
          Creates a TimestampLTZ Domain object from a Java String.
TimestampLTZ(java.lang.String value, java.util.Calendar cal)
          Creates a TimestampLTZ Domain object from a Java String.
TimestampLTZ(java.sql.Timestamp value)
          Creates a TimestampLTZ Domain object from a JDBC Timestamp.
TimestampLTZ(Timestamp value)
          Create a TimestampLTZ instance from a oracle.jbo.domain.Timestamp.
TimestampLTZ(java.sql.Timestamp value, boolean bConvertToUserTZ)
          Creates a TimestampLTZ Domain object from a JDBC Timestamp.
TimestampLTZ(java.sql.Timestamp value, java.util.Calendar cal)
          Creates a TimestampLTZ 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

TimestampLTZ

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

TimestampLTZ

public TimestampLTZ(java.sql.Timestamp value)
             throws java.sql.SQLException
Creates a TimestampLTZ Domain object from a JDBC Timestamp.
Parameters:
value - a TIMESTAMP SQL object.
Throws:
java.sql.SQLException

TimestampLTZ

public TimestampLTZ(java.sql.Timestamp value,
                    boolean bConvertToUserTZ)
Creates a TimestampLTZ 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.

TimestampLTZ

public TimestampLTZ(java.sql.Timestamp value,
                    java.util.Calendar cal)
Creates a TimestampLTZ Domain object from a JDBC Timestamp.
Parameters:
value - a TIMESTAMP SQL object.
cal - converts the value to the timezone in the cal argument.

TimestampLTZ

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

TimestampLTZ

public TimestampLTZ(java.lang.String value)
Creates a TimestampLTZ Domain object from a Java String.
Parameters:
value - a textual representation of a Timestamp.

TimestampLTZ

public TimestampLTZ(java.lang.String value,
                    boolean bConvertToUserTZ)
Creates a TimestampLTZ 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.

TimestampLTZ

public TimestampLTZ(java.lang.String value,
                    java.util.Calendar cal)
Creates a TimestampLTZ 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.
Overrides:
validate in class TimestampTZ

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 TimestampTZ
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 TimestampTZ

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 TimestampTZ

getXMLDomainFactory

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

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.2.0)

E17483-03


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