|
|||||||||
| 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
public abstract class ListDatabaseFactoryImpl
Base class for all database factory mainly collecting reusable and useful code.
| Field Summary | |
|---|---|
protected int[] |
m_arrOrderColumnCodes
Codes for columns to order the list of data object by, null if no sorting should be done. |
protected java.lang.String[] |
m_arrOrderDirections
Directions how to order the list of data objects. |
protected int[] |
m_arrShowColumnCodes
Array of attributes to retrieve for each data object. |
protected ListDatabaseSchema |
m_listSchema
Schema that can be used to execute database dependent list operations. |
| Fields inherited from class org.opensubsystems.core.persist.db.DatabaseFactoryImpl |
|---|
m_connectionFactory, m_iConcurrencySelectListResultSet, m_iDataType, m_iTypeSelectListResultSet, m_transactionFactory |
| Constructor Summary | |
|---|---|
ListDatabaseFactoryImpl(int iDataType,
int[] arrOrderColumnCodes,
java.lang.String[] arrOrderDirections,
int[] arrShowColumnCodes,
ListDatabaseSchema listSchema)
Constructor. |
|
| Method Summary | |
|---|---|
java.util.List |
get(ListOptions options)
Get list of data objects specified by the list options. |
ListDefinition |
getDefaultListDefinition()
Get the default list definition, which will be used to retrieve the initial list of data objects |
ListDatabaseSchema |
getListDatabaseSchema()
Get the list database schema used by this factory. |
| 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 |
|---|
get, getDataType |
| Methods inherited from interface org.opensubsystems.patterns.listdata.persist.db.ListDatabaseFactory |
|---|
load |
| Methods inherited from interface org.opensubsystems.core.persist.db.DatabaseFactory |
|---|
load |
| Field Detail |
|---|
protected int[] m_arrOrderColumnCodes
protected java.lang.String[] m_arrOrderDirections
protected int[] m_arrShowColumnCodes
protected ListDatabaseSchema m_listSchema
| Constructor Detail |
|---|
public ListDatabaseFactoryImpl(int iDataType,
int[] arrOrderColumnCodes,
java.lang.String[] arrOrderDirections,
int[] arrShowColumnCodes,
ListDatabaseSchema listSchema)
throws org.opensubsystems.core.error.OSSException
iDataType - - data type the factory will be used forarrOrderColumnCodes - - codes for columns to order the list of data
object by, null if no sorting should be done.arrOrderDirections - - directions how to order the list of data
objects. See ListDefinition.ORDER_XXX constants.arrShowColumnCodes - - array of attributes to retrieve for each data
object. Each attribute should have assigned
unique code that can be used to identify that
attribute and column where it is stored.listSchema - - schema that can be used to execute database dependent
list operations.
org.opensubsystems.core.error.OSSException - - an error has occured| Method Detail |
|---|
public ListDefinition getDefaultListDefinition()
getDefaultListDefinition in interface ListFactory
public java.util.List get(ListOptions options)
throws org.opensubsystems.core.error.OSSException
get in interface ListFactoryoptions - - options specifying what data to retrieve
org.opensubsystems.core.error.OSSException - - error during selectpublic ListDatabaseSchema getListDatabaseSchema()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||