|
|||||||||
| 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.patterns.listdata.persist.db.impl.ModifiableListDatabaseSchemaImpl
org.opensubsystems.inventory.persist.db.InventoryDatabaseSchema
public abstract class InventoryDatabaseSchema
Database specific operations related to persistence of inventories.
| Field Summary | |
|---|---|
static int |
INVENTORY_DESCRIPTION_MAXLENGTH
Maximal length of inventory description. |
static int[] |
INVENTORY_MANDATORY_RETRIEVE_COLUMNSS
Columns which always have to be retrieved from the database |
static int |
INVENTORY_NAME_MAXLENGTH
Maximal length of inventory name. |
static java.lang.String |
INVENTORY_SCHEMA_NAME
Name identifies this schema in the database. |
static int |
INVENTORY_SCHEMA_VERSION
Version of this schema in the database. |
static int[] |
INVENTORY_SORT_COLUMNS
Static variable for array of all columns codes that can be used for sorting. |
| Fields inherited from class org.opensubsystems.patterns.listdata.persist.db.impl.ModifiableListDatabaseSchemaImpl |
|---|
m_mapFilterableColumns, m_mapListableTableNames, m_mapMandatoryRetrieveColumns, m_mapSortableColumns |
| 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 | |
|---|---|
InventoryDatabaseSchema()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
createListIndexes(java.sql.Connection cntDBConnection)
Method creates specified LST indexes used for speeding up retrieving data into the list. |
java.lang.StringBuffer |
getColumns(boolean specific,
int[] columns,
java.lang.Object[] prefixes,
java.lang.Object[] postfixes,
java.lang.StringBuffer buffer)
|
java.lang.String |
getDeleteInventoryById()
Get query to delete particular inventory. |
java.lang.String |
getInsertInventory()
Method returns simple insert inventory query. |
abstract java.lang.String |
getInsertInventoryAndFetchGeneratedValues()
Get query that inserts a inventory to the database and fetches database generated values such as the generated id and creation timestamp |
java.lang.String |
getSelectInventoryById(int[] columns)
Get query to select inventory by ID. |
java.lang.String |
getSelectInventoryByName(int[] columns)
Get query to select inventory by name. |
abstract java.lang.String |
getUpdateInventoryAndFetchGeneratedValues()
Get query that updates inventory 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.patterns.listdata.persist.db.impl.ModifiableListDatabaseSchemaImpl |
|---|
getFilterbleColumns, getMandatoryRetrieveColumns, getSelectList, getSortableColumns |
| 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.patterns.listdata.persist.db.ListDatabaseSchema |
|---|
getJoinFromWhere, isExistingIndex |
| Methods inherited from interface org.opensubsystems.core.persist.db.DatabaseSchema |
|---|
create, getDependentSchemas, getName, getVersion, isInDomain, upgrade |
| Field Detail |
|---|
public static final java.lang.String INVENTORY_SCHEMA_NAME
public static final int INVENTORY_SCHEMA_VERSION
public static final int[] INVENTORY_MANDATORY_RETRIEVE_COLUMNSS
public static final int[] INVENTORY_SORT_COLUMNS
public static final int INVENTORY_NAME_MAXLENGTH
public static final int INVENTORY_DESCRIPTION_MAXLENGTH
| Constructor Detail |
|---|
public InventoryDatabaseSchema()
throws org.opensubsystems.core.error.OSSException
org.opensubsystems.core.error.OSSException - - error occured.| Method Detail |
|---|
public abstract java.lang.String getInsertInventoryAndFetchGeneratedValues()
throws org.opensubsystems.core.error.OSSException
org.opensubsystems.core.error.OSSException - - an error has occured
public abstract java.lang.String getUpdateInventoryAndFetchGeneratedValues()
throws org.opensubsystems.core.error.OSSException
org.opensubsystems.core.error.OSSException - - an error has occured
public java.lang.String getInsertInventory()
throws org.opensubsystems.core.error.OSSException
org.opensubsystems.core.error.OSSException - - exception during getting query
public void createListIndexes(java.sql.Connection cntDBConnection)
throws java.sql.SQLException,
org.opensubsystems.core.error.OSSException
cntDBConnection - - valid connection to database
java.sql.SQLException - - problem creating the database schema
org.opensubsystems.core.error.OSSException - - problem creating the database schema
public java.lang.String getSelectInventoryById(int[] columns)
throws org.opensubsystems.core.error.OSSException
columns - - columns to retrieve
org.opensubsystems.core.error.OSSException - - and error has occured
public java.lang.String getSelectInventoryByName(int[] columns)
throws org.opensubsystems.core.error.OSSException
columns - - list of columns to retrieve
org.opensubsystems.core.error.OSSException - - an error has occuredpublic java.lang.String getDeleteInventoryById()
public java.lang.StringBuffer getColumns(boolean specific,
int[] columns,
java.lang.Object[] prefixes,
java.lang.Object[] postfixes,
java.lang.StringBuffer buffer)
throws org.opensubsystems.core.error.OSSException
org.opensubsystems.core.error.OSSException
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 | ||||||||