|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.core.persist.db.DatabaseFactoryImpl
org.opensubsystems.patterns.listdata.persist.db.impl.ListDatabaseFactoryImpl
org.opensubsystems.inventory.persist.db.CategoryDatabaseFactory
public class CategoryDatabaseFactory
Data factory to retrieve and manipulate categories in persistence store.
| Field Summary | |
|---|---|
protected CategoryDatabaseSchema |
m_schema
Schema to use to execute database dependent operations. |
| Fields inherited from class org.opensubsystems.patterns.listdata.persist.db.impl.ListDatabaseFactoryImpl |
|---|
m_arrOrderColumnCodes, m_arrOrderDirections, m_arrShowColumnCodes, m_listSchema |
| Fields inherited from class org.opensubsystems.core.persist.db.DatabaseFactoryImpl |
|---|
m_connectionFactory, m_iConcurrencySelectListResultSet, m_iDataType, m_iTypeSelectListResultSet, m_transactionFactory |
| Constructor Summary | |
|---|---|
CategoryDatabaseFactory()
Default constructor. |
|
| Method Summary | |
|---|---|
int |
create(java.util.Collection colDataObject)
|
org.opensubsystems.core.data.DataObject |
create(org.opensubsystems.core.data.DataObject data)
|
void |
delete(int iId,
int iDomainId)
|
int |
deleteRoot(int iId,
org.opensubsystems.patterns.listdata.data.SimpleRule listSecurityData)
Delete root category with all subcategories contained in this category. |
int |
deleteRoots(int[] arrIds,
org.opensubsystems.patterns.listdata.data.SimpleRule listSecurityData)
Delete all specified root categories with all its subcategories contained in. |
org.opensubsystems.core.data.DataObject |
get(int iId,
int iDomainId)
|
Category |
get(int iParentID,
java.lang.String strCategoryName)
Get category based on unique combination of name and parent id. |
int |
getActualCount(int[] arrIds)
Get actual number of categories that still exists within the DB. |
org.opensubsystems.core.data.DataObject |
load(java.sql.ResultSet rsQueryResults,
int initialIndex)
|
org.opensubsystems.core.data.DataObject |
load(java.sql.ResultSet rsQueryResults,
int[] selectedColumns,
int initialIndex)
|
org.opensubsystems.core.data.ModifiableDataObject |
save(org.opensubsystems.core.data.ModifiableDataObject data)
|
int |
setValuesForInsert(java.sql.PreparedStatement insertStatement,
org.opensubsystems.core.data.DataObject data,
int iIndex)
|
int |
setValuesForUpdate(java.sql.PreparedStatement updateStatement,
org.opensubsystems.core.data.DataObject data,
int iIndex)
|
boolean |
verifyUniqueCategory(Category category)
Get result for category existence. |
| Methods inherited from class org.opensubsystems.patterns.listdata.persist.db.impl.ListDatabaseFactoryImpl |
|---|
get, getDefaultListDefinition, getListDatabaseSchema |
| Methods inherited from class org.opensubsystems.core.persist.db.DatabaseFactoryImpl |
|---|
getConcurrencySelectListResultSet, getDataType, getTypeSelectListResultSet |
| 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.DataFactory |
|---|
getDataType |
| Methods inherited from interface org.opensubsystems.patterns.listdata.persist.ListFactory |
|---|
get, getDefaultListDefinition |
| Field Detail |
|---|
protected CategoryDatabaseSchema m_schema
| Constructor Detail |
|---|
public CategoryDatabaseFactory()
throws org.opensubsystems.core.error.OSSException
org.opensubsystems.core.error.OSSException - - an error has occured| Method Detail |
|---|
public org.opensubsystems.core.data.DataObject load(java.sql.ResultSet rsQueryResults,
int[] selectedColumns,
int initialIndex)
throws org.opensubsystems.core.error.OSSDatabaseAccessException
load in interface org.opensubsystems.patterns.listdata.persist.db.ListDatabaseFactoryorg.opensubsystems.core.error.OSSDatabaseAccessException
public int setValuesForInsert(java.sql.PreparedStatement insertStatement,
org.opensubsystems.core.data.DataObject data,
int iIndex)
throws org.opensubsystems.core.error.OSSException,
java.sql.SQLException
setValuesForInsert in interface org.opensubsystems.core.persist.db.BasicDatabaseFactoryorg.opensubsystems.core.error.OSSException
java.sql.SQLException
public int setValuesForUpdate(java.sql.PreparedStatement updateStatement,
org.opensubsystems.core.data.DataObject data,
int iIndex)
throws org.opensubsystems.core.error.OSSException,
java.sql.SQLException
setValuesForUpdate in interface org.opensubsystems.core.persist.db.ModifiableDatabaseFactoryorg.opensubsystems.core.error.OSSException
java.sql.SQLException
public org.opensubsystems.core.data.DataObject get(int iId,
int iDomainId)
throws org.opensubsystems.core.error.OSSException
get in interface org.opensubsystems.core.persist.DataFactoryorg.opensubsystems.core.error.OSSException
public Category get(int iParentID,
java.lang.String strCategoryName)
throws org.opensubsystems.core.error.OSSException
get in interface CategoryFactoryiParentID - - parent id of the categorystrCategoryName - - name of the subcategory under given parent
org.opensubsystems.core.error.OSSException - - an error has occured
public org.opensubsystems.core.data.DataObject load(java.sql.ResultSet rsQueryResults,
int initialIndex)
throws org.opensubsystems.core.error.OSSDatabaseAccessException
load in interface org.opensubsystems.core.persist.db.DatabaseFactoryorg.opensubsystems.core.error.OSSDatabaseAccessException
public org.opensubsystems.core.data.DataObject create(org.opensubsystems.core.data.DataObject data)
throws org.opensubsystems.core.error.OSSException
create in interface org.opensubsystems.core.persist.BasicDataFactoryorg.opensubsystems.core.error.OSSException
public int create(java.util.Collection colDataObject)
throws org.opensubsystems.core.error.OSSException
create in interface org.opensubsystems.core.persist.BasicDataFactoryorg.opensubsystems.core.error.OSSException
public void delete(int iId,
int iDomainId)
throws org.opensubsystems.core.error.OSSException
delete in interface org.opensubsystems.core.persist.BasicDataFactoryorg.opensubsystems.core.error.OSSException
public org.opensubsystems.core.data.ModifiableDataObject save(org.opensubsystems.core.data.ModifiableDataObject data)
throws org.opensubsystems.core.error.OSSException
save in interface org.opensubsystems.core.persist.ModifiableDataFactoryorg.opensubsystems.core.error.OSSException
public boolean verifyUniqueCategory(Category category)
throws org.opensubsystems.core.error.OSSException
verifyUniqueCategory in interface CategoryFactorycategory - - Category object
org.opensubsystems.core.error.OSSException - - an error has occured
public int deleteRoot(int iId,
org.opensubsystems.patterns.listdata.data.SimpleRule listSecurityData)
throws org.opensubsystems.core.error.OSSException
deleteRoot in interface CategoryFactoryiId - - id of category that has to be deletedlistSecurityData - - security data describing what data can be deleted
org.opensubsystems.core.error.OSSException - - an error has occured
public int deleteRoots(int[] arrIds,
org.opensubsystems.patterns.listdata.data.SimpleRule listSecurityData)
throws org.opensubsystems.core.error.OSSException
deleteRoots in interface CategoryFactoryarrIds - - array of category ids that has to be deletedlistSecurityData - - security data describing what data can be deleted
org.opensubsystems.core.error.OSSException - - an error has occured
public int getActualCount(int[] arrIds)
throws org.opensubsystems.core.error.OSSException
getActualCount in interface CategoryFactoryarrIds - - array of category IDs that has to be counted
org.opensubsystems.core.error.OSSException - - an error has occured
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||