
public class StagingProxy extends Object
| Constructor and Description |
|---|
StagingProxy(DataSource dataSourceStaging) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cleanJob() |
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 |
getCountJob() |
long |
getCountLaadProces(String sort,
String dir,
String filterSoort,
String filterStatus) |
Bericht |
getExistingBericht(Bericht b)
bepaal of bericht bestaat aan de hand van laadprocesid, object_ref,
datum en volgordenummer.
|
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) |
Long[] |
getLaadProcessenIds(String sort,
String dir,
String filterSoort,
String filterStatus) |
(package private) Bericht |
getOldBericht(Bericht nieuwBericht) |
Bericht |
getOldBericht(Bericht nieuwBericht,
StringBuilder loadLog) |
void |
handleBerichtenByJob(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.
|
boolean |
removeJob() |
void |
setBatchCapacity(Integer batchCapacity) |
long |
setBerichtenJobByIds(long[] ids,
boolean orderBerichten) |
long |
setBerichtenJobByLaadprocessen(long[] laadprocesIds,
boolean orderBerichten) |
long |
setBerichtenJobByStatus(Bericht.STATUS status,
boolean orderBerichten) |
long |
setBerichtenJobForUpdate(String soort,
boolean orderBerichten) |
void |
setLimitStandBerichtenToTransform(Integer limitStandBerichtenToTransform) |
void |
updateBericht(Bericht b) |
void |
updateBerichtenDbXml(List<Bericht> berichten,
RsgbTransformer transformer) |
void |
updateBerichtProcessing(Bericht b) |
void |
updateLaadProcesStatus(LaadProces lp,
LaadProces.STATUS status,
String opmerking) |
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 Bericht getExistingBericht(Bericht b) throws SQLException
b - het bestaande berichtSQLException - if anypublic long getCountJob()
throws SQLException
SQLExceptionpublic boolean removeJob()
throws SQLException
SQLExceptionpublic boolean cleanJob()
throws SQLException
SQLExceptionpublic long setBerichtenJobByStatus(Bericht.STATUS status, boolean orderBerichten) throws SQLException
SQLExceptionpublic long setBerichtenJobForUpdate(String soort, boolean orderBerichten) throws SQLException
SQLExceptionpublic long setBerichtenJobByIds(long[] ids,
boolean orderBerichten)
throws SQLException
SQLExceptionpublic long setBerichtenJobByLaadprocessen(long[] laadprocesIds,
boolean orderBerichten)
throws SQLException
SQLExceptionpublic void handleBerichtenByJob(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 listenerException - if anypublic void writeBericht(Bericht b) throws SQLException
SQLExceptionpublic void updateLaadProcesStatus(LaadProces lp, LaadProces.STATUS status, String opmerking) 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
SQLExceptionpublic Long[] getLaadProcessenIds(String sort, String dir, String filterSoort, String filterStatus) throws SQLException
SQLExceptionpublic void setBatchCapacity(Integer batchCapacity)
batchCapacity - the batchCapacity to setpublic void setLimitStandBerichtenToTransform(Integer limitStandBerichtenToTransform)
Copyright © 2014–2017 B3Partners B.V.. All rights reserved.