|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.beasys.commerce.ebusiness.catalog.sql.JdbcCatalogFactory
@Deprecated public class JdbcCatalogFactory
This class provides static methods to insulate the JDBC
catalog developer from the underlying database schema.
It implements a number of methods to query the structure of
the schema and can create Category and Product Item objects
from a ResultSet.
This is an advanced (internal) class and may be subject to change.
Constructor Summary | |
---|---|
JdbcCatalogFactory(CatalogSchemaManager schema)
Deprecated This class is abstract and cannot be created. |
Method Summary | |
---|---|
protected void |
assignCatalogItemAttributes(MutableCatalogItem item,
ResultSet resultSet,
Map indexMap)
Deprecated Assigns the base class CatalogItem attributes from the ResultSet to a CatalogItem object. |
protected void |
buildCatalogItemStatement(PreparedStatement preparedStatement,
CatalogItem item,
Map indexMap)
Deprecated Assigns the attributes for a CatalogItem into a PreparedStatement. |
void |
buildCategoryStatement(PreparedStatement preparedStatement,
CategoryKey parentKey,
Category cat)
Deprecated Assigns the attributes for a Category into a PreparedStatement. |
void |
buildProductItemStatement(PreparedStatement preparedStatement,
ProductItem item)
Deprecated Assigns the attributes for a ProductItem into a PreparedStatement. |
LinkedList |
createCategory(ResultSet resultSet)
Deprecated creates a LinkedList of Category objects from a ResultSet. |
LinkedList |
createProductItem(ResultSet resultSet)
Deprecated creates a LinkedList of ProductItem objects from a ResultSet. |
String |
getCategoryColumnName(String fieldName)
Deprecated |
int |
getCategoryFieldIndex(String fieldName)
Deprecated |
String |
getCategoryTableName()
Deprecated |
protected int |
getMapFieldIndex(Map indexMap,
String fieldName)
Deprecated |
String |
getProductItemColumnName(String fieldName)
Deprecated |
int |
getProductItemFieldIndex(String fieldName)
Deprecated |
String |
getProductItemKeywordColumnName(String fieldName)
Deprecated |
String |
getProductItemKeywordTableName()
Deprecated |
String |
getProductItemTableName()
Deprecated |
protected String |
getResultSetFieldAsString(ResultSet resultSet,
Map indexMap,
String fieldName)
Deprecated |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CATALOG_ITEM_NAME
public static final String CATALOG_ITEM_SHORT_DESCRIPTION
public static final String CATALOG_ITEM_LONG_DESCRIPTION
public static final String CATALOG_ITEM_CREATOR
public static final String CATALOG_ITEM_PUBLISHER
public static final String CATALOG_ITEM_CONTRIBUTOR
public static final String CATALOG_ITEM_CREATION_DATE
public static final String CATALOG_ITEM_SOURCE
public static final String CATALOG_ITEM_LANGUAGE
public static final String CATALOG_ITEM_RELATION
public static final String CATALOG_ITEM_COVERAGE
public static final String CATALOG_ITEM_RIGHTS
public static final String CATALOG_ITEM_SMALL_IMAGE_NAME
public static final String CATALOG_ITEM_SMALL_IMAGE_ALT_TXT
public static final String CATALOG_ITEM_SMALL_IMAGE_URL
public static final String CATALOG_ITEM_SMALL_IMAGE_LANGUAGE
public static final String CATALOG_ITEM_SMALL_IMAGE_TYPE
public static final String CATALOG_ITEM_LARGE_IMAGE_NAME
public static final String CATALOG_ITEM_LARGE_IMAGE_ALT_TXT
public static final String CATALOG_ITEM_LARGE_IMAGE_URL
public static final String CATALOG_ITEM_LARGE_IMAGE_LANGUAGE
public static final String CATALOG_ITEM_LARGE_IMAGE_TYPE
public static final String CATALOG_ITEM_MODIFIED_DATE
public static final String PRODUCT_SKU
public static final String PRODUCT_FORMAT
public static final String PRODUCT_TYPE
public static final String PRODUCT_SUMMARY_DISPLAY_JSP_URL
public static final String PRODUCT_DETAIL_DISPLAY_JSP_URL
public static final String PRODUCT_MSRP_CURRENCY
public static final String PRODUCT_MSRP_AMOUNT
public static final String PRODUCT_PRICE_CURRENCY
public static final String PRODUCT_PRICE_AMOUNT
public static final String PRODUCT_IN_STOCK
public static final String PRODUCT_ESTIMATE_SHIP_TIME
public static final String PRODUCT_SPECIAL_NOTES
public static final String PRODUCT_TAX_CODE
public static final String PRODUCT_SHIPPING_CODE
public static final String PRODUCT_VISIBLE
public static final String PRODUCT_KEYWORD_SKU
public static final String PRODUCT_KEYWORD_KEYWORD
public static final String CATEGORY_ID
public static final String CATEGORY_DISPLAY_JSP_URL
public static final String CATEGORY_PARENT_ID
public static final String CATEGORY_NAME
Constructor Detail |
---|
public JdbcCatalogFactory(CatalogSchemaManager schema)
Method Detail |
---|
public String getCategoryTableName()
public String getProductItemTableName()
public String getProductItemKeywordTableName()
public String getProductItemColumnName(String fieldName)
fieldName
- the name of the field. Use the constants defined in this class.
public String getProductItemKeywordColumnName(String fieldName)
fieldName
- the name of the field (PRODUCT_KEYWORD_SKU,
PRODUCT_KEYWORD_KEYWORD).
public String getCategoryColumnName(String fieldName)
fieldName
- the name of the field. Use the constants defined in this class.
public int getCategoryFieldIndex(String fieldName)
fieldName
- the name of the field. Use the constants defined in this class.
public int getProductItemFieldIndex(String fieldName)
fieldName
- the name of the field. Use the constants defined in this class.
public LinkedList createCategory(ResultSet resultSet) throws SQLException, InvalidArgumentException
resultSet
- the SQL result set for the category table
SQLException
InvalidArgumentException
public LinkedList createProductItem(ResultSet resultSet) throws SQLException, InvalidArgumentException
resultSet
- the SQL result set for the product item table
SQLException
InvalidArgumentException
protected void assignCatalogItemAttributes(MutableCatalogItem item, ResultSet resultSet, Map indexMap) throws SQLException
item
- the Category or ProductItem to populateresultSet
- the SQL result set for the category or product itemfieldName
- the name of the field. Use the constants defined in this class.
SQLException
public void buildCategoryStatement(PreparedStatement preparedStatement, CategoryKey parentKey, Category cat) throws SQLException
preparedStatement
- the PreparedStatement to populatecat
- the Category which is the source of the values
SQLException
public void buildProductItemStatement(PreparedStatement preparedStatement, ProductItem item) throws SQLException
preparedStatement
- the PreparedStatement to populateitem
- the ProductItem which is the source of the values
SQLException
protected void buildCatalogItemStatement(PreparedStatement preparedStatement, CatalogItem item, Map indexMap) throws SQLException
preparedStatement
- the PreparedStatement to populateitem
- the Category or ProductItem which is the source of the valuesfieldName
- the name of the field. Use the constants defined in this class.
SQLException
protected String getResultSetFieldAsString(ResultSet resultSet, Map indexMap, String fieldName) throws SQLException
indexMap
- one of the column maps for the tables we supportfieldName
- the name of the field. Use the constants defined in this class.
processString
).
SQLException
protected int getMapFieldIndex(Map indexMap, String fieldName)
indexMap
- one of the column maps for the tables we supportfieldName
- the name of the field. Use the constants defined in this class.
|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |