1 package org.splat.dal.bo.som;
5 * @author Daniel Brunier-Coulin
6 * @copyright OPEN CASCADE 2012-2015
9 import java.text.SimpleDateFormat;
10 import java.util.Date;
12 public class IDBuilder {
14 @SuppressWarnings("unused")
16 private int base; // Number of studies created in this cycle
18 // ==============================================================================================================================
20 // ==============================================================================================================================
22 protected IDBuilder() {
25 public IDBuilder(Date date) {
26 // -------------------------------
27 SimpleDateFormat get = new SimpleDateFormat("yyyy");
28 String year = get.format(date);
29 cycle = Integer.valueOf(year);
38 public int getBase() {
48 public void setBase(int base) {