@Deprecated
private void initSeqNo() {
String location = "initSeqNo";
DuccId jobid = null;
PropertiesFileManager pfm = (PropertiesFileManager) propertiesFileManager;
if(!pfm.containsKey(constSeqNo)) {
int biggest = -1;
try {
int seqno = Integer.valueOf(pfm.get(constJobSeqNo,"-1"));
if(seqno > biggest) {
biggest = seqno;
}
}
catch(Exception e) {
logger.error(location, jobid, e);
}
try {
int seqno = Integer.valueOf(pfm.get(constServiceSeqNo,"-1"));
if(seqno > biggest) {
biggest = seqno;
}
}
catch(Exception e) {
logger.error(location, jobid, e);
}
try {
int seqno = Integer.valueOf(pfm.get(constReservationSeqNo,"-1"));
if(seqno > biggest) {
biggest = seqno;
}
}
catch(Exception e) {
logger.error(location, jobid, e);
}
try {
pfm.set(constSeqNo,""+biggest);
pfm.remove(constServiceSeqNo);
pfm.remove(constReservationSeqNo);
pfm.remove(constJobSeqNo);
}
catch(Exception e) {
logger.error(location, jobid, e);
}
}