FlexiDate.class extends Date.class

Hi, I am pleading for help with the following.
I am trying to compile the FlexiDate class which extends from oracle.jbo.domian.Date class. The oracle.jbo.domian.Date class must contain the inner class Date$1$facClass because when I compile the FlexiDate class I receive the message "Error Type: oracle/jbo/domain/Date$facClass was not found. Both the Date and Date$facClass classes are in the same jre file which is in the classpath. What's wierd is that this error doesn't occur when I compile using Oracle Jdeveloper(Win NT) but does occur in the unix environment. Both environments are using the same JDK1.3.1 and the same libraries and classpath. Any help is much appreciated. Thanks.
null

Can you double-check that you have the jbodomorcl.zip archive correctly specified as part of your CLASSPATH in your compiletime environment? The class it's complaining about is in this archive.

Similar Messages

  • Abstract class extends other class?

    What happens when a abstract class extends other class?
    How can we use the abstract class late in other class?
    Why do we need an abstract class that extends other class?
    for example:-
    public abstract class ABC extends EFG {
    public class EFG{
    private String name="";
    private int rollno="";
    private void setName(int name)
    this.name=name;
    private String getName()
    return this.name;
    }

    shafiur wrote:
    What happens when a abstract class extends other class?Nothing special. You have defined an abstract class.
    How can we use the abstract class late in other class?Define "Late". What "other class"?
    Why do we need an abstract class that extends other class?Because it can be useful to define one.

  • Package.Class extends Package.Class ??

    Is there any way I can make a class in a package extend another class in the same package://---- File: JrcCode1.java
    package jrc;
    public class JrcCode1 {
      public JrcCode1() {
        System.out.println("JrcCode1");
    //---- File: JrcCode2.java
    package jrc;
    public class JrcCode2 extends JrcCode1 {     //cannot resolve symbol, class JrcCode1
      public JrcCode2() {
        super();
        System.out.println("JrcCode2");
    }Thanks,
    James

    The current directory is not automatically in the classpath.
    You have to set it up that way. That may be your problemI have tried doing this, and it's still the same! The first code compiles but the second code fails:
    javac -sourcepath . -classpath . JrcCode1.java
    javac -sourcepath . -classpath . JrcCode2.java
    Try extending jrc.JrcCode1. It might work, but i didnt test it outI have tried this, and it still fails:
    JrcCode2.java:3: cannot resolve symbol
    symbol : class JrcCode1
    location: package jrc
    public class JrcCode2 extends jrc.JrcCode1 {
    Any other ideas?
    Thanks alot!
    James

  • Weblogic User class extends deprecated class?

    weblogic.security.acl.User extends java.security.Identity which is a
    deprecated class for Java 1.2
    I checked the 5.1 API docs, this class still extends the
    java.security.Identity. Are there any plans to update this class or if there
    is another class we should use instead of weblogic.security.acl.User ?
    Srikanth Meenakshi

    s> weblogic.security.acl.User extends java.security.Identity which is
    s> a deprecated class for Java 1.2
    This is not a problem. It's okay to use it.
         <b
    Let us pray:
    What a Great System.
    Please Do Not Crash.
    ^G^IP@P6

  • Error 1119 when class extends another class that extends movieclip

    hiya
    i came across this problem and i have no clue why it's happening. basically, consider 2 nested movieclips on the stage, something like stage -> main -> filler.  both movieclips have instance names (main and filler).
    in the library, i set main to export for actionscript, using class A:
    package {
        import flash.display.MovieClip;
        public class A extends MovieClip {     
            public function A ():void {
                trace ('construct A');
                trace (this.filler); // should trace [movieclip] etc
    it works fine. now i change it's export settings to use class B, that extends A, and it breaks:
    package {
        import flash.display.MovieClip;
        public class B extends A {
            public function B ():void {
                trace ('construct B');
    this throws an error 1119: Access of possibly undefined property filler through a reference with static type A.
    can anyone give me a hint on that, as it works with class A, but not B extending A? i understand it was meant to work?
    many thanks

    afaik, if you dont declare super(), flash will make a call for you (but best practice is to call it always).
    but i found the "solution" in another forum.
    it seems that flash implicitly generates variables if you have instance names/symbols on the stage. there is an option to disable that under publish settings -> Actionscript version -> Settings -> automatically declare stage instances. by disabling that, we were able to declare public var filler:MovieClip; on class A, and that worked.
    although, that solution doesnt look attractive to me. the other solution posted on another forum was to make calls to this ["filler"] instead of this.filler. that seems to work fine. i guess it has to do with the automatic variable generated thing.. who knows?
    i hope that helps someone else too

  • Data class and storage class

    Hi ,
    I need some info or docs on data class and stroge class of DSO /cube.
    Regards
    tapashi

    Hi Tapashi,
    Something i found about dataclass in DSO/Cube, which might be useful to you.
    Within SAP BW following data class of DDIC objects are important:
    DDIM           Dimension Tables in BW of InfoCubes
    DFACT          Facts Table in BW of InfoCubes
    DODS           ODS Tables in BW
    These have been introduced in order to improve performance while reading/writing InfoProviders. Settings of data class are maintained in "Technical Settings -> Database storage parameters" screen of TA SE11. Data class is assigned to the database tables of the InfoCube (table RSDCUBE, RSDODSO). Notice that this assignment cannot be made by any circumstances by user, only system does this while you activate InfoProvider.
    Subsequently see overview of table RSDCUBEu2019s fields with link to data class according BW versions:
    SAP BW 3.x (parameters only affect aggregates, not the cube):
    AGGRDATCLS     Data class for aggregate fact tables (only aggregates)
    AGGRSIZCAT     Size category for aggregate fact tables
    ADIMDATCLS     Data class for aggregate dimension tables
    ADIMSIZCAT     Size category for aggregate dimension tables
    Furthermore see overview of RSDODSOu2019s fields for DSO objects as InfoProvider with link to data class:
    ODSADATCLS     Data class for table with active data of the ODS
    ODSMDATCLS     Data class for table with ODS input data
    To see all available data classes check table: DDART (DD: Data Class in Technical Settings)
    To see all available size categories check table: DGKAT (DD: Size category in technical settings)
    Hope this is helpful.
    Regards
    Snehith

  • Extending a class (newbie)

    I'm very new to Java. I'm making use of custom web classes from a proprietary application.
    I want to write my own class by extending another class. My class need to do exactly what the super class does. The super class extends another class.
    Here is how it looks,
    MY CLASS:
    public RmCopyCommand extends DwCopyCommand
    THE SUPER CLASS:
    public DwCopyCommand extends DwDocbaseCommand
    The super class, DwCopyCommand, has four methods defined (plus many inherited). To make my class, RmCopyCommand, mimic the super class, I did the following:
    1. I made a constructor
    RmCopyCommand()
                   super();
    2. I duplicated the methods
    public boolean hasTransaction()
                   return super.hasTransaction();
    I did the above to all four methods defined in the super class. I also used TRY...CATCH blocks where necessary. The source compiled.
    Off course, this doesn't work. I got a nullPointerException error. What I want to do is use the exact functionality of DwCommand, but write another method that makes a call to an inherited method.
    Could anyone tell me what I might be doing wrong?
    I hope I included enough details. If you need further details, let me know.
    Thanks,
    Moshe

    Lets go through this point by point:
    I'm very new to Java. I'm making use of custom web
    classes from a proprietary application.
    I want to write my own class by extending another
    class. My class need to do exactly what the super
    class does. The super class extends another class.Does you class really need to do exactly what the super class does? If the super class has everything you need why are you subclassing it.
    Here is how it looks,
    MY CLASS:
    public RmCopyCommand extends DwCopyCommandThe above statement is all you need followed by {} according to your description.
    THE SUPER CLASS:
    public DwCopyCommand extends DwDocbaseCommand
    The super class, DwCopyCommand, has four methods
    defined (plus many inherited). To make my class,
    RmCopyCommand, mimic the super class, I did the
    following:
    1. I made a constructor
    RmCopyCommand()
    super();
    }You only need to do this for constructors with arguments. If you don't create a default constructor, one is created for you. Also if you don't call super() in your constructor it will automatically before anything else is executed.
    2. I duplicated the methods
    public boolean hasTransaction()
    return super.hasTransaction();
    }This is unneccesary. By subclassing a class all its public and protected members are part of the sub class.
    I did the above to all four methods defined in the
    super class. I also used TRY...CATCH blocks where
    necessary. The source compiled.
    Off course, this doesn't work. I got a
    nullPointerException error. What I want to do is use
    the exact functionality of DwCommand, but write
    another method that makes a call to an inherited
    method.Nothing that you have stated here would cause that.
    Could anyone tell me what I might be doing wrong?
    I hope I included enough details. If you need further
    details, let me know.
    Thanks,
    Moshe

  • Can a Class extend a Main Class

    Can a Class extend a Class containing
    "public static void main(String[] args)"

    What sort of methods a class has doesn't determine
    whether it may be extended or not. If the class is
    marked Final determines whether it may be subclassed
    or not.
    And if it is accesible in the context that it is being used in.

  • Extend a j2se class in j2me class

    I am using eclipseme to build my project, and i have imported the j2se library jar file
    however, when i try to extend a a j2se class in j2me class
    For example,
    public class < j2me class >extends <j2se class>{
    There is a error message occur, it is:
    Error preverifying class < j2me class >
    what is the problem on it?
    Thanks

    stickbaby wrote:
    I am using eclipseme to build my project, and i have imported the j2se library jar file
    however, when i try to extend a a j2se class in j2me class
    For example,
    public class < j2me class >extends <j2se class>{
    There is a error message occur, it is:
    Error preverifying class < j2me class >
    what is the problem on it?
    what class?
    Thanks

  • Reflection with something like class MyClass T extends Date {...}

    assume you have:
    //first class
    class Message {
    //second class
    class ConcreteMessage extends Message{
    //third class
    public class WrapperBase<J extends Message> {
        private J message = null;
        public J getMessage() {
            return message;
        public void setMessage(J message) {
            this.message = message;
        public WrapperBase(J message){
            this.message = message;       
    //fourth class
    class WrapperExtended extends WrapperBase<ConcreteMessage>{
        public WrapperExtended(ConcreteMessage message) {
            super(message);
    }Reflecting on the WrapperExtended I obtain the getter(for example)
    WrapperExtended ext = new WrapperExtended(message);
    Method extMethod =ext.getClass().getMethod("getMessage", new Class[0]);If I check the class of the extMetihd return type I obtain a Message, not a ConcreteMessage as I expected. How can I retrieve the info that the method returns a ConcreteMessage?
    Development environment knows that the return type is a ConcreteMessage,so I guess there must me some reflection mechanism to retrieve it.

    If I check the class of the extMetihd return type I obtain a Message, not a ConcreteMessage as I expected. How can I retrieve the info that the method returns a ConcreteMessage?
    Development environment knows that the return type is a ConcreteMessage,so I guess there must me some reflection mechanism to retrieve it.
    Yes, for classs derived from a concrete generic instantiation (such as WrapperBase<String>) you can find the concrete return type via reflection. Here's the code that does the trick:
    import java.lang.reflect.Method;
    import java.lang.reflect.ParameterizedType;
    import java.lang.reflect.Type;
    import java.lang.reflect.TypeVariable;
    class Message {
    //second class
    class ConcreteMessage extends Message{
    //third class
    class WrapperBase<J extends Message> {
        private J message = null;
        public J getMessage() {
            return message;
        public void setMessage(J message) {
            this.message = message;
        public WrapperBase(J message){
            this.message = message;       
        public static Class<?> findConcreteReturnType(Class<? extends WrapperBase<?>> cl, String methodName, Class<?>...params) throws SecurityException, NoSuchMethodException {
             Method extMethod = cl.getMethod(methodName, params);
             if(!(extMethod.getGenericReturnType() instanceof TypeVariable))
                  return extMethod.getReturnType();
             TypeVariable<?> genericReturnType = (TypeVariable<?>)extMethod.getGenericReturnType();
             String variableName = genericReturnType.getName();
             ParameterizedType genericSuperclass = (ParameterizedType) cl.getGenericSuperclass();
             TypeVariable<Class<WrapperBase>>[] typeParameters = WrapperBase.class.getTypeParameters();
             for(int i = 0; i < typeParameters.length; ++i) {
                  if(typeParameters.getName().equals(variableName)) {
                   Type type = genericSuperclass.getActualTypeArguments()[i];
                   if(!(type instanceof Class))
                        throw new IllegalArgumentException("class "+cl.getName()+" does not resolve type parameter "+ variableName);
                   return (Class<?>)type;
         throw new InternalError();
    //fourth class
    public class WrapperExtended extends WrapperBase<ConcreteMessage>{
         public WrapperExtended(ConcreteMessage message) {
    super(message);
    public static void main(String[] args) throws SecurityException, NoSuchMethodException {
              System.out.println(WrapperBase.findConcreteReturnType(WrapperExtended.class, "getMessage"));

  • [svn:bz-trunk] 21285: Need to change _parent, privateCall and instance properties from private to protected in order to extend this class for another project

    Revision: 21285
    Revision: 21285
    Author:   [email protected]
    Date:     2011-05-20 07:53:23 -0700 (Fri, 20 May 2011)
    Log Message:
    Need to change _parent, privateCall and instance properties from private to protected in order to extend this class for another project
    Modified Paths:
        blazeds/trunk/apps/ds-console/console/ConsoleManager.as

    Revision: 21285
    Revision: 21285
    Author:   [email protected]
    Date:     2011-05-20 07:53:23 -0700 (Fri, 20 May 2011)
    Log Message:
    Need to change _parent, privateCall and instance properties from private to protected in order to extend this class for another project
    Modified Paths:
        blazeds/trunk/apps/ds-console/console/ConsoleManager.as

  • Create a "Date" class & modify, ouput incorrect - why?

    hi,
    Would you mind explaining to me what i did wrong with my code...
    when i run the main() i get:
    ..today . : . tomorrow
    mm/dd/yyyy : mm/dd/yyyy
    12/28/1949 : 00/29/0000
    12/29/1949 : 00/29/0000
    12/30/1949 : 00/29/0000
    12/31/1949 : 00/29/0000
    12/32/1949 : 00/29/0000
    12/33/1949 : 00/29/0000
    Modify the Date class of Fig.8.8 to:
    provide a method nextDay to increment the day by one. The Date object should remain in a constant state. Write a driver program that test the nextDate method in a loop.
    // Fig. 8.8: Date.java
    // Declaration of the Date class.
    //package com.deitel.jhtp3.ch08;
    import javax.swing.JOptionPane;
    public class Date extends Object {
       private int month;  // 1-12
       private int day;    // 1-31 based on month
       private int year;   // any year
       private int nextMonth;  // 1-12
       private int nextDay;    // 1-31 based on month
       private int nextYear;   // any year
       // Constructor: Confirm proper value for month;
       // call method checkDay to confirm proper
       // value for day.
       public Date( int mn, int dy, int yr )
              month = checkMonth( mn );      // validate the month
          year  = checkYear( yr );       // validate the year
          day   = checkDay( dy );        // validate the day
          nextDay = nextDate( month,day,year);
          System.out.println(
             "Date object constructor for date " + toString() );
         //utility method to check month
         private int checkMonth( int testMonth )
              if ( testMonth > 0 && testMonth <= 12 ) // validate the month
             month = testMonth;
          else {
             month = 1;
             System.out.println( "Month " + testMonth +
                                " invalid. Set to month 1." );
          return testMonth;  // leave object in consistent state
         //utility method to check year
         private int checkYear( int testYear )
              if ( testYear > 0 && testYear <= 2002 )
             year = testYear;
          else {
             year = 2002;
             System.out.println( "Year " + testYear +
                                " invalid. Set to year 2002." );
          return testYear;  // leave object in consistent state
       // Utility method to confirm proper day value
       // based on month and year.
       private int checkDay( int testDay )
          int daysPerMonth[] = { 0, 31, 28, 31, 30,
                                 31, 30, 31, 31, 30,
                                 31, 30, 31 };
          if ( testDay > 0 && testDay <= daysPerMonth[ month ] )
             return testDay;
          if ( month == 2 &&   // February: Check for leap year
               testDay == 29 &&
               ( year % 400 == 0 ||
                 ( year % 4 == 0 && year % 100 != 0 ) ) )
             return testDay;
          System.out.println( "Day " + testDay +
                              " invalid. Set to day 1." );
          return 1;  // leave object in consistent state
         private int nextDate( int mon, int da, int yer )
              //add one to day
              //does it start the next month
              //does it start the next year
          int daysEaMonth[] = { 0, 31, 28, 31, 30,
                                 31, 30, 31, 31, 30,
                                 31, 30, 31 };
              nextDay = da + 1;
                   if ( nextDay > daysEaMonth[month]){
                      nextDay = 1;
                      if (mon == 12)
                         nextMonth = 1;
                      else
                         nextMonth = mon + 1;
                      if (nextMonth == 1) nextYear = year + 1;
                   }//end of if nextDay
          return nextDay;
       // Create a String of the form month/day/year
       public String toString()
          { return month + "/" + day + "/" + year +
                   " : " + nextMonth + "/" + nextDay + "/"
                    + nextYear + "\n" ; }
    public static void main( String args[] )
       {   String result = "";
              //Date c = new Date();
          Date d = new Date( 12, 28, 1949 );
          //Date e = new Date( 7, 24, 1949 );
          for (int x = 1; x<6; x++ ){
                   d.day++;
                   result = result + d.toString();
          JOptionPane.showMessageDialog( null,
             //e.toString()+ d.toString(),
             result,
             "Testing Date Class",
             JOptionPane.INFORMATION_MESSAGE );
          System.exit( 0 );
    }//end of class Date
    *****************************************************************/

    ok, will change...
    Question regarding
    "You're not setting the values of nextMonth or nextYear anywhere."
    but i have class variables.....
    private int nextMonth; // <dont these values get assigned from the
    private int nextDay; // <function "nextDate", i mean, heck i thot
    private int nextYear; // <if they were class var's i could assign val
    private int nextDate( int mon, int da, int yer )
         nextDay = da + 1;
         if ( nextDay > daysEaMonth[month]){
            nextDay = 1;
            if (mon == 12)
               nextMonth = 1;
            else
               nextMonth = mon + 1;
            if (nextMonth == 1) nextYear = year + 1;

  • Date class is missing in docs

    Hi, could anybody give me documentation to the Oracle.jbo.Domain.Date class ?
    Why this is not documented?
    why give this class with the same name than java.util.Date ? it really turns coding hard:
    oracle.jbo.Domain.Date d1 = getMyDate();
    java.util.Date d2 = d1.toDate();
    it's really disgusting.
    null

    There is a bug logged regarding the missing javadoc in JDev 3.1. There was documentation for the Date in JDev 3.0. Apparently we missed it somehow. Below is the javadoc from JDev 3.0. Sorry for the long post, but I hope it helps.
    oracle.jbo.domain
    Class Date
    java.lang.Object
    |
    +--oracle.sql.Datum
    |
    +--oracle.sql.DATE
    |
    +--oracle.jbo.domain.Date
    public class Date
    extends oracle.sql.DATE
    implements DomainInterface, oracle.sql.CustomDatum, java.io.Serializable
    An encapsulation of Oracle SQL DATE objects as immutable Domain objects.
    Date objects consist of data (a byte array) and a Domain type code. Domain dates extend SQL dates by being convertable to and from JDBC values.
    Since:
    JDevloper 3.0
    See Also:
    Serialized Form
    Fields inherited from class oracle.sql.DATE
    BDA, BDAL, BDT, BHR, BHRL, BMN, BMNL, BMO, BMOL, BSC, BSCL, BYR, BYRL, HRZER0, MIZERO, MSD, SEZERO, YR0
    Constructor Summary
    Date()
    Creates a default Date Domain object.
    Date(byte[] value)
    Internal: Applications should not invoke this method.
    Date(Date value)
    Creates a Date identical to an existing Date.
    Date(java.sql.Date value)
    Creates a Date Domain object from a JDBC Date.
    Date(oracle.sql.DATE value)
    Creates a Date Domain object from an Oracle SQL DATE.
    Date(java.lang.Object value)
    Creates a Date Domain object from a JDBC Object.
    Date(java.lang.String value)
    Creates a Date Domain object from a Java String.
    Date(java.sql.Time value)
    Creates a Date Domain object from a JDBC Time object.
    Date(java.sql.Timestamp value)
    Creates a Date Domain object from a JDBC Timestamp object.
    Method Summary
    oracle.sql.DATE addJulianDays(int julianDay, int julianSec)
    oracle.sql.DATE addMonths(int months)
    Overrides the Oracle SQL method of the same name to return a Date Domain object.
    Number diffInMonths(Date date)
    Overrides the Oracle SQL method of the same name to return a Date Domain object.
    oracle.sql.NUMBER diffInMonths(oracle.sql.DATE date)
    boolean equals(java.lang.Object other)
    Tests this for equality with another object.
    static oracle.sql.DATE fromJulianDays(int julianDay, int julianSec)
    Overrides the Oracle SQL method of the same name to return a Date Domain object.
    static oracle.sql.DATE fromText(java.lang.String datestr, java.lang.String fmt, java.lang.String lang)
    Overrides the Oracle SQL method of the same name to return a Date Domain object.
    static oracle.sql.DATE getCurrentDate()
    Overrides the Oracle SQL method of the same name to return a Date Domain object.
    static oracle.sql.CustomDatumFactory getCustomDatumFactory()
    Internal: Applications should not invoke this method.
    java.lang.Object getData()
    Converts this to a JDBC Timestamp object.
    int hashCode()
    Computes a hash code for this.
    oracle.sql.DATE lastDayOfMonth()
    Overrides the Oracle SQL method of the same name to return a Date Domain object.
    static void main(java.lang.String[] argv)
    Internal: Applications should not invoke this method.
    oracle.sql.DATE round(java.lang.String prec)
    Overrides the Oracle SQL method of the same name to return a Date Domain object.
    oracle.sql.DATE setDayOfWeek(int day)
    Overrides the Oracle SQL method of the same name to return a Date Domain object.
    oracle.sql.Datum toDatum(oracle.jdbc.driver.OracleConnection conn)
    Internal: Applications should not invoke this method.
    oracle.sql.NUMBER toNumber()
    java.lang.String toString()
    Converts this to a textual representation.
    oracle.sql.DATE truncate(java.lang.String prec)
    Methods inherited from class oracle.sql.DATE
    checkValidity, compareTo, dateValue, diffInJulianDays, isConvertibleTo, makeJdbcArray, numberToJulianDays, stringValue, timestampValue, timeValue, toBytes, toBytes, toBytes, toBytes, toBytes, toDate, toJdbc, toJulianDays, toString, toText, toTime, toTimestamp
    Methods inherited from class oracle.sql.Datum
    asciiStreamValue, bigDecimalValue, binaryStreamValue, booleanValue, byteValue, characterStreamValue, doubleValue, floatValue, getBytes, getLength, getStream, intValue, longValue, setBytes, setShareBytes, shareBytes
    Methods inherited from class java.lang.Object
    getClass, notify, notifyAll, wait, wait, wait
    Constructor Detail
    Date
    public Date()
    Creates a default Date Domain object.
    This constructor does not create a null date: use one of the NullValue() constructors.
    Date
    public Date(byte[] value)
    Internal: Applications should not invoke this method.
    Creates a Date Domain object from the given byte array.
    Parameters:
    value - a value returned by a previous call to getBytes() on an SQL object compatable with Date.
    Date
    public Date(oracle.sql.DATE value)
    Creates a Date Domain object from an Oracle SQL DATE.
    Parameters:
    value - a DATE SQL object.
    Date
    public Date(Date value)
    Creates a Date identical to an existing Date.
    Parameters:
    value - a Date Domain object.
    Date
    public Date(java.sql.Date value)
    Creates a Date Domain object from a JDBC Date.
    Parameters:
    value - a DATE SQL object.
    Date
    public Date(java.sql.Time value)
    Creates a Date Domain object from a JDBC Time object.
    Parameters:
    value - a Time SQL object.
    Date
    public Date(java.sql.Timestamp value)
    Creates a Date Domain object from a JDBC Timestamp object.
    Parameters:
    value - a Time SQL object.
    Date
    public Date(java.lang.Object value)
    throws java.sql.SQLException
    Creates a Date Domain object from a JDBC Object.
    Parameters:
    value - an Object that is an instance of Date, Time, Timestamp, or String.
    Throws:
    java.sql.SQLException - if the object is not of one of the recognized classes.
    Date
    public Date(java.lang.String value)
    Creates a Date Domain object from a Java String.
    Parameters:
    value - a textual representation of a Date.
    Method Detail
    getCustomDatumFactory
    public static oracle.sql.CustomDatumFactory getCustomDatumFactory()
    Internal: Applications should not invoke this method.
    Initializes the Date Domain.
    This method is invoked when JBO is initialized. Applications should not call this method directly.
    Returns:
    the CustomDatumFactory for the Date Domain.
    toDatum
    public oracle.sql.Datum toDatum(oracle.jdbc.driver.OracleConnection conn)
    throws java.sql.SQLException
    Internal: Applications should not invoke this method.
    Converts this Date Domain object back into an SQL DATE object.
    Specified by:
    toDatum in interface oracle.sql.CustomDatum
    Parameters:
    conn - Not used.
    Returns:
    A Datum containing DATE object.
    Throws:
    SQLException - Never.
    getData
    public java.lang.Object getData()
    Converts this to a JDBC Timestamp object.
    Specified by:
    getData in interface DomainInterface
    Tags copied from interface: DomainInterface
    Returns:
    a formatted value object.
    toString
    public java.lang.String toString()
    Converts this to a textual representation.
    Overrides:
    toString in class java.lang.Object
    equals
    public boolean equals(java.lang.Object other)
    Tests this for equality with another object. The argument is converted to a Date object, if necessary.
    Overrides:
    equals in class oracle.sql.Datum
    Parameters:
    other - an arbitrary Object.
    Returns:
    true if conversion was successful and the converted argument is identical to this.
    hashCode
    public int hashCode()
    Computes a hash code for this.
    Overrides:
    hashCode in class java.lang.Object
    Returns:
    the hash code of this.
    addJulianDays
    public oracle.sql.DATE addJulianDays(int julianDay,
    int julianSec)
    Overrides:
    addJulianDays in class oracle.sql.DATE
    Returns:
    a Date Domain object.
    addMonths
    public oracle.sql.DATE addMonths(int months)
    Overrides the Oracle SQL method of the same name to return a Date Domain object.
    Overrides:
    addMonths in class oracle.sql.DATE
    See Also:
    "oracle.sql.DATE"
    diffInMonths
    public Number diffInMonths(Date date)
    Overrides the Oracle SQL method of the same name to return a Date Domain object.
    See Also:
    "oracle.sql.DATE"
    diffInMonths
    public oracle.sql.NUMBER diffInMonths(oracle.sql.DATE date)
    Overrides:
    diffInMonths in class oracle.sql.DATE
    getCurrentDate
    public static oracle.sql.DATE getCurrentDate()
    Overrides the Oracle SQL method of the same name to return a Date Domain object.
    See Also:
    "oracle.sql.DATE"
    fromJulianDays
    public static oracle.sql.DATE fromJulianDays(int julianDay,
    int julianSec)
    Overrides the Oracle SQL method of the same name to return a Date Domain object.
    See Also:
    "oracle.sql.DATE"
    fromText
    public static oracle.sql.DATE fromText(java.lang.String datestr,
    java.lang.String fmt,
    java.lang.String lang)
    Overrides the Oracle SQL method of the same name to return a Date Domain object.
    See Also:
    "oracle.sql.DATE"
    lastDayOfMonth
    public oracle.sql.DATE lastDayOfMonth()
    Overrides the Oracle SQL method of the same name to return a Date Domain object.
    Overrides:
    lastDayOfMonth in class oracle.sql.DATE
    See Also:
    "oracle.sql.DATE"
    round
    public oracle.sql.DATE round(java.lang.String prec)
    Overrides the Oracle SQL method of the same name to return a Date Domain object.
    Overrides:
    round in class oracle.sql.DATE
    See Also:
    "oracle.sql.DATE"
    setDayOfWeek
    public oracle.sql.DATE setDayOfWeek(int day)
    Overrides the Oracle SQL method of the same name to return a Date Domain object.
    Overrides:
    setDayOfWeek in class oracle.sql.DATE
    See Also:
    "oracle.sql.DATE"
    toNumber
    public oracle.sql.NUMBER toNumber()
    Overrides:
    toNumber in class oracle.sql.DATE
    Returns:
    a Date Domain object.
    truncate
    public oracle.sql.DATE truncate(java.lang.String prec)
    Overrides:
    truncate in class oracle.sql.DATE
    Returns:
    a Date Domain object.
    main
    public static void main(java.lang.String[] argv)
    throws java.sql.SQLException
    Internal: Applications should not invoke this method.-- Brian

  • Extending component class

    Just recently wrote a diary applet that includes all twelve months of the year and thier corresponding days in month panels. The user can cylcle through each year and the panels change accordingly. User can also select and de-select days of the week in any month using left and right mouse clicks respectivley.
    The individual months are painted to a Panel object and I use mouselisteners to determine x,y co-ordinates of the pointer to determine which days to colour as selected.
    However yesterday I was given a new spec that requires each day selected to "remember" its color, year, month, location and was advised to create each individual day in my own class extending Component, not to use MouseEvents but Action events instead (did I mention I'm restricted to using Java 1.1!).
    Could anyone explain what needs to be done to produce a months worth of days as a calendar using a class that extends Component. Cheers.

    Each of your days is essentially a toggle/radio button, they can be selected and deselected. Ignore what they look like for now - it's the functionality that's important.
    Each day component is responsible for determining whether it's been clicked or not.
    Your month panel is then simply a grid of these (perhaps with headers etc.).
    Your year display is just a card layout (or tabbed pane or whatever) of various month panels.
    Here's an example of how to code up a simple day component:
    public class DayComponent extends Component implements MouseListener
      // The date that this component represents
      // Could actually be a Date but we'll keep it simple for now
      private int day;
      // Whether this day is selected
      private boolean selected;
      public DayComponent(int day)
        this.day = day;
        selected = false;
        // This component listens for mouse events over itself
        addMouseListener(this);
      public void setSelected(boolean selected)
        this.selected = selected;
        repaint(); // Causes this component to update its background
      public boolean isSelected()
        return selected;
      public Dimension getPreferredSize()
        return new Dimension(20, 20); // Or something
      public void paint(Graphics g)
        g.setColor(selected?Color.lightGray:Color.yellow); // For example
        g.fillRect(0, 0, getSize().width, getSize().height);
        g.setColor(Color.black);
        g.drawString(String.valueOf(day), 10, 10); // Work out the position properly...
      public void mouseEntered(MouseEvent e)
      public void mouseExired(MouseEvent e)
      public void mousePressed(MouseEvent e)
      public void mouseReleased(MouseEvent e)
      public void mouseClicked(MouseEvent e)
        // Toggle the selection state of this button when the mouse is clicked
        setSelected(!selected);
    }That's really all there is to it. Storing the state of the buttons to the hard drive or somewhere else is a different matter.
    If you think about what this is doing, it's basically just a radio button so you might find it neater to actually extend something like Button, JButton, JToggleButton etc. to get even more advanced behaviour. This is certainly worth doing eventually since you'll want to avoid writing layout and painting code if you can help it ('cos it can get messy).
    Hope this helps.

  • Coldfusion create instance of class from data element when cosuming a webservice

    I am calling the following wsdl via cfobject https://services-staging.labcorpsolutions.com/webservice/services/LabcorpOTS/wsdl/LabcorpO TS.wsdl
    I am attempting to call the following method registerDonor(java.lang.String, java.lang.String, com.labcorp.ots.ws.data.CreateRegistrationRequest) which references the CreateRegistrationRequest data element.
    I haven't been successful in creating an instance of the CreateRegistrationRequest class and setting values of its members, as well as the Phone class which is also a data element.
    Any assistance would be greatly appreciated in creating instances of methods located in the targetNamespace="http://data.ws.ots.labcorp.com" of the wsdl.
    Thanks

    Thanks for the explanation and example. At first, I didn't understand what you were getting at, but after reading "Using Top-Level Containers" and "How to Use Root Panes" java tutorials it made much more sense. Unfortunately, the books I've read up to this point, did not cover those topics at all. The books simply stated that the first step in creating a Swing gui was to extend the JFrame, or JApplet, or etc.
    Unfortunately, my original problem persists. I continue to get compile-time errors such as:
    TestUserInterface.java:5: cannot find symbol
    symbol: class UserInterface
    location: class projects.web.TestUserInterface
                          UserInterface ui = new UserInterface(); Anyone know why?
    Both the classes are in the same named packaged. Below is my code:
    package projects.web;
    import java.awt.*;
    import javax.swing.*;
    public class UserInterface extends JFrame{
         JPanel menuPanel = new JPanel();
         JPanel contentPanel = new JPanel();
         JPanel selectionPanel = new JPanel();
         JButton save = new JButton("Save");
         JButton addFiles = new JButton("Add");
         public UserInterface(){
         super("File Upload");
         setSize(500, 500);
         menuPanel.add(addFiles);
         selectionPanel.add(save);
         setLayout(new BorderLayout());
         add(menuPanel, BorderLayout.NORTH);
         add(contentPanel, BorderLayout.CENTER);
         add(selectionPanel, BorderLayout.SOUTH);
         } // end constructor
    } // end UserInterface class
    package projects.web;
    public class TestUserInterface{
         public static void main(String[] args){
              UserInterface ui = new UserInterface();
    } // end TestUserInterface class

Maybe you are looking for

  • Goods receipt for sales order (sample for inspection)

    Hi Experts Is it possible to enter goods receipt for a sales order? This process is required for collecting sample from customer for carryingout testing of the sample. Please suggest the doc types and process steps. warm regards ram

  • Execute_query after on-insert trigger

    Hello. I use on-insert trigger to insert data into database and then i want to execute_query so i can see all records including the last one i inserted. How can i workaround the problem with using execute_query or go_item in (or after) on-insert trig

  • Simple Select Query Taking 5-10s

    We have a web server on the same lan as the DB server. A simple select * from tablename (~100 entries) is taking anywhere from 30ms to 10 seconds lan. ASP code on the web server provides instant (30ms) queries. Ping is never <1ms. If I point to a rem

  • Error while trying to initialize database (-8008)

    I get error -8008 when trying to connect to a company through ASP.NET.  I have another winforms program which runs the same code and connects OK so I believe it is related to the ASPNET account.  The code runs fine on my development environment. Is t

  • Iphone 4s Halo/ White edge around screen

    Please help!! I replaced the screen on my 4S. When switched on it works perfectly except a white transparent "halo" around the outside of the screen. Its like the brightness is too high for 10mm all the way around the edge is the best way of describi