Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CadastrosImpGarIn implements KvmSerializable {
- private int codCli;
- private int codEmp;
- private int codFil;
- private int codMot;
- private String datCol;
- private String flowInstanceID;
- private String flowName;
- private String numDoc;
- private Vector<CadastrosImpGarInTabBat> tabBat;
- public int getCodCli() {
- return codCli;
- }
- public void setCodCli(int codCli) {
- this.codCli = codCli;
- }
- public int getCodEmp() {
- return codEmp;
- }
- public void setCodEmp(int codEmp) {
- this.codEmp = codEmp;
- }
- public int getCodFil() {
- return codFil;
- }
- public void setCodFil(int codFil) {
- this.codFil = codFil;
- }
- public int getCodMot() {
- return codMot;
- }
- public void setCodMot(int codMot) {
- this.codMot = codMot;
- }
- public String getDatCol() {
- return datCol;
- }
- public void setDatCol(String datCol) {
- this.datCol = datCol;
- }
- public String getFlowInstanceID() {
- return flowInstanceID;
- }
- public void setFlowInstanceID(String flowInstanceID) {
- this.flowInstanceID = flowInstanceID;
- }
- public String getFlowName() {
- return flowName;
- }
- public void setFlowName(String flowName) {
- this.flowName = flowName;
- }
- public String getNumDoc() {
- return numDoc;
- }
- public void setNumDoc(String numDoc) {
- this.numDoc = numDoc;
- }
- public Vector<CadastrosImpGarInTabBat> getTabBat() {
- return tabBat;
- }
- public void setTabBat(Vector<CadastrosImpGarInTabBat> tabBat) {
- this.tabBat = tabBat;
- }
- public CadastrosImpGarIn() {
- tabBat = new Vector<CadastrosImpGarInTabBat>();
- }
- @Override
- public Object getProperty(int index) {
- switch (index) {
- case 0:
- return codCli;
- case 1:
- return codEmp;
- case 2:
- return codFil;
- case 3:
- return codMot;
- case 4:
- return datCol;
- case 5:
- return flowInstanceID;
- case 6:
- return flowName;
- case 7:
- return numDoc;
- case 8:
- return tabBat;
- default:
- return null;
- }
- }
- @Override
- public int getPropertyCount() {
- return 9;
- }
- @SuppressWarnings("rawtypes")
- @Override
- public void getPropertyInfo(int index, Hashtable hash, PropertyInfo info) {
- switch (index) {
- case 0:
- info.type = PropertyInfo.INTEGER_CLASS;
- info.name = "codCli";
- break;
- case 1:
- info.type = PropertyInfo.INTEGER_CLASS;
- info.name = "codEmp";
- break;
- case 2:
- info.type = PropertyInfo.INTEGER_CLASS;
- info.name = "codFil";
- break;
- case 3:
- info.type = PropertyInfo.INTEGER_CLASS;
- info.name = "codMot";
- break;
- case 4:
- info.type = PropertyInfo.STRING_CLASS;
- info.name = "datCol";
- break;
- case 5:
- info.type = PropertyInfo.STRING_CLASS;
- info.name = "flowInstanceID";
- break;
- case 6:
- info.type = PropertyInfo.STRING_CLASS;
- info.name = "flowName";
- break;
- case 7:
- info.type = PropertyInfo.STRING_CLASS;
- info.name = "numDoc";
- break;
- case 8:
- info.type = PropertyInfo.VECTOR_CLASS;
- info.name = "tabBat";
- break;
- default:
- break;
- }
- }
- @SuppressWarnings("unchecked")
- @Override
- public void setProperty(int index, Object value) {
- switch (index) {
- case 0:
- codCli = Integer.parseInt(value.toString());
- break;
- case 1:
- codEmp = Integer.parseInt(value.toString());
- break;
- case 2:
- codFil = Integer.parseInt(value.toString());
- break;
- case 3:
- codMot = Integer.parseInt(value.toString());
- break;
- case 4:
- datCol = value.toString();
- break;
- case 5:
- flowInstanceID = value.toString();
- break;
- case 6:
- flowName = value.toString();
- break;
- case 7:
- numDoc = value.toString();
- break;
- case 8:
- tabBat = (Vector<CadastrosImpGarInTabBat>) value;
- break;
- default:
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment