public class DayMarkers extends MMObjectBuilder
| Modifier and Type | Field and Description |
|---|---|
static String |
FIELD_DAYCOUNT |
static String |
FIELD_MARK |
static long |
MILLISECONDS_IN_A_DAY |
static long |
SECONDS_IN_A_DAY |
AGE_PARAMETERS, broadCastChanges, DEFAULT_ALINEA, DEFAULT_EOL, description, descriptions, EVENT_TYPE_LOCAL, EVENT_TYPE_REMOTE, FIELD_NUMBER, FIELD_OBJECT_TYPE, FIELD_OWNER, fields, genericBlobCache, getFunctions, GUI_INDICATOR, GUI_PARAMETERS, guiFunction, infoFunction, internalVersion, nodeCache, oType, pluralNames, searchAge, singularNames, SYSTEM_OWNER, TEMPNODE_DEFAULT_SIZE, temporaryNodes, TMP_FIELD_EXISTS, TMP_FIELD_NUMBER, virtual, WRAP_PARAMETERS, wrapFunctionmaxNodesFromQuery, mmb, storageConnector, tableNamefunctions| Constructor and Description |
|---|
DayMarkers() |
| Modifier and Type | Method and Description |
|---|---|
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
|
addEventListener, addField, addLocalObserver, addRemoteObserver, broadcastChanges, checkAddTmpField, clearBlobCache, commit, create, createAlias, createAlias, createIfNotExists, delete, equals, equals, executeFunction, executeFunction, fieldLocalChanged, getAncestors, getBlobCache, getClassName, getConfigFile, getConfigResource, getDataTypeCollector, getDBState, getDBType, getDefaultTeaser, getDefaultUrl, getDescendants, getDescription, getDescription, getDescriptions, getEmptyNode, getField, getFieldNames, getFields, getFields, getFunction, getFunctionParameters, getFunctions, getGUIIndicator, getGUIIndicator, getGUIIndicator, getHTML, getInitParameter, getInitParameters, getInitParameters, getInternalVersion, getList, getLocaleGUIIndicator, getMachineName, getMaintainer, getNewNode, getNewTmpNode, getNextField, getNextField, getNode, getNode, getNode, getNodeFromCache, getNodeGUIIndicator, getNumber, getObjectType, getObjectValue, getParentBuilder, getPluralName, getPluralName, getPluralNames, getRelations_main, getSearchAge, getShort, getShortedByte, getShortedInputStream, getShortedText, getSingularName, getSingularName, getSingularNames, getSmartPath, getTmpNode, getURLEncode, getValue, getVersion, getWAP, getXMLPath, hasField, hashCode, hashCode, hostname_function, insert, insert, isExtensionOf, isNodeCached, isNull, isVirtual, loadInitParameters, newFunctionInstance, nodeLocalChanged, nodeRemoteChanged, notify, notify, preCommit, process, removeEventListener, removeField, removeLocalObserver, removeNode, removeRelations, removeRemoteObserver, removeSyncNodes, safeCache, sendFieldChangeSignal, setDefaults, setDescription, setDescriptions, setFields, setInitParameter, setMaintainer, setPluralNames, setSearchAge, setSingularNames, setUniqueValue, setUniqueValue, setValue, setValue, setVersion, setXMLPath, testValidData, toString, toString, update, updateFields, wrapcount, count, created, getFullTableName, getMMBase, getNode, getNodes, getNodes, getNodes, getNodeType, getStorageConnector, getTableName, search, searchVector, setMMBase, setTableName, sizeaddFunction, createParameters, getFunction, getFunctions, getFunctionValuepublic 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
public boolean init()
init in class MMObjectBuilderMMObjectBuilder.create()public void shutdown()
MMObjectBuildershutdown 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 executeStringpublic int getDayCountByObject(int number)
public int getMonthsByDayCount(int daycount)
public Date getDate(MMObjectNode node)
node - The node of which the date is wantedDate which is the datepublic String getLocaleGUIIndicator(Locale locale, MMObjectNode node)
getLocaleGUIIndicator in class MMObjectBuildernode - The node of which the gui information is wantedString in which the current date is shownMMBase 1.9-SNAPSHOT - ${javadoctimestamp}