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 |
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,
StringBuilder loadLog) |
String |
getWaitingJobId() |
void |
handleBerichtenByJob(String jobId,
long total,
BerichtenHandler handler,
boolean enablePipeline,
int transformPipelineCapacity,
boolean orderBerichten) |
void |
loadBr(InputStream stream,
String type,
String fileName,
ProgressUpdateListener listener)
Laadt het bestand uit de stream in de database.
|
long |
setBerichtenJobByIds(long[] ids,
String jobId) |
long |
setBerichtenJobByLaadprocessen(long[] laadprocesIds,
String jobId) |
long |
setBerichtenJobByStatus(Bericht.STATUS status,
String jobId) |
long |
setBerichtenJobByWaitingJobId(String jobId,
String waitingJobId) |
long |
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 String getWaitingJobId() throws SQLException
SQLExceptionpublic long setBerichtenJobByWaitingJobId(String jobId, String waitingJobId) throws SQLException
SQLExceptionpublic long setBerichtenJobByStatus(Bericht.STATUS status, String jobId) throws SQLException
SQLExceptionpublic long setBerichtenJobForUpdate(String jobId, String soort) throws SQLException
SQLExceptionpublic long setBerichtenJobByIds(long[] ids,
String jobId)
throws SQLException
SQLExceptionpublic long setBerichtenJobByLaadprocessen(long[] laadprocesIds,
String jobId)
throws SQLException
SQLExceptionpublic void handleBerichtenByJob(String jobId, long total, BerichtenHandler handler, boolean enablePipeline, int transformPipelineCapacity, boolean orderBerichten) throws Exception
Exceptionpublic void updateBerichtenDbXml(List<Bericht> berichten, RsgbTransformer transformer) throws SQLException, SAXException, IOException, TransformerException
public Bericht getOldBericht(Bericht nieuwBericht, StringBuilder loadLog) 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–2016 B3Partners B.V.. All rights reserved.