List of usage examples for com.mongodb DBObject put
Object put(String key, Object v);
From source file:achmad.rifai.erp1.entity.dao.DAOBulanBonus.java
public void trueDelete(BulanBonus a) throws Exception { com.mongodb.DBObject p = new com.mongodb.BasicDBObject(); p.put("berkas", a.getKode()); d.getD().getCollectionFromString("bulanbonus").remove(p); }
From source file:achmad.rifai.erp1.entity.dao.DAOJabatan.java
@Override public void update(Jabatan a, Jabatan b) throws Exception { achmad.rifai.erp1.beans.Form1 f = new achmad.rifai.erp1.beans.Form1(b.getNama(), b); com.mongodb.DBObject w = new com.mongodb.BasicDBObject(); w.put("berkas", a.getNama()); d.getD().getCollectionFromString("jabatan").update(w, f.genComparasion()); }
From source file:achmad.rifai.erp1.entity.dao.DAOJabatan.java
public void trueDelete(Jabatan a) throws Exception { com.mongodb.DBObject o = new com.mongodb.BasicDBObject(); o.put("berkas", a.getNama()); d.getD().getCollectionFromString("jabatan").remove(o); }
From source file:achmad.rifai.erp1.entity.dao.DAOJurnal.java
@Override public void update(Jurnal a, Jurnal 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("jurnal").update(w, f.genComparasion()); }
From source file:achmad.rifai.erp1.entity.dao.DAOJurnal.java
public void trueDelete(Jurnal v) throws Exception { com.mongodb.DBObject o = new com.mongodb.BasicDBObject(); o.put("berkas", v.getKode()); d.getD().getCollectionFromString("jurnal").remove(o); }
From source file:achmad.rifai.erp1.entity.dao.DAOKaryawan.java
public void truedelete(Karyawan w) throws Exception { com.mongodb.DBObject o = new com.mongodb.BasicDBObject(); o.put("berkas", w.getId()); d.getD().getCollectionFromString("karyawan").remove(o); }
From source file:achmad.rifai.erp1.entity.dao.DAOKaryawan.java
@Override public void update(Karyawan a, Karyawan b) throws Exception { achmad.rifai.erp1.beans.Form1 f = new achmad.rifai.erp1.beans.Form1(b.getId(), b); com.mongodb.DBObject w = new com.mongodb.BasicDBObject(); w.put("berkas", a.getId()); d.getD().getCollectionFromString("karyawan").update(w, f.genComparasion()); }
From source file:achmad.rifai.erp1.entity.dao.DAOKeluar.java
@Override public void update(Keluar a, Keluar 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("keluar").update(w, f.genComparasion()); }
From source file:achmad.rifai.erp1.entity.dao.DAOKeluar.java
public void trueDelete(Keluar a) throws Exception { com.mongodb.DBObject o = new com.mongodb.BasicDBObject(); o.put("berkas", a.getKode()); d.getD().getCollectionFromString("keluar").remove(o); }
From source file:achmad.rifai.erp1.entity.dao.DAOLedger.java
@Override public void update(Ledger a, Ledger 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("ledger").update(w, f.genComparasion()); }