List of usage examples for com.mongodb DBObject put
Object put(String key, Object v);
From source file:achmad.rifai.erp1.entity.dao.DAOLedger.java
public void trueDelete(Ledger a) throws Exception { com.mongodb.DBObject o = new com.mongodb.BasicDBObject(); o.put("berkas", a.getKode()); d.getD().getCollectionFromString("ledger").remove(o); }
From source file:achmad.rifai.erp1.entity.dao.DAOPelanggan.java
@Override public void update(Pelanggan a, Pelanggan b) throws Exception { achmad.rifai.erp1.beans.Form1 f = new achmad.rifai.erp1.beans.Form1(b.getKode(), b); com.mongodb.DBObject w = new com.mongodb.BasicDBObject(); w.put("berkas", a.getKode()); d.getD().getCollectionFromString("pelanggan").update(w, f.genComparasion()); }
From source file:achmad.rifai.erp1.entity.dao.DAOPelanggan.java
public void trueDelete(Pelanggan a) throws Exception { com.mongodb.DBObject o = new com.mongodb.BasicDBObject(); o.put("berkas", a.getKode()); d.getD().getCollectionFromString("pelanggan").remove(o); }
From source file:achmad.rifai.erp1.entity.dao.DAOPembelian.java
@Override public void update(Pembelian a, Pembelian b) throws Exception { achmad.rifai.erp1.beans.Form3 f = new achmad.rifai.erp1.beans.Form3(b.getStruk(), b.getSuplier(), "" + b.getTgl(), b); com.mongodb.DBObject w = new com.mongodb.BasicDBObject(); w.put("berkas1", a.getStruk()); w.put("berkas2", a.getSuplier()); w.put("berkas3", "" + a.getTgl()); d.getD().getCollectionFromString("pembelian").update(w, f.genComparator()); }
From source file:achmad.rifai.erp1.entity.dao.DAOPembelian.java
public void trueDelete(Pembelian v) throws Exception { com.mongodb.DBObject o = new com.mongodb.BasicDBObject(); o.put("berkas1", v.getStruk()); o.put("berkas2", v.getSuplier()); o.put("berkas3", "" + v.getTgl()); d.getD().getCollectionFromString("pembelian").remove(o); }
From source file:achmad.rifai.erp1.entity.dao.DAOPenjualan.java
@Override public void update(Penjualan a, Penjualan b) throws Exception { achmad.rifai.erp1.beans.Form1 f = new achmad.rifai.erp1.beans.Form1(b.getNota(), b); com.mongodb.DBObject w = new com.mongodb.BasicDBObject(); w.put("berkas", a.getNota()); d.getD().getCollectionFromString("penjualan").update(w, f.genComparasion()); }
From source file:achmad.rifai.erp1.entity.dao.DAOPenjualan.java
public void trueDelete(Penjualan v) throws Exception { com.mongodb.DBObject o = new com.mongodb.BasicDBObject(); o.put("berkas", v.getNota()); d.getD().getCollectionFromString("penjualan").remove(o); }
From source file:achmad.rifai.erp1.entity.dao.DAOPesan.java
@Override public void update(Pesan a, Pesan b) throws Exception { achmad.rifai.erp1.beans.Form1 f = new achmad.rifai.erp1.beans.Form1(b.getKode(), b); com.mongodb.DBObject w = new com.mongodb.BasicDBObject(); w.put("berkas", a.getKode()); d.getD().getCollectionFromString("pesan").update(w, f.genComparasion()); }
From source file:achmad.rifai.erp1.entity.dao.DAOPesan.java
public void trueDelete(Pesan v) throws Exception { com.mongodb.DBObject o = new com.mongodb.BasicDBObject(); o.put("berkas", v.getKode()); d.getD().getCollectionFromString("pesan").remove(o); }
From source file:achmad.rifai.erp1.entity.dao.DAORekening.java
@Override public void update(Rekening a, Rekening b) throws Exception { achmad.rifai.erp1.beans.Form1 f = new achmad.rifai.erp1.beans.Form1(b.getKode(), b); com.mongodb.DBObject w = new com.mongodb.BasicDBObject(); w.put("berkas", a.getKode()); d.getD().getCollectionFromString("rekening").update(w, f.genComparasion()); }