|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.mmbase.util.functions.FunctionProvider
org.mmbase.module.core.MMTable
org.mmbase.module.core.MMObjectBuilder
org.mmbase.module.builders.DayMarkers
public class 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 String |
FIELD_DAYCOUNT
|
static String |
FIELD_MARK
|
static long |
MILLISECONDS_IN_A_DAY
|
static long |
SECONDS_IN_A_DAY
|
| Fields inherited from class org.mmbase.module.core.MMObjectBuilder |
|---|
AGE_PARAMETERS, broadCastChanges, DEFAULT_ALINEA, DEFAULT_EOL, description, descriptions, EVENT_TYPE_LOCAL, EVENT_TYPE_REMOTE, FIELD_NUMBER, FIELD_OBJECT_TYPE, FIELD_OWNER, fields, genericBlobCache, getFunctionsFunction, GUI_INDICATOR, GUI_PARAMETERS, guiFunction, infoFunction, internalVersion, nodeCache, oType, pluralNames, searchAge, singularNames, SYSTEM_OWNER, TEMPNODE_DEFAULT_SIZE, TMP_FIELD_EXISTS, TMP_FIELD_NUMBER, virtual, WRAP_PARAMETERS, wrapFunction |
| Fields inherited from class org.mmbase.module.core.MMTable |
|---|
maxNodesFromQuery, mmb, storageConnector, tableName |
| Fields inherited from class org.mmbase.util.functions.FunctionProvider |
|---|
functions, getFunctions |
| Constructor Summary | |
|---|---|
DayMarkers()
|
|
| Method Summary | |
|---|---|
int |
getAge(int nodeNumber)
Returns the age, in days, of a node. |
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_, and also _not an age_! |
int |
getDayCountByObject(int number)
|
String |
getLocaleGUIIndicator(Locale locale,
MMObjectNode node)
Returns gui information for a specific node. |
int |
getMonthsByDayCount(int daycount)
|
boolean |
init()
Calculate smallestMark, and smallestDay. |
String |
replace(PageInfo sp,
StringTokenizer command)
Scan. |
void |
shutdown()
clean all acquired resources, because system is shutting down |
| Methods inherited from class org.mmbase.module.core.MMTable |
|---|
count, count, created, getFullTableName, getMMBase, getNode, getNodes, getNodes, getNodes, getNodeType, getStorageConnector, getTableName, search, searchVector, setMMBase, setTableName, size |
| Methods inherited from class org.mmbase.util.functions.FunctionProvider |
|---|
addFunction, createParameters, getFunction, getFunctions, getFunctionValue |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String FIELD_DAYCOUNT
public static final String FIELD_MARK
public static final long SECONDS_IN_A_DAY
public static final long MILLISECONDS_IN_A_DAY
| Constructor Detail |
|---|
public DayMarkers()
| Method Detail |
|---|
public boolean init()
init in class MMObjectBuilderMMObjectBuilder.create()public void shutdown()
MMObjectBuilder
shutdown in class MMObjectBuilderpublic int getAge(int nodeNumber)
public int getDayCount()
public int getDayCountAge(int daysold)
daysold - a time in days ago.
public String replace(PageInfo sp,
StringTokenizer command)
replace in class MMObjectBuildersp - The PageInfo (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 Date getDate(MMObjectNode node)
node - The node of which the date is wanted
Date which is the date
public String getLocaleGUIIndicator(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 | |||||||||