/**
 ** Please don't modify this file.
 ** This file was generated by the Software AG, EntireX Java Wrapper
 ** from the IDL file C:/Documents and Settings/Admin/Bureau/BROKERS/nwlwclm1/nwlwclm1.idl.
 **
 ** @author    Software AG
 ** @version   EntireX Wrapper, Version: 7.2.1.50, Date: 06 Mar 2006 (1.71.2.2)
 **
 **/

import java.util.Date;
import java.math.BigDecimal;
import com.softwareag.entirex.aci.*;

public class Jwlwclm1 extends RPCService {

	public static final String DEFAULT_BROKERID = "213.41.17.150:2200";
	public static final String DEFAULT_SERVER = "RPC/SRV1/CALLNAT";

	public Jwlwclm1() {
		super();
	}

	public Jwlwclm1(Broker broker) {
		this(broker, DEFAULT_SERVER);
	}

	public Jwlwclm1(BrokerService bs) {
		this(bs.getBroker(), bs.toString());
	}

	public Jwlwclm1(Broker broker, String serverAddr) {
		super(broker, serverAddr, "Jwlwclm1", true);
	}

	public static String getStubVersion() {
		return "EntireX RPC for Java Stub Version=7.2.1, Patch Level=50";
	}

	private Nwlwclm1Axwebent nwlwclm1Axwebent;

	public void setNwlwclm1Axwebent(Nwlwclm1Axwebent p) {
		nwlwclm1Axwebent = p;
	}

	public Nwlwclm1Axwebent getNwlwclm1Axwebent() {
		return nwlwclm1Axwebent;
	}

	private Nwlwclm1Awlwclm1 nwlwclm1Awlwclm1;

	public void setNwlwclm1Awlwclm1(Nwlwclm1Awlwclm1 p) {
		nwlwclm1Awlwclm1 = p;
	}

	public Nwlwclm1Awlwclm1 getNwlwclm1Awlwclm1() {
		return nwlwclm1Awlwclm1;
	}

	private final static byte[] NWLWCLM1_FORMAT =
			( "MG1,1MN3,0MA2,0MA8,0MN8,0MA8,0MA8,0MA8,0MA15,0MA2,0MA3,0MA3,"
			  + "0MA11,0MA8,0MA8,0MA1,0MN2,0MN1,0MG2,1,5MA4,0MA65,0MA1,0MN2,"
			  + "0MG2,0MG1,0MG1,1MA2,0MA11,0MA4,0MA1,0MN8,0MA1,0MA4,0MA1,"
			  + "0MA4,0MA1,0MP9,0MG1,0." ).getBytes();

	public void nwlwclm1() throws BrokerException {

		buildHeader (NWLWCLM1_FORMAT, "38", 516, 0, "NWLWCLM1", true, 1110, true, false, 2000);
if (nwlwclm1Axwebent == null) nwlwclm1Axwebent = new Nwlwclm1Axwebent();
		if ( getVersion() >= 2000 ) {
			nwlwclm1Axwebent.add();
		} else {
		super.marshal.addDataN(nwlwclm1Axwebent.dbid, 3, 0);
		super.marshal.addDataA(nwlwclm1Axwebent.cible_exploitant, 2);
		super.marshal.addDataA(nwlwclm1Axwebent.groupe_exploitant, 8);
		super.marshal.addDataN(nwlwclm1Axwebent.numero_session, 8, 0);
		super.marshal.addDataA(nwlwclm1Axwebent.utilisateur, 8);
		super.marshal.addDataA(nwlwclm1Axwebent.transaction, 8);
		super.marshal.addDataA(nwlwclm1Axwebent.fonction, 8);
		super.marshal.addDataA(nwlwclm1Axwebent.date_time_deb, 15);
		super.marshal.addDataA(nwlwclm1Axwebent.cd_cible, 2);
		super.marshal.addDataA(nwlwclm1Axwebent.cd_stegrp, 3);
		super.marshal.addDataA(nwlwclm1Axwebent.cd_titre, 3);
		super.marshal.addDataA(nwlwclm1Axwebent.num_cli_ref, 11);
		super.marshal.addDataA(nwlwclm1Axwebent.mot_passe_appl, 8);
		super.marshal.addDataA(nwlwclm1Axwebent.cd_application, 8);
		super.marshal.addDataA(nwlwclm1Axwebent.type_user, 1);
		super.marshal.addDataN(nwlwclm1Axwebent.code_retour, 2, 0);
		super.marshal.addDataN(nwlwclm1Axwebent.nb_ano, 1, 0);
		if (nwlwclm1Axwebent.t_ano == null) nwlwclm1Axwebent.t_ano = new Nwlwclm1AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwlwclm1Axwebent.t_ano[i0] == null) nwlwclm1Axwebent.t_ano[i0] = new Nwlwclm1AxwebentT_ano();
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwclm1Axwebent.t_ano[i0].code_ano, 4);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwclm1Axwebent.t_ano[i0].lib_ano, 65);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwclm1Axwebent.t_ano[i0].type_ano, 1);
		for (int i0=0; i0<5; i0++) super.marshal.addDataN(nwlwclm1Axwebent.t_ano[i0].num_data, 2, 0);
		}
if (nwlwclm1Awlwclm1 == null) nwlwclm1Awlwclm1 = new Nwlwclm1Awlwclm1();
		if ( getVersion() >= 2000 ) {
			nwlwclm1Awlwclm1.add();
		} else {
		super.marshal.addDataA(nwlwclm1Awlwclm1.cd_cible, 2);
		super.marshal.addDataA(nwlwclm1Awlwclm1.num_cli, 11);
		super.marshal.addDataA(nwlwclm1Awlwclm1.type_adresse, 4);
		super.marshal.addDataA(nwlwclm1Awlwclm1.etat_adresse, 1);
		super.marshal.addDataN(nwlwclm1Awlwclm1.dt_debval_cpl, 8, 0);
		super.marshal.addDataA(nwlwclm1Awlwclm1.niveau, 1);
		super.marshal.addDataA(nwlwclm1Awlwclm1.cd_reponse, 4);
		super.marshal.addDataA(nwlwclm1Awlwclm1.type_cloture, 1);
		super.marshal.addDataA(nwlwclm1Awlwclm1.cd_zpo, 4);
		super.marshal.addDataA(nwlwclm1Awlwclm1.type_portage, 1);
		super.marshal.addDataN(nwlwclm1Awlwclm1.isn_kl_mere, 9, 0);
		}

		callServer();

		if (nwlwclm1Axwebent == null) nwlwclm1Axwebent = new Nwlwclm1Axwebent();
		if ( getVersion() >= 2000 ) {
			nwlwclm1Axwebent.get();
		} else {
		nwlwclm1Axwebent.dbid = super.marshal.getDataN(3, 0);
		nwlwclm1Axwebent.cible_exploitant = super.marshal.getDataA(2);
		nwlwclm1Axwebent.groupe_exploitant = super.marshal.getDataA(8);
		nwlwclm1Axwebent.numero_session = super.marshal.getDataN(8, 0);
		nwlwclm1Axwebent.utilisateur = super.marshal.getDataA(8);
		nwlwclm1Axwebent.transaction = super.marshal.getDataA(8);
		nwlwclm1Axwebent.fonction = super.marshal.getDataA(8);
		nwlwclm1Axwebent.date_time_deb = super.marshal.getDataA(15);
		nwlwclm1Axwebent.cd_cible = super.marshal.getDataA(2);
		nwlwclm1Axwebent.cd_stegrp = super.marshal.getDataA(3);
		nwlwclm1Axwebent.cd_titre = super.marshal.getDataA(3);
		nwlwclm1Axwebent.num_cli_ref = super.marshal.getDataA(11);
		nwlwclm1Axwebent.mot_passe_appl = super.marshal.getDataA(8);
		nwlwclm1Axwebent.cd_application = super.marshal.getDataA(8);
		nwlwclm1Axwebent.type_user = super.marshal.getDataA(1);
		nwlwclm1Axwebent.code_retour = super.marshal.getDataN(2, 0);
		nwlwclm1Axwebent.nb_ano = super.marshal.getDataN(1, 0);
				if (nwlwclm1Axwebent.t_ano == null) nwlwclm1Axwebent.t_ano = new Nwlwclm1AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwlwclm1Axwebent.t_ano[i0] == null) nwlwclm1Axwebent.t_ano[i0] = new Nwlwclm1AxwebentT_ano();
		for (int i0=0; i0<5; i0++) nwlwclm1Axwebent.t_ano[i0].code_ano = super.marshal.getDataA(4);
		for (int i0=0; i0<5; i0++) nwlwclm1Axwebent.t_ano[i0].lib_ano = super.marshal.getDataA(65);
		for (int i0=0; i0<5; i0++) nwlwclm1Axwebent.t_ano[i0].type_ano = super.marshal.getDataA(1);
		for (int i0=0; i0<5; i0++) nwlwclm1Axwebent.t_ano[i0].num_data = super.marshal.getDataN(2, 0);
		}
		if (nwlwclm1Awlwclm1 == null) nwlwclm1Awlwclm1 = new Nwlwclm1Awlwclm1();
		if ( getVersion() >= 2000 ) {
			nwlwclm1Awlwclm1.get();
		} else {
		nwlwclm1Awlwclm1.cd_cible = super.marshal.getDataA(2);
		nwlwclm1Awlwclm1.num_cli = super.marshal.getDataA(11);
		nwlwclm1Awlwclm1.type_adresse = super.marshal.getDataA(4);
		nwlwclm1Awlwclm1.etat_adresse = super.marshal.getDataA(1);
		nwlwclm1Awlwclm1.dt_debval_cpl = super.marshal.getDataN(8, 0);
		nwlwclm1Awlwclm1.niveau = super.marshal.getDataA(1);
		nwlwclm1Awlwclm1.cd_reponse = super.marshal.getDataA(4);
		nwlwclm1Awlwclm1.type_cloture = super.marshal.getDataA(1);
		nwlwclm1Awlwclm1.cd_zpo = super.marshal.getDataA(4);
		nwlwclm1Awlwclm1.type_portage = super.marshal.getDataA(1);
		nwlwclm1Awlwclm1.isn_kl_mere = super.marshal.getDataN(9, 0);
		}

	}

	public class Nwlwclm1Axwebent {
		public BigDecimal dbid;
		public String cible_exploitant;
		public String groupe_exploitant;
		public BigDecimal numero_session;
		public String utilisateur;
		public String transaction;
		public String fonction;
		public String date_time_deb;
		public String cd_cible;
		public String cd_stegrp;
		public String cd_titre;
		public String num_cli_ref;
		public String mot_passe_appl;
		public String cd_application;
		public String type_user;
		public BigDecimal code_retour;
		public BigDecimal nb_ano;
		public Nwlwclm1AxwebentT_ano[] t_ano;
		public void add() throws BrokerException {
			Jwlwclm1.super.marshal.addDataN(dbid, 3, 0);
			Jwlwclm1.super.marshal.addDataA(cible_exploitant, 2);
			Jwlwclm1.super.marshal.addDataA(groupe_exploitant, 8);
			Jwlwclm1.super.marshal.addDataN(numero_session, 8, 0);
			Jwlwclm1.super.marshal.addDataA(utilisateur, 8);
			Jwlwclm1.super.marshal.addDataA(transaction, 8);
			Jwlwclm1.super.marshal.addDataA(fonction, 8);
			Jwlwclm1.super.marshal.addDataA(date_time_deb, 15);
			Jwlwclm1.super.marshal.addDataA(cd_cible, 2);
			Jwlwclm1.super.marshal.addDataA(cd_stegrp, 3);
			Jwlwclm1.super.marshal.addDataA(cd_titre, 3);
			Jwlwclm1.super.marshal.addDataA(num_cli_ref, 11);
			Jwlwclm1.super.marshal.addDataA(mot_passe_appl, 8);
			Jwlwclm1.super.marshal.addDataA(cd_application, 8);
			Jwlwclm1.super.marshal.addDataA(type_user, 1);
			Jwlwclm1.super.marshal.addDataN(code_retour, 2, 0);
			Jwlwclm1.super.marshal.addDataN(nb_ano, 1, 0);
			if (t_ano == null) t_ano = new Nwlwclm1AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (t_ano[i0] == null) t_ano[i0] = new Nwlwclm1AxwebentT_ano();
			for (int i0=0; i0<5; i0++) t_ano[i0].add();
		}
		public void get() throws BrokerException {
			dbid = Jwlwclm1.super.marshal.getDataN(3, 0);
			cible_exploitant = Jwlwclm1.super.marshal.getDataA(2);
			groupe_exploitant = Jwlwclm1.super.marshal.getDataA(8);
			numero_session = Jwlwclm1.super.marshal.getDataN(8, 0);
			utilisateur = Jwlwclm1.super.marshal.getDataA(8);
			transaction = Jwlwclm1.super.marshal.getDataA(8);
			fonction = Jwlwclm1.super.marshal.getDataA(8);
			date_time_deb = Jwlwclm1.super.marshal.getDataA(15);
			cd_cible = Jwlwclm1.super.marshal.getDataA(2);
			cd_stegrp = Jwlwclm1.super.marshal.getDataA(3);
			cd_titre = Jwlwclm1.super.marshal.getDataA(3);
			num_cli_ref = Jwlwclm1.super.marshal.getDataA(11);
			mot_passe_appl = Jwlwclm1.super.marshal.getDataA(8);
			cd_application = Jwlwclm1.super.marshal.getDataA(8);
			type_user = Jwlwclm1.super.marshal.getDataA(1);
			code_retour = Jwlwclm1.super.marshal.getDataN(2, 0);
			nb_ano = Jwlwclm1.super.marshal.getDataN(1, 0);
			if (t_ano == null) t_ano = new Nwlwclm1AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (t_ano[i0] == null) t_ano[i0] = new Nwlwclm1AxwebentT_ano();
			for (int i0=0; i0<5; i0++) {
				t_ano[i0].get();
			}
		}
	}

	public class Nwlwclm1AxwebentT_ano {
		public String code_ano;
		public String lib_ano;
		public String type_ano;
		public BigDecimal num_data;
		public void add() throws BrokerException {
			Jwlwclm1.super.marshal.addDataA(code_ano, 4);
			Jwlwclm1.super.marshal.addDataA(lib_ano, 65);
			Jwlwclm1.super.marshal.addDataA(type_ano, 1);
			Jwlwclm1.super.marshal.addDataN(num_data, 2, 0);
		}
		public void get() throws BrokerException {
			code_ano = Jwlwclm1.super.marshal.getDataA(4);
			lib_ano = Jwlwclm1.super.marshal.getDataA(65);
			type_ano = Jwlwclm1.super.marshal.getDataA(1);
			num_data = Jwlwclm1.super.marshal.getDataN(2, 0);
		}
	}

	public class Nwlwclm1Awlwclm1 {
		public String cd_cible;
		public String num_cli;
		public String type_adresse;
		public String etat_adresse;
		public BigDecimal dt_debval_cpl;
		public String niveau;
		public String cd_reponse;
		public String type_cloture;
		public String cd_zpo;
		public String type_portage;
		public BigDecimal isn_kl_mere;
		public void add() throws BrokerException {
			Jwlwclm1.super.marshal.addDataA(cd_cible, 2);
			Jwlwclm1.super.marshal.addDataA(num_cli, 11);
			Jwlwclm1.super.marshal.addDataA(type_adresse, 4);
			Jwlwclm1.super.marshal.addDataA(etat_adresse, 1);
			Jwlwclm1.super.marshal.addDataN(dt_debval_cpl, 8, 0);
			Jwlwclm1.super.marshal.addDataA(niveau, 1);
			Jwlwclm1.super.marshal.addDataA(cd_reponse, 4);
			Jwlwclm1.super.marshal.addDataA(type_cloture, 1);
			Jwlwclm1.super.marshal.addDataA(cd_zpo, 4);
			Jwlwclm1.super.marshal.addDataA(type_portage, 1);
			Jwlwclm1.super.marshal.addDataN(isn_kl_mere, 9, 0);
		}
		public void get() throws BrokerException {
			cd_cible = Jwlwclm1.super.marshal.getDataA(2);
			num_cli = Jwlwclm1.super.marshal.getDataA(11);
			type_adresse = Jwlwclm1.super.marshal.getDataA(4);
			etat_adresse = Jwlwclm1.super.marshal.getDataA(1);
			dt_debval_cpl = Jwlwclm1.super.marshal.getDataN(8, 0);
			niveau = Jwlwclm1.super.marshal.getDataA(1);
			cd_reponse = Jwlwclm1.super.marshal.getDataA(4);
			type_cloture = Jwlwclm1.super.marshal.getDataA(1);
			cd_zpo = Jwlwclm1.super.marshal.getDataA(4);
			type_portage = Jwlwclm1.super.marshal.getDataA(1);
			isn_kl_mere = Jwlwclm1.super.marshal.getDataN(9, 0);
		}
	}

}
