public class NewsData extends BasicData implements NameableData, RemovableData, RegisteredData
News
,
Developer documentation: Other classesModifier and Type | Field and Description |
---|---|
private java.lang.String |
description |
private java.util.Date |
endDate |
private java.util.Date |
entryDate |
private java.lang.String |
name |
private java.util.Date |
newsDate |
private boolean |
removed |
private java.util.Date |
startDate |
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
Constructor and Description |
---|
NewsData() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Get the description for the item.
|
java.util.Date |
getEndDate()
Get the last day this news item should be shown.
|
java.util.Date |
getEntryDate()
Get the date this item was added to the database.
|
java.lang.String |
getName()
Get the name of the item.
|
java.util.Date |
getNewsDate()
Get the news date of this news item.
|
java.util.Date |
getStartDate()
Get the first day this news item should be shown.
|
boolean |
isRemoved()
Check if the removed flag is set for this item.
|
void |
setDescription(java.lang.String description)
Set the description for the item.
|
void |
setEndDate(java.util.Date endDate) |
void |
setEntryDate(java.util.Date entryDate) |
void |
setName(java.lang.String name)
Set the name of the item.
|
void |
setNewsDate(java.util.Date newsDate) |
void |
setRemoved(boolean removed)
Set the removed flag for this item.
|
void |
setStartDate(java.util.Date startDate) |
equals, getId, getVersion, hashCode, setId, setVersion, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getVersion
private java.lang.String name
private java.lang.String description
private boolean removed
private java.util.Date entryDate
private java.util.Date startDate
private java.util.Date newsDate
private java.util.Date endDate
public java.lang.String getName()
NameableData
getName
in interface NameableData
String
with the name of the itempublic void setName(java.lang.String name)
NameableData
MAX_NAME_LENGTH
constant.setName
in interface NameableData
name
- The new name for the itempublic java.lang.String getDescription()
NameableData
getDescription
in interface NameableData
String
with a description of the itempublic void setDescription(java.lang.String description)
NameableData
MAX_DESCRIPTION_LENGTH
constant.setDescription
in interface NameableData
description
- The new description for the itempublic boolean isRemoved()
RemovableData
isRemoved
in interface RemovableData
public void setRemoved(boolean removed)
RemovableData
setRemoved
in interface RemovableData
removed
- TRUE if the item should be flagged as removed,
FALSE otherwisepublic java.util.Date getEntryDate()
RegisteredData
getEntryDate
in interface RegisteredData
public void setEntryDate(java.util.Date entryDate)
public java.util.Date getStartDate()
public void setStartDate(java.util.Date startDate)
public java.util.Date getNewsDate()
public void setNewsDate(java.util.Date newsDate)
public java.util.Date getEndDate()
public void setEndDate(java.util.Date endDate)