Class BarcodeDAO

java.lang.Object
ru.bgcrm.dao.CommonDAO
org.bgerp.plugin.inventoru.dao.BarcodeDAO

public class BarcodeDAO extends CommonDAO
DAO for inventoru_item_barcode — nomenclature barcodes, mostly imported from 1C (barcode register), used to resolve scanner/camera input to an item.
  • Constructor Details

  • Method Details

    • upsert

      public void upsert(String barcode, int itemId) throws SQLException
      Binds a barcode to an item; an existing binding of the same barcode is re-pointed.
      Throws:
      SQLException
    • getItemIdByBarcode

      public int getItemIdByBarcode(String barcode) throws SQLException
      Returns:
      item id for the barcode, or 0 if unknown.
      Throws:
      SQLException