SalesPoint v3.3 API

sale
Class Date

java.lang.Object
  extended by sale.Date
All Implemented Interfaces:
Serializable, Time

Deprecated. As this class is not Y2K safe, it is of no use any more. Use CalendarTime instead.

public class Date
extends Object
implements Time

This class is an implementation of the Time interface.

The time is represented in the form of a simple date. The format is "dd.mm.yy".

Note: This is a very simple implementation and it is not Y2K safe!

Since:
v2.0
Author:
Sven Matznick
See Also:
Serialized Form

Constructor Summary
Date()
          Deprecated. Creates a new date with standard starting time "01.01.00".
Date(String sNewDate)
          Deprecated. Creates a new date with the given starting time.
 
Method Summary
 Date getDateValue()
          Deprecated. Convert the date to a Date object.
 Object getDefaultInterval()
          Deprecated. Get the default time interval.
 Object getTime()
          Deprecated. Get the current date.
 Comparable<String> getTimeStamp(long lStampNumber)
          Deprecated. Create and return a time stamp.
 void goAhead(Object oInterval)
          Deprecated. Increment the time by the given time interval.
 void setTime(Object oTime)
          Deprecated. Set the given date.
 String toString()
          Deprecated. Returns the current date.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Date

public Date()
Deprecated. 
Creates a new date with standard starting time "01.01.00".


Date

public Date(String sNewDate)
     throws IllegalArgumentException
Deprecated. 
Creates a new date with the given starting time.

Parameters:
sNewDate - a String representing the date to be set, format: dd.mm.yy (day.month.year)
Throws:
IllegalArgumentException - if the given String has an invalid format
Method Detail

setTime

public void setTime(Object oTime)
             throws IllegalArgumentException
Deprecated. 
Set the given date.

Specified by:
setTime in interface Time
Parameters:
oTime - a String representing the date to be set, format: dd.mm.yy (day.month.year)
Throws:
IllegalArgumentException - if the given String has an invalid format
Override:
Never

getTime

public Object getTime()
Deprecated. 
Get the current date.

Specified by:
getTime in interface Time
Returns:
a String representing the current date
Override:
Never

goAhead

public void goAhead(Object oInterval)
             throws IllegalArgumentException
Deprecated. 
Increment the time by the given time interval.

Specified by:
goAhead in interface Time
Parameters:
oInterval - the interval to increment time. Must be a String that gives the number of days by which to increment.
Throws:
IllegalArgumentException - if the given interval is no String or cannot be transformed into a long value.
Override:
Never

getDefaultInterval

public Object getDefaultInterval()
Deprecated. 
Get the default time interval.

Specified by:
getDefaultInterval in interface Time
Returns:
a String describing the default time step in days (standard: "1").
Override:
Never

getTimeStamp

public Comparable<String> getTimeStamp(long lStampNumber)
Deprecated. 
Create and return a time stamp.

Specified by:
getTimeStamp in interface Time
Parameters:
lStampNumber - the number of the stamp
Returns:
a fresh time stamp.
Override:
Never

toString

public String toString()
Deprecated. 
Returns the current date.

Overrides:
toString in class Object
Returns:
a String describing the current date
Override:
Sometimes

getDateValue

public Date getDateValue()
Deprecated. 
Convert the date to a Date object. Note: As the entire sale.Date class is not Y2K compliant, this method also is not.

Returns:
The converted date.
Since:
v2.0 (06/07/2000)

SalesPoint v3.3 API