|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.module.core.MMTable
org.mmbase.module.core.MMObjectBuilder
org.mmbase.module.builders.DayMarkers
Daymarkers are used to calculate the age of MMBase objects. Every day a daymarker is added to the daymarks table. Such an entry consists of a daycount (number of days from 1970), and a count (current object number of that day).
| Field Summary | |
static java.lang.String |
FIELD_DAYCOUNT
|
| Fields inherited from class org.mmbase.module.core.MMObjectBuilder |
AGE_PARAMETERS, broadcastChanges, database, DEFAULT_ALINEA, DEFAULT_EOL, description, descriptions, fields, GUI_PARAMETERS, listCache, nodeCache, OBJ2TYPE_MAX_SIZE, oType, REPLACE_CACHE, searchAge, sortedDBLayout, TEMPNODE_DEFAULT_SIZE, TemporaryNodes, virtual |
| Fields inherited from class org.mmbase.module.core.MMTable |
mmb, tableName |
| Constructor Summary | |
DayMarkers()
set the current day. |
|
| Method Summary | |
int |
getAge(MMObjectNode node)
Returns the age, in days, of a node. |
java.util.Date |
getDate(MMObjectNode node)
Returns the date of a daymarker |
int |
getDayCount()
The current day count. |
int |
getDayCountAge(int daysold)
Given an age, this function returns a mark, _not a day count_. |
int |
getDayCountByObject(int number)
|
java.lang.String |
getLocaleGUIIndicator(java.util.Locale locale,
MMObjectNode node)
Returns gui information for a specific node. |
int |
getMonthsByDayCount(int daycount)
|
boolean |
init()
Calculate smallestMark, and smallestDay. |
void |
probe()
This gets called every hour to see if the day has past. |
java.lang.String |
replace(scanpage sp,
java.util.StringTokenizer command)
Scan. |
| Methods inherited from class org.mmbase.module.core.MMTable |
created, getFullTableName, getTableName, size |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static java.lang.String FIELD_DAYCOUNT
| Constructor Detail |
public DayMarkers()
| Method Detail |
public boolean init()
init in class MMObjectBuilderMMObjectBuilder.create()public void probe()
public int getAge(MMObjectNode node)
getAge in class MMObjectBuildernode - The node whose age to determine
public int getDayCount()
public int getDayCountAge(int daysold)
daysold - a time in days ago.
public java.lang.String replace(scanpage sp,
java.util.StringTokenizer command)
replace in class MMObjectBuildersp - The scanpage (containing http and user info) that calls the functioncommand - a list of strings that describe the (sub)command to execute
Stringpublic int getDayCountByObject(int number)
public int getMonthsByDayCount(int daycount)
public java.util.Date getDate(MMObjectNode node)
node - The node of which the date is wanted
Date which is the date
public java.lang.String getLocaleGUIIndicator(java.util.Locale locale,
MMObjectNode node)
getLocaleGUIIndicator in class MMObjectBuildernode - The node of which the gui information is wanted
String in which the current date is shown
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||