public class Entry extends ModifiableDataObject (Code)
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.
version: $Id: Entry.java,v 1.5 2007/02/20 02:10:00 bastafidli Exp $ author: Miro Halas
Field Summary
final public static int[]
ALL_COLUMNS Static variable for array of all columns codes.
Entry(int iId, int iDomainId, int iParentId, String strCaption, String strComments, String strImageURL, String strTargetURL, Timestamp creationTimestamp, Timestamp modificationTimestamp) Create entry from a given parameters.
Static variable for array of all columns codes.
The order is important since it is used to retrieve all data from the
persistence store efficiently so do not modify it unless you make
changes to other places as well.
COL_BLOGENTRY_CAPTION
final public static int COL_BLOGENTRY_CAPTION(Code)
Code for table column.
COL_BLOGENTRY_CAPTION_OBJ
final public static Integer COL_BLOGENTRY_CAPTION_OBJ(Code)
Object code for table column.
COL_BLOGENTRY_COMMENTS
final public static int COL_BLOGENTRY_COMMENTS(Code)
Code for table column.
COL_BLOGENTRY_COMMENTS_OBJ
final public static Integer COL_BLOGENTRY_COMMENTS_OBJ(Code)
Object code for table column.
COL_BLOGENTRY_CREATION_DATE
final public static int COL_BLOGENTRY_CREATION_DATE(Code)
Code for table column.
COL_BLOGENTRY_DOMAIN_ID
final public static int COL_BLOGENTRY_DOMAIN_ID(Code)
final public static Integer COL_BLOGENTRY_ID_OBJ(Code)
Object code for table column.
COL_BLOGENTRY_IMAGEURL
final public static int COL_BLOGENTRY_IMAGEURL(Code)
Code for table column.
COL_BLOGENTRY_IMAGEURL_OBJ
final public static Integer COL_BLOGENTRY_IMAGEURL_OBJ(Code)
Object code for table column.
COL_BLOGENTRY_MODIFICATION_DATE
final public static int COL_BLOGENTRY_MODIFICATION_DATE(Code)
Code for table column.
COL_BLOGENTRY_PARENT_ID
final public static int COL_BLOGENTRY_PARENT_ID(Code)
Code for table column.
COL_BLOGENTRY_TARGETURL
final public static int COL_BLOGENTRY_TARGETURL(Code)
Code for table column.
COL_BLOGENTRY_TARGETURL_OBJ
final public static Integer COL_BLOGENTRY_TARGETURL_OBJ(Code)
Object code for table column.
DEFAULT_LIST_COLUMNS
final public static int[] DEFAULT_LIST_COLUMNS(Code)
Default columns to retrieve when asked for list of objects.
These should be only columns visible to user on the screen and not any
internal columns. Also the columns should be retrievable efficiently so
that the default view is very quick.
DEFAULT_LIST_SORT_COLUMNS
final public static int[] DEFAULT_LIST_SORT_COLUMNS(Code)
Default columns to sort by when asked for list of objects.
DEFAULT_LIST_SORT_ORDER
final public static String[] DEFAULT_LIST_SORT_ORDER(Code)
Default order in which the columns will be sorted.
Empty entry for a specified domain and parent initialized to default parameters
Parameters: iDomainId - - Id of the domain this domain belongs to Parameters: iParentId - - Id of the parent this entry belongs to
Entry
public Entry(int iId, int iDomainId, int iParentId, String strCaption, String strComments, String strImageURL, String strTargetURL, Timestamp creationTimestamp, Timestamp modificationTimestamp)(Code)
Create entry from a given parameters.
Parameters: iId - - Id of the entry Parameters: iDomainId - - Id of the domain this domain belongs to Parameters: iParentId - - Id of the parent this entry belongs to Parameters: strCaption - - More descriptive name of the entry Parameters: strComments - - Any additional text of the entry Parameters: strImageURL - - Image URL of image associated with the entry Parameters: strTargetURL - - Target URL for the image when user clicks on the image Parameters: creationTimestamp - - Timestamp when the entry was created Parameters: modificationTimestamp - - Timestamp when the entry was last time modified