|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.core.persist.db.DatabaseSchemaImpl
org.opensubsystems.core.persist.db.ModifiableDatabaseSchemaImpl
org.opensubsystems.blog.persist.db.BlogDatabaseSchema
public abstract class BlogDatabaseSchema
Database specific operations related to persistence of blogs and their entries.
| Field Summary | |
|---|---|
static int |
BLOG_CAPTION_MAXLENGTH
Maximal length of blog caption. |
static java.lang.String |
BLOG_COLUMNS
All columns in a blog table in the order in which they will be retrieved |
static int |
BLOG_COMMENTS_MAXLENGTH
Maximal length of blog comments. |
static int |
BLOG_FOLDER_MAXLENGTH
Maximal length of blog folder. |
static java.lang.String |
BLOG_SCHEMA_NAME
Name identifies this schema in the database. |
static int |
BLOG_SCHEMA_VERSION
Version of this schema in the database. |
static java.lang.String |
BLOG_TABLE_NAME
Table name where blog informations are stored. |
static int |
BLOGENTRY_CAPTION_MAXLENGTH
Maximal length of entry caption. |
static int |
BLOGENTRY_COMMENTS_MAXLENGTH
Maximal length of entry comments. |
static int |
BLOGENTRY_IMAGEURL_MAXLENGTH
Maximal length of entry image URL. |
static java.lang.String |
BLOGENTRY_TABLE_NAME
Table name where blog entry informations are stored. |
static int |
BLOGENTRY_TARGETURL_MAXLENGTH
Maximal length of entry target URL. |
static java.lang.String |
ENTRY_COLUMNS
All columns in a entry table in the order in which they will be retrieved |
static java.util.Map |
TABLE_NAMES
Map of table names belonging to this schema. |
| Fields inherited from class org.opensubsystems.core.persist.db.ModifiableDatabaseSchemaImpl |
|---|
m_mapModifiableTableNames |
| Fields inherited from class org.opensubsystems.core.persist.db.DatabaseSchemaImpl |
|---|
DATABASE_SCHEMA_PREFIX, DATABASE_SCHEMA_PREFIX_DEFAULT, m_arrDependentSchemas, m_bIsInDomain, m_iSchemaVersion, m_strSchemaName, NL |
| Fields inherited from interface org.opensubsystems.core.persist.db.DatabaseOperations |
|---|
DBOP_DELETE, DBOP_INSERT, DBOP_SELECT, DBOP_UPDATE |
| Constructor Summary | |
|---|---|
BlogDatabaseSchema()
Default constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
getDeleteBlogById()
Get query to delete blog by id |
java.lang.String |
getDeleteEntryById()
Get query to delete entry by id |
java.lang.String |
getInsertBlog()
Method returns simple insert blog query. |
abstract java.lang.String |
getInsertBlogAndFetchGeneratedValues()
Get query that inserts a blog to the database and fetches database generated values such as the generated id and creation timestamp |
java.lang.String |
getInsertEntry()
Method returns simple insert entry query. |
abstract java.lang.String |
getInsertEntryAndFetchGeneratedValues()
Get query that inserts a entry to the database and fetches database generated values such as the generated id and creation timestamp |
java.lang.String |
getSelectAllBlogs(java.lang.String strColumns)
Get query to load all blogs sorted by creation date |
java.lang.String |
getSelectAllEntries(java.lang.String strColumns)
Get query to load all entries sorted by date from newest to oldest. |
java.lang.String |
getSelectBlogByFolder(java.lang.String strColumns)
Get query to load blog by folder |
java.lang.String |
getSelectBlogById(java.lang.String strColumns)
Get query to load blog by id |
java.lang.String |
getSelectEntryById(java.lang.String strColumns)
Get query to load entry by id |
java.lang.String |
getSelectLastEntry(java.lang.String strColumns)
Get query to load last created entry |
abstract java.lang.String |
getUpdateBlogAndFetchGeneratedValues()
Get query that updates blog in the database and fetches database generated values such as the updated modification timestamp |
abstract java.lang.String |
getUpdateEntryAndFetchGeneratedValues()
Get query that updates entry in the database and fetches database generated values such as the updated modification timestamp |
void |
handleSQLException(java.sql.SQLException exc,
java.sql.Connection dbConnection,
int iOperationType,
int iDataType,
java.lang.Object data)
|
| Methods inherited from class org.opensubsystems.core.persist.db.ModifiableDatabaseSchemaImpl |
|---|
deleteRelatedData, getModifiableTableNames |
| Methods inherited from class org.opensubsystems.core.persist.db.DatabaseSchemaImpl |
|---|
getDependentSchemas, getJoinFromWhere, getName, getOwnerColumnNames, getSchemaPrefix, getVersion, isExistingIndex, isInDomain, upgrade, upgradeView |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.opensubsystems.core.persist.db.DatabaseSchema |
|---|
create, getDependentSchemas, getName, getVersion, isInDomain, upgrade |
| Field Detail |
|---|
public static final java.lang.String BLOG_SCHEMA_NAME
public static final int BLOG_SCHEMA_VERSION
public static final java.lang.String BLOG_TABLE_NAME
public static final java.lang.String BLOG_COLUMNS
public static final int BLOG_FOLDER_MAXLENGTH
public static final int BLOG_CAPTION_MAXLENGTH
public static final int BLOG_COMMENTS_MAXLENGTH
public static final java.lang.String BLOGENTRY_TABLE_NAME
public static final java.lang.String ENTRY_COLUMNS
public static final int BLOGENTRY_CAPTION_MAXLENGTH
public static final int BLOGENTRY_COMMENTS_MAXLENGTH
public static final int BLOGENTRY_IMAGEURL_MAXLENGTH
public static final int BLOGENTRY_TARGETURL_MAXLENGTH
public static final java.util.Map TABLE_NAMES
| Constructor Detail |
|---|
public BlogDatabaseSchema()
throws org.opensubsystems.core.error.OSSException
org.opensubsystems.core.error.OSSException - - error occured.| Method Detail |
|---|
public java.lang.String getSelectBlogById(java.lang.String strColumns)
throws org.opensubsystems.core.error.OSSException
strColumns - - list of specific columns to retrieve
org.opensubsystems.core.error.OSSException - - an error has occured
public java.lang.String getSelectBlogByFolder(java.lang.String strColumns)
throws org.opensubsystems.core.error.OSSException
strColumns - - list of specific columns to retrieve
org.opensubsystems.core.error.OSSException - - an error has occured
public java.lang.String getSelectAllBlogs(java.lang.String strColumns)
throws org.opensubsystems.core.error.OSSException
strColumns - - list of specific columns to retrieve
org.opensubsystems.core.error.OSSException - - an error has occured
public abstract java.lang.String getInsertBlogAndFetchGeneratedValues()
throws org.opensubsystems.core.error.OSSException
org.opensubsystems.core.error.OSSException - - an error has occured
public abstract java.lang.String getUpdateBlogAndFetchGeneratedValues()
throws org.opensubsystems.core.error.OSSException
org.opensubsystems.core.error.OSSException - - an error has occured
public java.lang.String getInsertBlog()
throws org.opensubsystems.core.error.OSSException
org.opensubsystems.core.error.OSSException - - an error has occuredpublic java.lang.String getDeleteBlogById()
public java.lang.String getSelectEntryById(java.lang.String strColumns)
throws org.opensubsystems.core.error.OSSException
strColumns - - list of specific columns to retrieve
org.opensubsystems.core.error.OSSException - - an error has occured
public java.lang.String getSelectAllEntries(java.lang.String strColumns)
throws org.opensubsystems.core.error.OSSException
strColumns - - list of specific columns to retrieve
org.opensubsystems.core.error.OSSException - - an error has occured
public java.lang.String getSelectLastEntry(java.lang.String strColumns)
throws org.opensubsystems.core.error.OSSException
strColumns - - list of specific columns to retrieve
org.opensubsystems.core.error.OSSException - - an error has occured
public abstract java.lang.String getInsertEntryAndFetchGeneratedValues()
throws org.opensubsystems.core.error.OSSException
org.opensubsystems.core.error.OSSException - - an error has occured
public abstract java.lang.String getUpdateEntryAndFetchGeneratedValues()
throws org.opensubsystems.core.error.OSSException
org.opensubsystems.core.error.OSSException - - an error has occured
public java.lang.String getInsertEntry()
throws org.opensubsystems.core.error.OSSException
org.opensubsystems.core.error.OSSException - - an error has occuredpublic java.lang.String getDeleteEntryById()
public void handleSQLException(java.sql.SQLException exc,
java.sql.Connection dbConnection,
int iOperationType,
int iDataType,
java.lang.Object data)
throws org.opensubsystems.core.error.OSSException
handleSQLException in interface org.opensubsystems.core.persist.db.DatabaseSchemahandleSQLException in class org.opensubsystems.core.persist.db.ModifiableDatabaseSchemaImplorg.opensubsystems.core.error.OSSException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||