public Object doInPersistenceBroker(PersistenceBroker pb) throws PersistenceBrokerException { pb.clearCache(); return null; } });
public Object doInPersistenceBroker(PersistenceBroker pb) throws PersistenceBrokerException { pb.removeFromCache(entityOrId); return null; } });
public Object doInPersistenceBroker(PersistenceBroker pb) throws PersistenceBrokerException { pb.delete(entity); return null; } });
public Object doInPersistenceBroker(PersistenceBroker pb) throws PersistenceBrokerException { Identity id = pb.serviceIdentity().buildIdentity(entityClass, idValue); Object result = pb.getObjectByIdentity(id); if (result == null) { throw new ObjectRetrievalFailureException(entityClass, idValue); } return result; } });
/** * Set the JDBC Connection Descriptor alias of the PersistenceBroker * configuration to use. Default is the default connection configured for OJB. */ public void setJcdAlias(String jcdAlias) { this.pbKey = new PBKey(jcdAlias); }
public Object doInPersistenceBroker(PersistenceBroker pb) throws PersistenceBrokerException { pb.store(entity); return null; } });
public Object doInPersistenceBroker(PersistenceBroker pb) throws PersistenceBrokerException, LookupException, SQLException { return pb.getCollectionByQuery(ManageableArrayList.class, query); } }
public Object doInPersistenceBroker(PersistenceBroker pb) throws PersistenceBrokerException { return pb.getReportQueryIteratorByQuery(query); } });
public Object doInPersistenceBroker(PersistenceBroker pb) throws PersistenceBrokerException { pb.deleteByQuery(query); return null; } });
public Object doInPersistenceBroker(PersistenceBroker pb) throws PersistenceBrokerException { pb.retrieveReference(credential, "user"); return null; } }
/** * Return the JDBC Connection Descriptor alias of the PersistenceBroker * configuration to use. */ public String getJcdAlias() { return (this.pbKey != null ? this.pbKey.getAlias() : null); }
/** * Set the JDBC Connection Descriptor alias of the PersistenceBroker * configuration to use. Default is the default connection configured for OJB. */ public void setJcdAlias(String jcdAlias) { this.pbKey = new PBKey(jcdAlias); }
public Object doInPersistenceBroker(PersistenceBroker pb) throws PersistenceBrokerException { pb.store(entity); return null; } });
public Object doInPersistenceBroker(PersistenceBroker pb) throws PersistenceBrokerException { pb.clearCache(); return null; } });
public Object doInPersistenceBroker(PersistenceBroker pb) throws PersistenceBrokerException { pb.removeFromCache(entityOrId); return null; } });
public Object doInPersistenceBroker(PersistenceBroker pb) throws PersistenceBrokerException { pb.delete(entity); return null; } });
public Object doInPersistenceBroker(PersistenceBroker pb) throws PersistenceBrokerException { pb.deleteByQuery(query); return null; } });
/** * Set the JDBC Connection Descriptor alias of the PersistenceBroker * configuration to use. Default is the default connection configured for OJB. */ public void setJcdAlias(String jcdAlias) { this.pbKey = new PBKey(jcdAlias); }
public Object doInPersistenceBroker(PersistenceBroker pb) throws PersistenceBrokerException { pb.removeFromCache(entityOrId); return null; } });
public Object doInPersistenceBroker(PersistenceBroker pb) throws PersistenceBrokerException { pb.delete(entity); return null; } });