abstractpublic class BlogDatabaseSchema extends ModifiableListDatabaseSchemaImpl (Code)
Database specific operations related to persistence of blogs and their entries.
version: $Id: BlogDatabaseSchema.java,v 1.6 2007/02/20 02:14:49 bastafidli Exp $ author: Miro Halas
final public static int BLOGENTRY_CAPTION_MAXLENGTH(Code)
Maximal length of entry caption.
BLOGENTRY_COMMENTS_MAXLENGTH
final public static int BLOGENTRY_COMMENTS_MAXLENGTH(Code)
Maximal length of entry comments.
BLOGENTRY_FILTER_COLUMNS
final public static int[] BLOGENTRY_FILTER_COLUMNS(Code)
Static variable for array of all columns codes that can be used for
filtering.
BLOGENTRY_IMAGEURL_MAXLENGTH
final public static int BLOGENTRY_IMAGEURL_MAXLENGTH(Code)
Maximal length of entry image URL.
BLOGENTRY_MANDATORY_RETRIEVE_COLUMNS
final public static int[] BLOGENTRY_MANDATORY_RETRIEVE_COLUMNS(Code)
Columns which always have to be retrieved from the database.
We always need data object id and domain id to correctly identify the
object and modification date to provide support for optimistic locking.
Caption is the allowing user to access defails of the entry and parent id
allows access to the blog.
BLOGENTRY_SORT_COLUMNS
final public static int[] BLOGENTRY_SORT_COLUMNS(Code)
Static variable for array of all columns codes that can be used for
sorting.
BLOGENTRY_TABLE_NAME
final public static String BLOGENTRY_TABLE_NAME(Code)
Table name where blog entry informations are stored.
BLOGENTRY_TARGETURL_MAXLENGTH
final public static int BLOGENTRY_TARGETURL_MAXLENGTH(Code)
Maximal length of entry target URL.
BLOG_CAPTION_MAXLENGTH
final public static int BLOG_CAPTION_MAXLENGTH(Code)
All columns in a blog table in the order in which they will be retrieved
BLOG_COMMENTS_MAXLENGTH
final public static int BLOG_COMMENTS_MAXLENGTH(Code)
Maximal length of blog comments.
BLOG_FILTER_COLUMNS
final public static int[] BLOG_FILTER_COLUMNS(Code)
Static variable for array of all columns codes that can be used for
filtering.
BLOG_FOLDER_MAXLENGTH
final public static int BLOG_FOLDER_MAXLENGTH(Code)
Maximal length of blog folder.
BLOG_MANDATORY_RETRIEVE_COLUMNS
final public static int[] BLOG_MANDATORY_RETRIEVE_COLUMNS(Code)
Columns which always have to be retrieved from the database.
We always need data object id and domain id to correctly identify the
object and modification date to provide support for optimistic locking.
Caption is the allowing user to access defails of the blog.
Method returns simple insert blog query. This method is common for all
databases and can be overwritten for each specific database schema.
String - simple insert blog query throws: OSSException - - an error has occured
Get query that inserts a blog to the database and fetches database
generated values such as the generated id and creation timestamp
String - query for simple insert or stored procedure call throws: OSSException - - an error has occured
Method returns simple insert entry query. This method is common for all
databases and can be overwritten for each specific database schema.
String - simple insert entry query throws: OSSException - - an error has occured
Get query that inserts a entry to the database and fetches database
generated values such as the generated id and creation timestamp
String - query for simple insert or stored procedure call throws: OSSException - - an error has occured
Get query to load blog by folder
Parameters: strColumns - - list of specific columns to retrieve String - query throws: OSSException - - an error has occured
Get query to load blog by id
Parameters: strColumns - - list of specific columns to retrieve String - query throws: OSSException - - an error has occured
Get query to load entry by id
Parameters: strColumns - - list of specific columns to retrieve String - query throws: OSSException - - an error has occured
Get query to load last created entry
Parameters: strColumns - - list of specific columns to retrieve String - query throws: OSSException - - an error has occured
Get query that updates blog in the database and fetches database
generated values such as the updated modification timestamp
String - query for simple update or stored procedure call throws: OSSException - - an error has occured
Get query that updates entry in the database and fetches database
generated values such as the updated modification timestamp
String - query for simple update or stored procedure call throws: OSSException - - an error has occured
handleSQLException
public void handleSQLException(SQLException exc, Connection dbConnection, int iOperationType, int iDataType, Object data) throws OSSException(Code)