org.opensubsystems.inventory.persist.db.mssql
Class MSSQLInventoryDatabaseSchema
java.lang.Object
org.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
org.opensubsystems.inventory.persist.db.mssql.MSSQLInventoryDatabaseSchema
- All Implemented Interfaces:
- org.opensubsystems.core.persist.db.DatabaseOperations, org.opensubsystems.core.persist.db.DatabaseSchema, org.opensubsystems.core.persist.db.ModifiableDatabaseSchema, org.opensubsystems.patterns.listdata.persist.db.ListDatabaseSchema
public class MSSQLInventoryDatabaseSchema
- extends InventoryDatabaseSchema
Database specific operations related to persistence of inventories in MS SQL.
- Version:
- $Id: MSSQLInventoryDatabaseSchema.java,v 1.9 2007/01/07 06:14:27 bastafidli Exp $
- Author:
- Julian Legeny
- Code reviewer:
- TODO: Review this code
- Code reviewed:
| 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 |
|
Method Summary |
void |
create(java.sql.Connection cntDBConnection,
java.lang.String strUserName)
|
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 |
getUpdateInventoryAndFetchGeneratedValues()
Get query that updates inventory in the database and fetches database
generated values such as the updated modification timestamp |
| 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 |
getDependentSchemas, getName, getVersion, isInDomain, upgrade |
MSSQLInventoryDatabaseSchema
public MSSQLInventoryDatabaseSchema()
throws org.opensubsystems.core.error.OSSException
- Default constructor.
- Throws:
org.opensubsystems.core.error.OSSException - - error occured.
create
public void create(java.sql.Connection cntDBConnection,
java.lang.String strUserName)
throws java.sql.SQLException,
org.opensubsystems.core.error.OSSException
-
- Throws:
java.sql.SQLException
org.opensubsystems.core.error.OSSException
getInsertInventoryAndFetchGeneratedValues
public java.lang.String getInsertInventoryAndFetchGeneratedValues()
throws org.opensubsystems.core.error.OSSException
- Get query that inserts a inventory to the database and fetches database
generated values such as the generated id and creation timestamp
- Specified by:
getInsertInventoryAndFetchGeneratedValues in class InventoryDatabaseSchema
- Returns:
- String - query for simple insert or stored procedure call
- Throws:
org.opensubsystems.core.error.OSSException - - an error has occured
getUpdateInventoryAndFetchGeneratedValues
public java.lang.String getUpdateInventoryAndFetchGeneratedValues()
throws org.opensubsystems.core.error.OSSException
- Get query that updates inventory in the database and fetches database
generated values such as the updated modification timestamp
- Specified by:
getUpdateInventoryAndFetchGeneratedValues in class InventoryDatabaseSchema
- Returns:
- String - query for simple update or stored procedure call
- Throws:
org.opensubsystems.core.error.OSSException - - an error has occured
Copyright © 2003 - 2006 OpenSubsystems s.r.o.