|
|||||||||
| 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
org.opensubsystems.blog.persist.db.oracle.OracleBlogDatabaseSchema
public class OracleBlogDatabaseSchema
Database specific operations related to persistence of blogs and their entries. This class encapsulate functionality specific for Oracle.
| Field Summary | |
|---|---|
static int |
BLOG_COMMENTS_MAXLENGTH_ORACLE
Maximal length of blog comments. |
static int |
BLOGENTRY_COMMENTS_MAXLENGTH_ORACLE
Maximal length of blog entry comments. |
| Fields inherited from class org.opensubsystems.blog.persist.db.BlogDatabaseSchema |
|---|
BLOG_CAPTION_MAXLENGTH, BLOG_COLUMNS, BLOG_COMMENTS_MAXLENGTH, BLOG_FOLDER_MAXLENGTH, BLOG_SCHEMA_NAME, BLOG_SCHEMA_VERSION, BLOG_TABLE_NAME, BLOGENTRY_CAPTION_MAXLENGTH, BLOGENTRY_COMMENTS_MAXLENGTH, BLOGENTRY_IMAGEURL_MAXLENGTH, BLOGENTRY_TABLE_NAME, BLOGENTRY_TARGETURL_MAXLENGTH, ENTRY_COLUMNS, TABLE_NAMES |
| 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 | |
|---|---|
OracleBlogDatabaseSchema()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
create(java.sql.Connection cntDBConnection,
java.lang.String strUserName)
|
java.lang.String |
getInsertBlog()
Method returns simple insert blog query. |
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. |
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 |
getUpdateBlogAndFetchGeneratedValues()
Get query that updates blog in the database and fetches database generated values such as the updated modification timestamp |
java.lang.String |
getUpdateEntryAndFetchGeneratedValues()
Get query that updates entry in the database and fetches database generated values such as the updated modification timestamp |
| Methods inherited from class org.opensubsystems.blog.persist.db.BlogDatabaseSchema |
|---|
getDeleteBlogById, getDeleteEntryById, getSelectAllBlogs, getSelectAllEntries, getSelectBlogByFolder, getSelectBlogById, getSelectEntryById, getSelectLastEntry, handleSQLException |
| 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 |
|---|
getDependentSchemas, getName, getVersion, isInDomain, upgrade |
| Field Detail |
|---|
public static final int BLOG_COMMENTS_MAXLENGTH_ORACLE
public static final int BLOGENTRY_COMMENTS_MAXLENGTH_ORACLE
| Constructor Detail |
|---|
public OracleBlogDatabaseSchema()
throws org.opensubsystems.core.error.OSSException
org.opensubsystems.core.error.OSSException - - error occured.| Method Detail |
|---|
public void create(java.sql.Connection cntDBConnection,
java.lang.String strUserName)
throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getInsertBlogAndFetchGeneratedValues()
throws org.opensubsystems.core.error.OSSException
getInsertBlogAndFetchGeneratedValues in class BlogDatabaseSchemaorg.opensubsystems.core.error.OSSException - - an error has occured
public java.lang.String getUpdateBlogAndFetchGeneratedValues()
throws org.opensubsystems.core.error.OSSException
getUpdateBlogAndFetchGeneratedValues in class BlogDatabaseSchemaorg.opensubsystems.core.error.OSSException - - an error has occured
public java.lang.String getInsertBlog()
throws org.opensubsystems.core.error.OSSException
getInsertBlog in class BlogDatabaseSchemaorg.opensubsystems.core.error.OSSException - - an error has occured
public java.lang.String getInsertEntryAndFetchGeneratedValues()
throws org.opensubsystems.core.error.OSSException
getInsertEntryAndFetchGeneratedValues in class BlogDatabaseSchemaorg.opensubsystems.core.error.OSSException - - an error has occured
public java.lang.String getUpdateEntryAndFetchGeneratedValues()
throws org.opensubsystems.core.error.OSSException
getUpdateEntryAndFetchGeneratedValues in class BlogDatabaseSchemaorg.opensubsystems.core.error.OSSException - - an error has occured
public java.lang.String getInsertEntry()
throws org.opensubsystems.core.error.OSSException
getInsertEntry in class BlogDatabaseSchemaorg.opensubsystems.core.error.OSSException - - an error has occured
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||