Class Task
java.lang.Object
ch.autumo.beetroot.Model
ch.autumo.beetroot.handler.tasks.Task
- All Implemented Interfaces:
Entity, Serializable
-
Field Summary
Fields inherited from class Model
ID_INVALID, ID_M2M_PSEUDO, ID_UNASSIGNED, LOGModifier and TypeFieldDescriptionstatic final intInvalid ID; used when an object cannot be read or stored.static final intPseudo ID of an a stored model that is a many-to-many-relation-model-static final intUnassigned id; a model has been created but or loaded from database that has no id.protected static final org.slf4j.LoggerLogger. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the active value.Returns the created value.Returns the dayofmonth value.Returns the dayofweek value.Default display field.getGuid()Returns the guid value.getHour()Returns the hour value.Returns the lastexecuted value.booleanReturns the laststatus value.Returns the minute value.Returns the modified value.Returns the monthofyear value.getName()Returns the name value.getPath()Returns the path value.Class<?> Get model base class, usually overwritten by thePlantgenerator.voidsetActive(boolean active) Sets the active value.voidsetCreated(Timestamp created) Sets the created value.voidsetDayofmonth(String dayofmonth) Sets the dayofmonth value.voidsetDayofweek(String dayofweek) Sets the dayofweek value.voidSets the guid value.voidSets the hour value.voidsetLastexecuted(Timestamp lastexecuted) Sets the lastexecuted value.voidsetLaststatus(boolean laststatus) Sets the laststatus value.voidSets the minute value.voidsetModified(Timestamp modified) Sets the modified value.voidsetMonthofyear(String monthofyear) Sets the monthofyear value.voidSets the name value.voidSets the path value.Methods inherited from class Model
clone, delete, delete, deserialize, equals, exists, findFirst, findFirst, get, getAssociatedReference, getAssociatedReference, getDisplayValue, getForeignReferences, getId, getTableName, isNullable, isStored, isUnique, listAll, listReferences, read, save, save, serialize, setId, setStored, toString, update, update, where, where, where, whereModifier and TypeMethodDescriptionclone()voiddelete()Delete this entity bean!voiddelete(Connection conn) Delete this entity bean!deserialize(String json) De-serialize a JSON string to an entity.booleanstatic booleanChecks if the entity exists in the DB.static ModelGet first entity of the given entity bean with specific condition, e.g.static ModelGet first entity of the given entity bean with specific condition, e.g.Get a value from this entity except the id.getAssociatedReference(Class<?> referenceClass) Get associated (parent) entity.getAssociatedReference(String referenceBeanPropertyName) Get associated (parent) entity.Get display value of bean.Get reference entity map (all referenced entities).intgetId()Get the ID.Returns name of corresponding table.booleanisNullable(String beanPropertyName) Is the field specified by the bean property name nullable?booleanisStored()Is this entity bean stored in database?booleanIs the field specified by the bean property name unique?List all entities of the given entity bean.listReferences(Class<?> referenceClass) List referenced entities of the referenced class type.static ModelRead an entity with given ID.save()Save this entity bean to database.save(Connection conn) Save this entity bean to database.Serialize this object to JSON.voidsetId(int id) Set the ID.voidsetStored(boolean isStored) Set stored state.toString()voidupdate()Update this entity bean in database.voidupdate(Connection conn) Update this entity bean in database.List all entities of the given entity bean with specific condition, e.g.List all entities of the given entity bean with specific condition, e.g.List all entities of the given entity bean with specific condition, e.g.List all entities of the given entity bean with specific condition, e.g.
-
Constructor Details
-
Task
public Task()Default constructor.
-
-
Method Details
-
getMonthofyear
-
setMonthofyear
Sets the monthofyear value.- Parameters:
monthofyear- the new monthofyear value
-
getCreated
-
setCreated
Sets the created value.- Parameters:
created- the new created value
-
getActive
public boolean getActive()Returns the active value.- Returns:
- the active value
-
setActive
public void setActive(boolean active) Sets the active value.- Parameters:
active- the new active value
-
getMinute
-
setMinute
Sets the minute value.- Parameters:
minute- the new minute value
-
getDayofmonth
-
setDayofmonth
Sets the dayofmonth value.- Parameters:
dayofmonth- the new dayofmonth value
-
getPath
-
setPath
-
getHour
-
setHour
-
getName
-
setName
-
getGuid
-
setGuid
-
getDayofweek
-
setDayofweek
Sets the dayofweek value.- Parameters:
dayofweek- the new dayofweek value
-
getLaststatus
public boolean getLaststatus()Returns the laststatus value.- Returns:
- the laststatus value
-
setLaststatus
public void setLaststatus(boolean laststatus) Sets the laststatus value.- Parameters:
laststatus- the new laststatus value
-
getModified
-
setModified
Sets the modified value.- Parameters:
modified- the new modified value
-
getLastexecuted
-
setLastexecuted
Sets the lastexecuted value.- Parameters:
lastexecuted- the new lastexecuted value
-
getDisplayField
Description copied from class:ModelDefault display field.- Overrides:
getDisplayFieldin classModel- Returns:
- display field
-
modelClass
Description copied from class:ModelGet model base class, usually overwritten by thePlantgenerator.- Specified by:
modelClassin classModel- Returns:
- model base class
-