org.opensubsystems.inventory.persist.db
Class ItemUnitIdentificationViewDatabaseFactory

java.lang.Object
  extended by org.opensubsystems.core.persist.db.DatabaseFactoryImpl
      extended by org.opensubsystems.patterns.listdata.persist.db.impl.ListDatabaseFactoryImpl
          extended by org.opensubsystems.inventory.persist.db.ItemUnitIdentificationViewDatabaseFactory
All Implemented Interfaces:
org.opensubsystems.core.persist.DataFactory, org.opensubsystems.core.persist.db.DatabaseFactory, ItemUnitIdentificationViewFactory, org.opensubsystems.patterns.listdata.persist.db.ListDatabaseFactory, org.opensubsystems.patterns.listdata.persist.ListFactory

public class ItemUnitIdentificationViewDatabaseFactory
extends org.opensubsystems.patterns.listdata.persist.db.impl.ListDatabaseFactoryImpl
implements ItemUnitIdentificationViewFactory

Data factory to retrieve item unit identification views from the persistence store.

Version:
$Id: ItemUnitIdentificationViewDatabaseFactory.java,v 1.10 2007/03/24 08:33:30 bastafidli Exp $
Author:
Julo Legeny
Code reviewer:
Miro Halas
Code reviewed:
1.5 2006/08/08 16:49:01 jlegeny

Field Summary
protected  ItemUnitIdentificationViewDatabaseSchema 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
ItemUnitIdentificationViewDatabaseFactory()
          Default constructor.
 
Method Summary
 org.opensubsystems.core.data.DataObject get(int iId, int iDomainId)
          
 java.util.List get(org.opensubsystems.patterns.listdata.data.SimpleRule securityData, int iInventoryId, java.util.Collection colIdentificationIds)
          Get specified identifications from the specified inventory.
 java.util.List getRetired(org.opensubsystems.patterns.listdata.data.SimpleRule securityData, int iInventoryId)
          Get identifications which are retired from the specified inventory.
 java.util.List getRetired(org.opensubsystems.patterns.listdata.data.SimpleRule securityData, int iInventoryId, java.util.Collection colIdentificationIds)
          Get specified identifications which are retired from the specified inventory.
 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)
          
 
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.patterns.listdata.persist.ListFactory
get, getDefaultListDefinition
 

Field Detail

m_schema

protected ItemUnitIdentificationViewDatabaseSchema m_schema
Schema to use to execute database dependent operations.

Constructor Detail

ItemUnitIdentificationViewDatabaseFactory

public ItemUnitIdentificationViewDatabaseFactory()
                                          throws org.opensubsystems.core.error.OSSException
Default constructor.

Throws:
org.opensubsystems.core.error.OSSException - - an error has occured
Method Detail

load

public org.opensubsystems.core.data.DataObject load(java.sql.ResultSet rsQueryResults,
                                                    int[] selectedColumns,
                                                    int initialIndex)
                                             throws org.opensubsystems.core.error.OSSDatabaseAccessException

Specified by:
load in interface org.opensubsystems.patterns.listdata.persist.db.ListDatabaseFactory
Throws:
org.opensubsystems.core.error.OSSDatabaseAccessException

get

public org.opensubsystems.core.data.DataObject get(int iId,
                                                   int iDomainId)
                                            throws org.opensubsystems.core.error.OSSException

Specified by:
get in interface org.opensubsystems.core.persist.DataFactory
Throws:
org.opensubsystems.core.error.OSSException

load

public org.opensubsystems.core.data.DataObject load(java.sql.ResultSet rsQueryResults,
                                                    int initialIndex)
                                             throws org.opensubsystems.core.error.OSSDatabaseAccessException

Specified by:
load in interface org.opensubsystems.core.persist.db.DatabaseFactory
Throws:
org.opensubsystems.core.error.OSSDatabaseAccessException

get

public java.util.List get(org.opensubsystems.patterns.listdata.data.SimpleRule securityData,
                          int iInventoryId,
                          java.util.Collection colIdentificationIds)
                   throws org.opensubsystems.core.error.OSSException
Get specified identifications from the specified inventory.

Specified by:
get in interface ItemUnitIdentificationViewFactory
Parameters:
securityData - - data describing security for the data objects which should be retrieved
iInventoryId - - inventory id from where to retrieve the data
colIdentificationIds - - collection of identification IDs to retrieve
Returns:
List - list of ItemUnitIdentificationView
Throws:
org.opensubsystems.core.error.OSSException - - an error has occured

getRetired

public java.util.List getRetired(org.opensubsystems.patterns.listdata.data.SimpleRule securityData,
                                 int iInventoryId)
                          throws org.opensubsystems.core.error.OSSException
Get identifications which are retired from the specified inventory.

Specified by:
getRetired in interface ItemUnitIdentificationViewFactory
Parameters:
securityData - - data describing security for the data objects which should be retrieved
iInventoryId - - inventory id from where to retrieve the data
Returns:
List - list of ItemUnitIdentificationView which are retired
Throws:
org.opensubsystems.core.error.OSSException - - an error has occured

getRetired

public java.util.List getRetired(org.opensubsystems.patterns.listdata.data.SimpleRule securityData,
                                 int iInventoryId,
                                 java.util.Collection colIdentificationIds)
                          throws org.opensubsystems.core.error.OSSException
Get specified identifications which are retired from the specified inventory.

Specified by:
getRetired in interface ItemUnitIdentificationViewFactory
Parameters:
securityData - - data describing security for the data objects which should be retrieved
iInventoryId - - inventory id from where to retrieve the data
colIdentificationIds - - collection of identification IDs to retrieve if they are retired, if some of the IDs are not retired they won't be returned, if null then all retired will be returned
Returns:
List - list of ItemUnitIdentificationView which are retired
Throws:
org.opensubsystems.core.error.OSSException - - an error has occured


Copyright © 2003 - 2006 OpenSubsystems s.r.o.