/**
 ** 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/Administrateur/Bureau/NXWEBLOG/nxweblog.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 Jxweblog extends RPCService {

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

	public Jxweblog() {
		super();
	}

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

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

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

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

	private NxweblogAxwebent nxweblogAxwebent;

	public void setNxweblogAxwebent(NxweblogAxwebent p) {
		nxweblogAxwebent = p;
	}

	public NxweblogAxwebent getNxweblogAxwebent() {
		return nxweblogAxwebent;
	}

	private NxweblogAxweblst nxweblogAxweblst;

	public void setNxweblogAxweblst(NxweblogAxweblst p) {
		nxweblogAxweblst = p;
	}

	public NxweblogAxweblst getNxweblogAxweblst() {
		return nxweblogAxweblst;
	}

	private NxweblogAxweblog nxweblogAxweblog;

	public void setNxweblogAxweblog(NxweblogAxweblog p) {
		nxweblogAxweblog = p;
	}

	public NxweblogAxweblog getNxweblogAxweblog() {
		return nxweblogAxweblog;
	}

	private final static byte[] NXWEBLOG_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,1MN3,0MN2,0MN3,0MN2,0MA1,0MN2,0MG1,0MG1,1MA8,"
			+ "0MA8,0MA8,0MA8,0MA8,0,100MA1,0,100MN1,0,100MA25,0,100MA8,0,"
			+ "100MG1,0.").getBytes();

	public void nxweblog() throws BrokerException {

		buildHeader(NXWEBLOG_FORMAT, "44", 4918, 0, "NXWEBLOG", true, 1110,
				true, false, 2000);
		if (nxweblogAxwebent == null)
			nxweblogAxwebent = new NxweblogAxwebent();
		if (getVersion() >= 2000) {
			nxweblogAxwebent.add();
		} else {
			super.marshal.addDataN(nxweblogAxwebent.dbid, 3, 0);
			super.marshal.addDataA(nxweblogAxwebent.cible_exploitant, 2);
			super.marshal.addDataA(nxweblogAxwebent.groupe_exploitant, 8);
			super.marshal.addDataN(nxweblogAxwebent.numero_session, 8, 0);
			super.marshal.addDataA(nxweblogAxwebent.utilisateur, 8);
			super.marshal.addDataA(nxweblogAxwebent.transaction, 8);
			super.marshal.addDataA(nxweblogAxwebent.fonction, 8);
			super.marshal.addDataA(nxweblogAxwebent.date_time_deb, 15);
			super.marshal.addDataA(nxweblogAxwebent.cd_cible, 2);
			super.marshal.addDataA(nxweblogAxwebent.cd_stegrp, 3);
			super.marshal.addDataA(nxweblogAxwebent.cd_titre, 3);
			super.marshal.addDataA(nxweblogAxwebent.num_cli_ref, 11);
			super.marshal.addDataA(nxweblogAxwebent.mot_passe_appl, 8);
			super.marshal.addDataA(nxweblogAxwebent.cd_application, 8);
			super.marshal.addDataA(nxweblogAxwebent.type_user, 1);
			super.marshal.addDataN(nxweblogAxwebent.code_retour, 2, 0);
			super.marshal.addDataN(nxweblogAxwebent.nb_ano, 1, 0);
			if (nxweblogAxwebent.t_ano == null)
				nxweblogAxwebent.t_ano = new NxweblogAxwebentT_ano[5];
			for (int i0 = 0; i0 < 5; i0++)
				if (nxweblogAxwebent.t_ano[i0] == null)
					nxweblogAxwebent.t_ano[i0] = new NxweblogAxwebentT_ano();
			for (int i0 = 0; i0 < 5; i0++)
				super.marshal.addDataA(nxweblogAxwebent.t_ano[i0].code_ano, 4);
			for (int i0 = 0; i0 < 5; i0++)
				super.marshal.addDataA(nxweblogAxwebent.t_ano[i0].lib_ano, 65);
			for (int i0 = 0; i0 < 5; i0++)
				super.marshal.addDataA(nxweblogAxwebent.t_ano[i0].type_ano, 1);
			for (int i0 = 0; i0 < 5; i0++)
				super.marshal.addDataN(nxweblogAxwebent.t_ano[i0].num_data, 2,
						0);
		}
		if (nxweblogAxweblst == null)
			nxweblogAxweblst = new NxweblogAxweblst();
		if (getVersion() >= 2000) {
			nxweblogAxweblst.add();
		} else {
			super.marshal.addDataN(nxweblogAxweblst.nb_rep_souhait, 3, 0);
			super.marshal.addDataN(nxweblogAxweblst.num_page_souhait, 2, 0);
			super.marshal.addDataN(nxweblogAxweblst.nb_rep_rendues, 3, 0);
			super.marshal.addDataN(nxweblogAxweblst.num_page_rendue, 2, 0);
			super.marshal.addDataA(nxweblogAxweblst.top_page_suivante, 1);
			super.marshal.addDataN(nxweblogAxweblst.nb_pages_totales, 2, 0);
		}
		if (nxweblogAxweblog == null)
			nxweblogAxweblog = new NxweblogAxweblog();
		if (getVersion() >= 2000) {
			nxweblogAxweblog.add();
		} else {
			super.marshal.addDataA(nxweblogAxweblog.password, 8);
			super.marshal.addDataA(nxweblogAxweblog.password_new, 8);
			super.marshal.addDataA(nxweblogAxweblog.password_confirm, 8);
			super.marshal.addDataA(nxweblogAxweblog.transaction_defaut, 8);
			if (nxweblogAxweblog.code_transaction == null)
				nxweblogAxweblog.code_transaction = new String[100];
			for (int i0 = 0; i0 < 100; i0++)
				super.marshal
						.addDataA(nxweblogAxweblog.code_transaction[i0], 8);
			if (nxweblogAxweblog.type_transaction == null)
				nxweblogAxweblog.type_transaction = new String[100];
			for (int i0 = 0; i0 < 100; i0++)
				super.marshal
						.addDataA(nxweblogAxweblog.type_transaction[i0], 1);
			if (nxweblogAxweblog.niv_transaction == null)
				nxweblogAxweblog.niv_transaction = new BigDecimal[100];
			for (int i0 = 0; i0 < 100; i0++)
				super.marshal.addDataN(nxweblogAxweblog.niv_transaction[i0], 1,
						0);
			if (nxweblogAxweblog.lib_transaction == null)
				nxweblogAxweblog.lib_transaction = new String[100];
			for (int i0 = 0; i0 < 100; i0++)
				super.marshal
						.addDataA(nxweblogAxweblog.lib_transaction[i0], 25);
			if (nxweblogAxweblog.master_transaction == null)
				nxweblogAxweblog.master_transaction = new String[100];
			for (int i0 = 0; i0 < 100; i0++)
				super.marshal.addDataA(nxweblogAxweblog.master_transaction[i0],
						8);
		}

		callServer();

		if (nxweblogAxwebent == null)
			nxweblogAxwebent = new NxweblogAxwebent();
		if (getVersion() >= 2000) {
			nxweblogAxwebent.get();
		} else {
			nxweblogAxwebent.dbid = super.marshal.getDataN(3, 0);
			nxweblogAxwebent.cible_exploitant = super.marshal.getDataA(2);
			nxweblogAxwebent.groupe_exploitant = super.marshal.getDataA(8);
			nxweblogAxwebent.numero_session = super.marshal.getDataN(8, 0);
			nxweblogAxwebent.utilisateur = super.marshal.getDataA(8);
			nxweblogAxwebent.transaction = super.marshal.getDataA(8);
			nxweblogAxwebent.fonction = super.marshal.getDataA(8);
			nxweblogAxwebent.date_time_deb = super.marshal.getDataA(15);
			nxweblogAxwebent.cd_cible = super.marshal.getDataA(2);
			nxweblogAxwebent.cd_stegrp = super.marshal.getDataA(3);
			nxweblogAxwebent.cd_titre = super.marshal.getDataA(3);
			nxweblogAxwebent.num_cli_ref = super.marshal.getDataA(11);
			nxweblogAxwebent.mot_passe_appl = super.marshal.getDataA(8);
			nxweblogAxwebent.cd_application = super.marshal.getDataA(8);
			nxweblogAxwebent.type_user = super.marshal.getDataA(1);
			nxweblogAxwebent.code_retour = super.marshal.getDataN(2, 0);
			nxweblogAxwebent.nb_ano = super.marshal.getDataN(1, 0);
			if (nxweblogAxwebent.t_ano == null)
				nxweblogAxwebent.t_ano = new NxweblogAxwebentT_ano[5];
			for (int i0 = 0; i0 < 5; i0++)
				if (nxweblogAxwebent.t_ano[i0] == null)
					nxweblogAxwebent.t_ano[i0] = new NxweblogAxwebentT_ano();
			for (int i0 = 0; i0 < 5; i0++)
				nxweblogAxwebent.t_ano[i0].code_ano = super.marshal.getDataA(4);
			for (int i0 = 0; i0 < 5; i0++)
				nxweblogAxwebent.t_ano[i0].lib_ano = super.marshal.getDataA(65);
			for (int i0 = 0; i0 < 5; i0++)
				nxweblogAxwebent.t_ano[i0].type_ano = super.marshal.getDataA(1);
			for (int i0 = 0; i0 < 5; i0++)
				nxweblogAxwebent.t_ano[i0].num_data = super.marshal.getDataN(2,
						0);
		}
		if (nxweblogAxweblst == null)
			nxweblogAxweblst = new NxweblogAxweblst();
		if (getVersion() >= 2000) {
			nxweblogAxweblst.get();
		} else {
			nxweblogAxweblst.nb_rep_souhait = super.marshal.getDataN(3, 0);
			nxweblogAxweblst.num_page_souhait = super.marshal.getDataN(2, 0);
			nxweblogAxweblst.nb_rep_rendues = super.marshal.getDataN(3, 0);
			nxweblogAxweblst.num_page_rendue = super.marshal.getDataN(2, 0);
			nxweblogAxweblst.top_page_suivante = super.marshal.getDataA(1);
			nxweblogAxweblst.nb_pages_totales = super.marshal.getDataN(2, 0);
		}
		if (nxweblogAxweblog == null)
			nxweblogAxweblog = new NxweblogAxweblog();
		if (getVersion() >= 2000) {
			nxweblogAxweblog.get();
		} else {
			nxweblogAxweblog.password 			= super.marshal.getDataA(8);
			nxweblogAxweblog.password_new 		= super.marshal.getDataA(8);
			nxweblogAxweblog.password_confirm 	= super.marshal.getDataA(8);
			nxweblogAxweblog.transaction_defaut = super.marshal.getDataA(8);
			for (int i0 = 0; i0 < 100; i0++)
				nxweblogAxweblog.code_transaction[i0] 	= super.marshal.getDataA(8);
			for (int i0 = 0; i0 < 100; i0++)
				nxweblogAxweblog.type_transaction[i0] 	= super.marshal.getDataA(1);
			for (int i0 = 0; i0 < 100; i0++)
				nxweblogAxweblog.niv_transaction[i0] 	= super.marshal.getDataN(1, 0);
			for (int i0 = 0; i0 < 100; i0++)
				nxweblogAxweblog.lib_transaction[i0] 	= super.marshal.getDataA(25);
			for (int i0 = 0; i0 < 100; i0++)
				nxweblogAxweblog.master_transaction[i0] = super.marshal.getDataA(8);
		}

	}

	public class NxweblogAxwebent {
		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 NxweblogAxwebentT_ano[] t_ano;

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

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

	public class NxweblogAxwebentT_ano {
		public String code_ano;
		public String lib_ano;
		public String type_ano;
		public BigDecimal num_data;

		public void add() throws BrokerException {
			Jxweblog.super.marshal.addDataA(code_ano, 4);
			Jxweblog.super.marshal.addDataA(lib_ano, 65);
			Jxweblog.super.marshal.addDataA(type_ano, 1);
			Jxweblog.super.marshal.addDataN(num_data, 2, 0);
		}

		public void get() throws BrokerException {
			code_ano = Jxweblog.super.marshal.getDataA(4);
			lib_ano  = Jxweblog.super.marshal.getDataA(65);
			type_ano = Jxweblog.super.marshal.getDataA(1);
			num_data = Jxweblog.super.marshal.getDataN(2, 0);
		}
	}

	public class NxweblogAxweblst {
		public BigDecimal nb_rep_souhait;
		public BigDecimal num_page_souhait;
		public BigDecimal nb_rep_rendues;
		public BigDecimal num_page_rendue;
		public String top_page_suivante;
		public BigDecimal nb_pages_totales;

		public void add() throws BrokerException {
			Jxweblog.super.marshal.addDataN(nb_rep_souhait, 3, 0);
			Jxweblog.super.marshal.addDataN(num_page_souhait, 2, 0);
			Jxweblog.super.marshal.addDataN(nb_rep_rendues, 3, 0);
			Jxweblog.super.marshal.addDataN(num_page_rendue, 2, 0);
			Jxweblog.super.marshal.addDataA(top_page_suivante, 1);
			Jxweblog.super.marshal.addDataN(nb_pages_totales, 2, 0);
		}

		public void get() throws BrokerException {
			nb_rep_souhait 	  = Jxweblog.super.marshal.getDataN(3, 0);
			num_page_souhait  = Jxweblog.super.marshal.getDataN(2, 0);
			nb_rep_rendues 	  = Jxweblog.super.marshal.getDataN(3, 0);
			num_page_rendue   = Jxweblog.super.marshal.getDataN(2, 0);
			top_page_suivante = Jxweblog.super.marshal.getDataA(1);
			nb_pages_totales  = Jxweblog.super.marshal.getDataN(2, 0);
		}
	}

	public class NxweblogAxweblog {
		public String password;
		public String password_new;
		public String password_confirm;
		public String transaction_defaut;
		public String[] code_transaction;
		public String[] type_transaction;
		public BigDecimal[] niv_transaction;
		public String[] lib_transaction;
		public String[] master_transaction;

		public void add() throws BrokerException {
			Jxweblog.super.marshal.addDataA(password, 8);
			Jxweblog.super.marshal.addDataA(password_new, 8);
			Jxweblog.super.marshal.addDataA(password_confirm, 8);
			Jxweblog.super.marshal.addDataA(transaction_defaut, 8);
			if (code_transaction == null)
				code_transaction = new String[100];
			for (int i0 = 0; i0 < 100; i0++)
				Jxweblog.super.marshal.addDataA(code_transaction[i0], 8);
			if (type_transaction == null)
				type_transaction = new String[100];
			for (int i0 = 0; i0 < 100; i0++)
				Jxweblog.super.marshal.addDataA(type_transaction[i0], 1);
			if (niv_transaction == null)
				niv_transaction = new BigDecimal[100];
			for (int i0 = 0; i0 < 100; i0++)
				Jxweblog.super.marshal.addDataN(niv_transaction[i0], 1, 0);
			if (lib_transaction == null)
				lib_transaction = new String[100];
			for (int i0 = 0; i0 < 100; i0++)
				Jxweblog.super.marshal.addDataA(lib_transaction[i0], 25);
			if (master_transaction == null)
				master_transaction = new String[100];
			for (int i0 = 0; i0 < 100; i0++)
				Jxweblog.super.marshal.addDataA(master_transaction[i0], 8);
		}

		public void get() throws BrokerException {
			password 		   = Jxweblog.super.marshal.getDataA(8);
			password_new 	   = Jxweblog.super.marshal.getDataA(8);
			password_confirm   = Jxweblog.super.marshal.getDataA(8);
			transaction_defaut = Jxweblog.super.marshal.getDataA(8);
			if (code_transaction == null)
				code_transaction = new String[100];
			for (int i0 = 0; i0 < 100; i0++)
				code_transaction[i0] = Jxweblog.super.marshal.getDataA(8);
			if (type_transaction == null)
				type_transaction = new String[100];
			for (int i0 = 0; i0 < 100; i0++)
				type_transaction[i0] = Jxweblog.super.marshal.getDataA(1);
			if (niv_transaction == null)
				niv_transaction = new BigDecimal[100];
			for (int i0 = 0; i0 < 100; i0++)
				niv_transaction[i0] = Jxweblog.super.marshal.getDataN(1, 0);
			if (lib_transaction == null)
				lib_transaction = new String[100];
			for (int i0 = 0; i0 < 100; i0++)
				lib_transaction[i0] = Jxweblog.super.marshal.getDataA(25);
			if (master_transaction == null)
				master_transaction = new String[100];
			for (int i0 = 0; i0 < 100; i0++)
				master_transaction[i0] = Jxweblog.super.marshal.getDataA(8);
		}
	}

}
