public class XrefController extends JDBCObjectController<Xref>
Xref
class. Provides methods for retrieving
and persisting customer product x-ref table records in the database.Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
The class' serialization version id.
|
ivDBObjCls, ivFieldCount, ivFieldKeyAlt, ivFieldKeyPri, ivFieldResPfx, ivSyncLast, ivSyncType, ivTableName
ivHashCode, ivHashFlds, ivObjAttrs
Constructor and Description |
---|
XrefController()
The constructor for the controller.
|
Modifier and Type | Method and Description |
---|---|
boolean |
deleteProduct(Product product)
Deletes all records from the customer product x-ref table for the given
product.
|
Xref |
get(java.lang.String code,
java.lang.String custprod)
Returns the customer product x-ref record for the given xref code and
customer product code.
|
java.util.ArrayList<Xref> |
getProduct(Product product)
Returns a collection of customer product x-ref records for the given
product.
|
java.util.ArrayList<Xref> |
getProduct(java.lang.String prodcode)
Returns a collection of customer product x-ref records for the given
product code.
|
add, add, add, arrayToMap, arrayToMap, countAll, delete, delete, deleteAll, dispose, equals, getAll, getConnection, getConnectionInfo, getController, getFieldNames, getFieldNamesForKey, getFieldNamesForUpdate, getFieldNulls, getFieldNullsForKey, getFieldNullsForUpdate, getFieldsForOrderBy, getFieldsForWhere, getFieldSize, getFieldTypes, getFieldTypesForKey, getFieldTypesForUpdate, getStatementForDelete, getStatementForGet, getStatementForGetAll, getStatementForInsert, getStatementForUpdate, getStatementKey, getStatementString, getTableName, hasFieldNamesForKey, hasFieldNamesForUpdate, isDuplicate, resultSetToArray, resultSetToMap, resultSetToMap, resultSetToObject, setConnectionInfo, setPSDeleteValues, setPSExistsValues, setPSInsertValues, setPSUpdateValues, setPSValue, update, update, valuesToObject
cloneMapAttributes, formatValue, formatValue, getHashFields, getMapArrayList, getMapAttributes, getMapBigDecimal, getMapBoolean, getMapDate, getMapDouble, getMapInteger, getMapLong, getMapMapped, getMapObject, getMapShort, getMapString, getMapString, getMapStringBuffer, getMapStringBuilder, getMapTime, getMapTimestamp, getMapVector, hashCode, setHashFields, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMapAttributes, setMapObject, setMapTime, setMapTimestamp, toStringArray
private static final long serialVersionUID
public boolean deleteProduct(Product product)
product
- (Product) The product for the records to delete.true
if the records deleted successfully,
otherwise false
.public Xref get(java.lang.String code, java.lang.String custprod)
code
- (String) The x-ref code for the desired record.custprod
- (String) The customer product code for the desired record.public java.util.ArrayList<Xref> getProduct(Product product)
product
- (Product) The product for the desired records.public java.util.ArrayList<Xref> getProduct(java.lang.String prodcode)
prodcode
- (String) The product code for the desired records.