All Packages Class Hierarchy This Package Previous Next Index
Class icc.db.Action
java.lang.Object
|
+----icc.db.Action
- public class Action
- extends Object
- implements Serializable
the Action class represents the information concerning a creation
or editing action on a document, link or project.
This information consists of the date (and time) and author.
- See Also:
- File, Link, Project
-
Action(Integer, Date)
- Allocates an Action object with the specified author and date.
-
Action(Integer, String)
- Allocates an Action object with the specified author and date.
-
adjust()
- Adjusts the date forward by two and a half hours.
-
adjust(Date, int, int)
-
-
author()
- Returns the author identifier for this action.
-
date()
- Returns the date for this action.
-
dateString()
- Returns the date and time for this action as a string.
-
format(Date)
-
-
get(Date, int)
-
-
getAuthor()
- Returns the author identifier for this action.
-
getTime()
- Returns the date for this action.
-
parse(String)
-
-
reAdjust(Date)
- Adjusts the date backward by two and a half hours.
-
set(int, int, int, int, int)
-
-
setLocale(Locale)
- Sets the locale used when parsing and formatting dates.
Action
public Action(Integer author,
String date)
- Allocates an Action object with the specified author and date.
- Parameters:
- author - a partner identifier
- date - the date and time as a string
- See Also:
- setLocale
Action
public Action(Integer author,
Date date)
- Allocates an Action object with the specified author and date.
- Parameters:
- author - a partner identifier
- date - the date and time
author
public Integer author()
- Returns the author identifier for this action.
- Returns:
- the author identifier
date
public Date date()
- Returns the date for this action.
- Returns:
- the action date
getAuthor
public Integer getAuthor()
- Returns the author identifier for this action.
- Returns:
- the author identifier
getTime
public long getTime()
- Returns the date for this action.
- Returns:
- the action date
dateString
public String dateString()
- Returns the date and time for this action as a string.
- Returns:
- the action date string
- See Also:
- setLocale
adjust
Action adjust()
- Adjusts the date forward by two and a half hours.
During summer time, this should be one and a half hours.
The purpose of this function is to make up for an error that occurs
when a date in the project database is converted to a Java date.
- Returns:
- this action
reAdjust
static Date reAdjust(Date date)
- Adjusts the date backward by two and a half hours.
During summer time, this should be one and a half hours.
The purpose of this function is to make up for an error that occurs
when a Java date is converted to a date in the project database.
- Returns:
- this action
setLocale
public static void setLocale(Locale newle)
- Sets the locale used when parsing and formatting dates.
The default locale equals Locale.GERMANY.
- Parameters:
- newle - the new locale
parse
static Date parse(String date)
format
static String format(Date date)
set
static Date set(int year,
int month,
int day,
int hour,
int minute)
get
static int get(Date date,
int field)
adjust
static Date adjust(Date date,
int field,
int distance)
All Packages Class Hierarchy This Package Previous Next Index
This website has been archived and is no longer maintained.