public class StagingProxy extends Object
| Constructor and Description |
|---|
StagingProxy(DataSource dataSourceStaging) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
berichtExists(Bericht b)
bepaal of bericht bestaat aan de hand van laadprocesid, object_ref,
datum en volgordenummer.
|
void |
closeStagingProxy() |
void |
deleteByLaadProcesId(Long id) |
void |
emptyStagingDb() |
Bericht |
getBerichtById(Long id) |
List<Bericht> |
getBerichten() |
List<Bericht> |
getBerichten(int page,
int start,
int limit,
String sort,
String dir,
String filterSoort,
String filterStatus) |
long |
getBerichtenCountByJob(String jobId) |
long |
getCountBerichten(String sort,
String dir,
String filterSoort,
String filterStatus) |
long |
getCountLaadProces(String sort,
String dir,
String filterSoort,
String filterStatus) |
LaadProces |
getLaadProcesByFileName(String name) |
LaadProces |
getLaadProcesById(Long id) |
List<LaadProces> |
getLaadProcessen() |
List<LaadProces> |
getLaadprocessen(int page,
int start,
int limit,
String sort,
String dir,
String filterSoort,
String filterStatus) |
Bericht |
getOldBericht(Bericht nieuwBericht) |
void |
handleBerichtenByJob(String jobId,
long total,
BerichtenHandler handler,
boolean enablePipeline,
int transformPipelineCapacity) |
void |
loadBr(InputStream stream,
String type,
String fileName,
ProgressUpdateListener listener)
Laadt het bestand uit de stream in de database.
|
void |
setBerichtenJobByIds(long[] ids,
String jobId) |
void |
setBerichtenJobByLaadprocessen(long[] laadprocesIds,
String jobId) |
void |
setBerichtenJobByStatus(Bericht.STATUS status,
String jobId) |
void |
setBerichtenJobForUpdate(String jobId,
String soort) |
void |
updateBericht(Bericht b) |
void |
updateBerichtenDbXml(List<Bericht> berichten,
RsgbTransformer transformer) |
void |
updateBerichtProcessing(Bericht b) |
void |
writeBericht(Bericht b) |
public StagingProxy(DataSource dataSourceStaging) throws SQLException, BrmoException
SQLExceptionBrmoExceptionpublic void closeStagingProxy()
public LaadProces getLaadProcesById(Long id) throws SQLException
SQLExceptionpublic Bericht getBerichtById(Long id) throws SQLException
SQLExceptionpublic LaadProces getLaadProcesByFileName(String name) throws SQLException
SQLExceptionpublic void setBerichtenJobByStatus(Bericht.STATUS status, String jobId) throws SQLException
SQLExceptionpublic void setBerichtenJobForUpdate(String jobId, String soort) throws SQLException
SQLExceptionpublic void setBerichtenJobByIds(long[] ids,
String jobId)
throws SQLException
SQLExceptionpublic void setBerichtenJobByLaadprocessen(long[] laadprocesIds,
String jobId)
throws SQLException
SQLExceptionpublic long getBerichtenCountByJob(String jobId) throws SQLException
SQLExceptionpublic void handleBerichtenByJob(String jobId, long total, BerichtenHandler handler, boolean enablePipeline, int transformPipelineCapacity) throws Exception
Exceptionpublic void updateBerichtenDbXml(List<Bericht> berichten, RsgbTransformer transformer) throws SQLException, SAXException, IOException, TransformerException
public Bericht getOldBericht(Bericht nieuwBericht) throws SQLException
SQLExceptionpublic void updateBericht(Bericht b) throws SQLException
SQLExceptionpublic void updateBerichtProcessing(Bericht b) throws SQLException
SQLExceptionpublic void deleteByLaadProcesId(Long id) throws SQLException
SQLExceptionpublic List<LaadProces> getLaadProcessen() throws SQLException
SQLExceptionpublic List<Bericht> getBerichten() throws SQLException
SQLExceptionpublic void loadBr(InputStream stream, String type, String fileName, ProgressUpdateListener listener) throws Exception
stream - inputtype - type registratie, bijv. fileName - naam van het bestand (ter identificatie)listener - progress listenerExceptionpublic boolean berichtExists(Bericht b) throws SQLException
b - SQLExceptionpublic void writeBericht(Bericht b) throws SQLException
SQLExceptionpublic void emptyStagingDb()
throws SQLException
SQLExceptionpublic List<Bericht> getBerichten(int page, int start, int limit, String sort, String dir, String filterSoort, String filterStatus) throws SQLException
SQLExceptionpublic long getCountBerichten(String sort, String dir, String filterSoort, String filterStatus) throws SQLException
SQLExceptionpublic long getCountLaadProces(String sort, String dir, String filterSoort, String filterStatus) throws SQLException
SQLExceptionpublic List<LaadProces> getLaadprocessen(int page, int start, int limit, String sort, String dir, String filterSoort, String filterStatus) throws SQLException
SQLExceptionCopyright © 2014–2015 B3Partners B.V.. All rights reserved.