public class NewsData extends BasicData implements NameableData, RemovableData, RegisteredData
News
,
Developer documentation: Other classesModifier and Type | Field and Description |
---|---|
private String |
description |
private Date |
endDate |
private Date |
entryDate |
private String |
name |
private Date |
newsDate |
private Integer |
removedBy |
private Date |
startDate |
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
Constructor and Description |
---|
NewsData() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Get the description for the item.
|
Date |
getEndDate()
Get the last day this news item should be shown.
|
Date |
getEntryDate()
Get the date this item was added to the database.
|
String |
getName()
Get the name of the item.
|
Date |
getNewsDate()
Get the news date of this news item.
|
Integer |
getRemovedBy()
Get the ID of the user that removed this item.
|
Date |
getStartDate()
Get the first day this news item should be shown.
|
void |
setDescription(String description)
Set the description for the item.
|
void |
setEndDate(Date endDate) |
void |
setEntryDate(Date entryDate) |
void |
setName(String name)
Set the name of the item.
|
void |
setNewsDate(Date newsDate) |
void |
setRemovedBy(Integer removedBy)
Set the ID of the user that removed this item or null
to restore the item.
|
void |
setStartDate(Date startDate) |
equals, getId, getVersion, hashCode, setId, setVersion, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getVersion
private String name
private String description
private Integer removedBy
private Date entryDate
private Date startDate
private Date newsDate
private Date endDate
public String getName()
NameableData
getName
in interface NameableData
String
with the name of the itempublic void setName(String name)
NameableData
MAX_NAME_LENGTH
constant.setName
in interface NameableData
name
- The new name for the itempublic String getDescription()
NameableData
getDescription
in interface NameableData
String
with a description of the itempublic void setDescription(String description)
NameableData
MAX_DESCRIPTION_LENGTH
constant.setDescription
in interface NameableData
description
- The new description for the itempublic Integer getRemovedBy()
RemovableData
getRemovedBy
in interface RemovableData
public void setRemovedBy(Integer removedBy)
RemovableData
setRemovedBy
in interface RemovableData
public Date getEntryDate()
RegisteredData
getEntryDate
in interface RegisteredData
public void setEntryDate(Date entryDate)
public Date getStartDate()
public void setStartDate(Date startDate)
public Date getNewsDate()
public void setNewsDate(Date newsDate)
public Date getEndDate()
public void setEndDate(Date endDate)