felipearon

CadastrosImpGarIn

Jun 24th, 2014
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.74 KB | None | 0 0
  1. public class CadastrosImpGarIn implements KvmSerializable {
  2.  
  3.     private int codCli;
  4.     private int codEmp;
  5.     private int codFil;
  6.     private int codMot;
  7.     private String datCol;
  8.     private String flowInstanceID;
  9.     private String flowName;
  10.     private String numDoc;
  11.     private Vector<CadastrosImpGarInTabBat> tabBat;
  12.    
  13.     public int getCodCli() {
  14.         return codCli;
  15.     }
  16.  
  17.     public void setCodCli(int codCli) {
  18.         this.codCli = codCli;
  19.     }
  20.  
  21.     public int getCodEmp() {
  22.         return codEmp;
  23.     }
  24.  
  25.     public void setCodEmp(int codEmp) {
  26.         this.codEmp = codEmp;
  27.     }
  28.  
  29.     public int getCodFil() {
  30.         return codFil;
  31.     }
  32.  
  33.     public void setCodFil(int codFil) {
  34.         this.codFil = codFil;
  35.     }
  36.  
  37.     public int getCodMot() {
  38.         return codMot;
  39.     }
  40.  
  41.     public void setCodMot(int codMot) {
  42.         this.codMot = codMot;
  43.     }
  44.  
  45.     public String getDatCol() {
  46.         return datCol;
  47.     }
  48.  
  49.     public void setDatCol(String datCol) {
  50.         this.datCol = datCol;
  51.     }
  52.  
  53.     public String getFlowInstanceID() {
  54.         return flowInstanceID;
  55.     }
  56.  
  57.     public void setFlowInstanceID(String flowInstanceID) {
  58.         this.flowInstanceID = flowInstanceID;
  59.     }
  60.  
  61.     public String getFlowName() {
  62.         return flowName;
  63.     }
  64.  
  65.     public void setFlowName(String flowName) {
  66.         this.flowName = flowName;
  67.     }
  68.  
  69.     public String getNumDoc() {
  70.         return numDoc;
  71.     }
  72.  
  73.     public void setNumDoc(String numDoc) {
  74.         this.numDoc = numDoc;
  75.     }
  76.  
  77.     public Vector<CadastrosImpGarInTabBat> getTabBat() {
  78.         return tabBat;
  79.     }
  80.  
  81.     public void setTabBat(Vector<CadastrosImpGarInTabBat> tabBat) {
  82.         this.tabBat = tabBat;
  83.     }
  84.  
  85.     public CadastrosImpGarIn() {
  86.         tabBat = new Vector<CadastrosImpGarInTabBat>();
  87.     }
  88.    
  89.     @Override
  90.     public Object getProperty(int index) {
  91.         switch (index) {
  92.         case 0:
  93.             return codCli;
  94.         case 1:
  95.             return codEmp;
  96.         case 2:
  97.             return codFil;
  98.         case 3:
  99.             return codMot;
  100.         case 4:
  101.             return datCol;
  102.         case 5:
  103.             return flowInstanceID;
  104.         case 6:
  105.             return flowName;
  106.         case 7:
  107.             return numDoc;
  108.         case 8:
  109.             return tabBat;
  110.         default:
  111.             return null;
  112.         }
  113.     }
  114.  
  115.     @Override
  116.     public int getPropertyCount() {
  117.         return 9;
  118.     }
  119.  
  120.     @SuppressWarnings("rawtypes")
  121.     @Override
  122.     public void getPropertyInfo(int index, Hashtable hash, PropertyInfo info) {
  123.         switch (index) {
  124.         case 0:
  125.             info.type = PropertyInfo.INTEGER_CLASS;
  126.             info.name = "codCli";
  127.             break;
  128.         case 1:
  129.             info.type = PropertyInfo.INTEGER_CLASS;
  130.             info.name = "codEmp";
  131.             break;         
  132.         case 2:
  133.             info.type = PropertyInfo.INTEGER_CLASS;
  134.             info.name = "codFil";
  135.             break;
  136.         case 3:
  137.             info.type = PropertyInfo.INTEGER_CLASS;
  138.             info.name = "codMot";
  139.             break;
  140.         case 4:
  141.             info.type = PropertyInfo.STRING_CLASS;
  142.             info.name = "datCol";
  143.             break;
  144.         case 5:
  145.             info.type = PropertyInfo.STRING_CLASS;
  146.             info.name = "flowInstanceID";
  147.             break;
  148.         case 6:
  149.             info.type = PropertyInfo.STRING_CLASS;
  150.             info.name = "flowName";
  151.             break;
  152.         case 7:
  153.             info.type = PropertyInfo.STRING_CLASS;
  154.             info.name = "numDoc";
  155.             break;
  156.         case 8:
  157.             info.type = PropertyInfo.VECTOR_CLASS;
  158.             info.name = "tabBat";
  159.             break;
  160.         default:
  161.             break;
  162.         }
  163.     }
  164.  
  165.     @SuppressWarnings("unchecked")
  166.     @Override
  167.     public void setProperty(int index, Object value) {
  168.         switch (index) {
  169.         case 0:
  170.             codCli = Integer.parseInt(value.toString());
  171.             break;
  172.         case 1:
  173.             codEmp = Integer.parseInt(value.toString());
  174.             break;
  175.         case 2:
  176.             codFil = Integer.parseInt(value.toString());
  177.             break;
  178.         case 3:
  179.             codMot = Integer.parseInt(value.toString());
  180.             break;
  181.         case 4:
  182.             datCol = value.toString();
  183.             break;
  184.         case 5:
  185.             flowInstanceID = value.toString();
  186.             break;
  187.         case 6:
  188.             flowName = value.toString();
  189.             break;
  190.         case 7:
  191.             numDoc = value.toString();
  192.             break;
  193.         case 8:
  194.             tabBat = (Vector<CadastrosImpGarInTabBat>) value;
  195.             break;
  196.         default:
  197.             break;
  198.         }
  199.     }
  200. }
Advertisement
Add Comment
Please, Sign In to add comment