|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.core.data.DataObject
org.opensubsystems.core.data.BasicDataObject
org.opensubsystems.core.data.ModifiableDataObject
org.opensubsystems.blog.data.Entry
public class Entry
Entry within a blog. Entry has caption, text and can have an image associated with it. Entry can also contain separate URL associated with the image.
| Field Summary | |
|---|---|
protected java.lang.Boolean |
m_bIsPreformated
Flag signaling if the text contains formatting or not. |
protected int |
m_iParentId
Parent ID is the ID of the blog this entry belongs to. |
protected java.lang.String |
m_strCaption
Caption is more descriptive name of the entry. |
protected java.lang.String |
m_strComments
Comments is any additional text for the entry. |
protected java.lang.String |
m_strImageURL
Image URL of image associated with the entry. |
protected java.lang.String |
m_strTargetURL
Target URL for the image when user clicks on the image. |
protected static int |
s_iCaptionMaxLength
Maximal length of the caption field. |
protected static int |
s_iCommentsMaxLength
Maximal length of the comments field. |
protected static int |
s_iImageURLMaxLength
Maximal length of the image URL field. |
protected static int |
s_iTargetURLMaxLength
Maximal length of the target URL field. |
| Fields inherited from class org.opensubsystems.core.data.ModifiableDataObject |
|---|
m_modificationTimestamp |
| Fields inherited from class org.opensubsystems.core.data.BasicDataObject |
|---|
m_creationTimestamp, m_iDomainId |
| Fields inherited from class org.opensubsystems.core.data.DataObject |
|---|
NEW_ID, NEW_ID_OBJ, NEW_ID_STR |
| Constructor Summary | |
|---|---|
Entry()
Empty entry initialized to default parameters |
|
Entry(int iDomainId)
Empty entry for a specified domain initialized to default parameters |
|
Entry(int iDomainId,
int iParentId)
Empty entry for a specified domain and parent initialized to default parameters |
|
Entry(int iId,
int iDomainId,
int iParentId,
java.lang.String strCaption,
java.lang.String strComments,
java.lang.String strImageURL,
java.lang.String strTargetURL,
java.sql.Timestamp creationTimestamp,
java.sql.Timestamp modificationTimestamp)
Create entry from a given parameters. |
|
| Method Summary | |
|---|---|
java.lang.String |
getCaption()
Caption is more descriptive name of the entry. |
int |
getCaptionMaxLength()
|
static int |
getCaptionMaxLengthStatic()
|
java.lang.String |
getComments()
Comments is any additional description of the entry. |
int |
getCommentsMaxLength()
|
static int |
getCommentsMaxLengthStatic()
|
java.lang.String |
getImageURL()
Image URL of image associated with the entry. |
int |
getImageURLMaxLength()
|
static int |
getImageURLMaxLengthStatic()
|
boolean |
getIsPreformated()
Flag signaling if the text contains formatting or not. |
int |
getParentId()
Id of the parent this entry belongs to. |
java.lang.String |
getTargetURL()
Target URL to display when user clicks on the image associated with this entry. |
int |
getTargetURLMaxLength()
|
static int |
getTargetURLMaxLengthStatic()
|
boolean |
isSame(java.lang.Object oObject)
|
static void |
setCaptionMaxLength(int iCaptionMaxLength)
|
static void |
setCommentsMaxLength(int iCommentsMaxLength)
|
static void |
setImageURLMaxLength(int iImageURLMaxLength)
|
void |
setParentId(int iParentId)
Id of the parent this entry belongs to. |
static void |
setTargetURLMaxLength(int iTargetURLMaxLength)
|
| Methods inherited from class org.opensubsystems.core.data.ModifiableDataObject |
|---|
equals, getModificationTimestamp, hashCode, restore, setModificationTimestamp |
| Methods inherited from class org.opensubsystems.core.data.BasicDataObject |
|---|
getCreationTimestamp, getDomainId, getId, getIdAsObject, restore, setCreationTimestamp, setId |
| Methods inherited from class org.opensubsystems.core.data.DataObject |
|---|
isFromPersistenceStore, setFromPersistenceStore |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static int s_iCaptionMaxLength
protected static int s_iCommentsMaxLength
protected static int s_iImageURLMaxLength
protected static int s_iTargetURLMaxLength
protected java.lang.Boolean m_bIsPreformated
protected int m_iParentId
protected java.lang.String m_strCaption
protected java.lang.String m_strComments
protected java.lang.String m_strImageURL
protected java.lang.String m_strTargetURL
| Constructor Detail |
|---|
public Entry()
public Entry(int iDomainId)
iDomainId - - Id of the domain this domain belongs to
public Entry(int iDomainId,
int iParentId)
iDomainId - - Id of the domain this domain belongs toiParentId - - Id of the parent this entry belongs to
public Entry(int iId,
int iDomainId,
int iParentId,
java.lang.String strCaption,
java.lang.String strComments,
java.lang.String strImageURL,
java.lang.String strTargetURL,
java.sql.Timestamp creationTimestamp,
java.sql.Timestamp modificationTimestamp)
iId - - Id of the entryiDomainId - - Id of the domain this domain belongs toiParentId - - Id of the parent this entry belongs tostrCaption - - More descriptive name of the entrystrComments - - Any additional text of the entrystrImageURL - - Image URL of image associated with the entrystrTargetURL - - Target URL for the image when user clicks on the imagecreationTimestamp - - Timestamp when the entry was createdmodificationTimestamp - - Timestamp when the entry was last time modified| Method Detail |
|---|
public int getParentId()
public void setParentId(int iParentId)
iParentId - - if of the parent this entry belongs topublic java.lang.String getCaption()
public java.lang.String getComments()
public java.lang.String getImageURL()
public java.lang.String getTargetURL()
public static int getCaptionMaxLengthStatic()
public int getCaptionMaxLength()
public static int getCommentsMaxLengthStatic()
public int getCommentsMaxLength()
public static void setCaptionMaxLength(int iCaptionMaxLength)
iCaptionMaxLength - - maximal length for captionpublic static void setCommentsMaxLength(int iCommentsMaxLength)
iCommentsMaxLength - - maximal length for commentspublic static int getImageURLMaxLengthStatic()
public int getImageURLMaxLength()
public static int getTargetURLMaxLengthStatic()
public int getTargetURLMaxLength()
public static void setImageURLMaxLength(int iImageURLMaxLength)
iImageURLMaxLength - - maximal length for image URLpublic static void setTargetURLMaxLength(int iTargetURLMaxLength)
iTargetURLMaxLength - - maximal length for target URLpublic boolean getIsPreformated()
public boolean isSame(java.lang.Object oObject)
isSame in class org.opensubsystems.core.data.DataObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||