public class ProductBundle extends Product
Manage Product Bundles
Product Bundles are sets of products that must be sold all together at a discount price. The bundle itself is stored as a Product at k_products table. Actual products contained into the bundle are also stored at k_products and the relationship between the bundle and its composing products is stablished throught k_prod_locats table, being one bundle location for each of its products.ClassId, STATUS_ACTIVE, STATUS_BLOCKED, STATUS_CORRUPTED, STATUS_PENDING, STATUS_RETIRED
Constructor and Description |
---|
ProductBundle() |
Modifier and Type | Method and Description |
---|---|
void |
addProduct(JDCConnection oConn,
java.lang.String sGuProduct) |
void |
addProduct(JDCConnection oConn,
java.lang.String sGuProduct,
int iPgProduct) |
boolean |
containsProduct(JDCConnection oConn,
java.lang.String sGuProduct)
Check if this bundle contains a given Product
|
Product[] |
getProducts(JDCConnection oConn) |
boolean |
removeProduct(JDCConnection oConn,
java.lang.String sGuProduct) |
addOrReplaceFare, addToCategory, checkIn, checkOut, delete, eraseLocations, getCategories, getCategoryId, getFare, getFareForDate, getFares, getFaresOfType, getFaresOfType, getFirstLocation, getIdFromName, getIdFromName, getIdFromReference, getImages, getLocations, getPosition, getShop, getShopId, removeFromCategory, salePrice, store
allcaps, allcaps, clear, clone, columns, containsKey, containsValue, entrySet, exists, get, get, getAuditClassName, getCreationDate, getDate, getDate, getDateFormated, getDateShort, getDateTime, getDateTime24, getDecimal, getDecimalFormated, getDecimalFormated, getDouble, getDoubleFormated, getFloat, getFloatFormated, getInt, getIntArray, getInteger, getIntegerArray, getIntervalPart, getItemMap, getItems, getMoney, getPrimaryKey, getShort, getSQLDate, getSQLTime, getString, getStringHtml, getStringNull, getTable, getTable, getTime, getTimeOfDay, getTimestamp, isEmpty, isNull, iterator, keySet, load, load, parseXML, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, putAll, putAll, remove, remove, replace, replace, replace, replace, replace, replace, replace, replace, setAuditTransact, setAuditUser, setCreationDate, setPrimaryKey, size, toLowerCase, toUpperCase, toXML, toXML, toXML, values
public boolean containsProduct(JDCConnection oConn, java.lang.String sGuProduct) throws java.sql.SQLException
Check if this bundle contains a given Product
oConn
- JDCConnectionsGuProduct
- GUID of Product soughtjava.sql.SQLException
public void addProduct(JDCConnection oConn, java.lang.String sGuProduct) throws java.sql.SQLException
java.sql.SQLException
public void addProduct(JDCConnection oConn, java.lang.String sGuProduct, int iPgProduct) throws java.sql.SQLException
java.sql.SQLException
public boolean removeProduct(JDCConnection oConn, java.lang.String sGuProduct) throws java.sql.SQLException
java.sql.SQLException
public Product[] getProducts(JDCConnection oConn) throws java.sql.SQLException
java.sql.SQLException