package keymon.lat.medicomed;

import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.pc.*;

public class dbrequestmanager_subs_0 {


public static RemoteObject  _bytestoimage(RemoteObject __ref,RemoteObject _bytes) throws Exception{
try {
		Debug.PushSubsStack("BytesToImage (dbrequestmanager) ","dbrequestmanager",20,__ref.getField(false, "ba"),__ref,242);
if (RapidSub.canDelegate("bytestoimage")) { return __ref.runUserSub(false, "dbrequestmanager","bytestoimage", __ref, _bytes);}
RemoteObject _in = RemoteObject.declareNull("anywheresoftware.b4a.objects.streams.File.InputStreamWrapper");
RemoteObject _bmp = RemoteObject.declareNull("anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper");
Debug.locals.put("bytes", _bytes);
 BA.debugLineNum = 242;BA.debugLine="Public Sub BytesToImage(bytes() As Byte) As Bitmap";
Debug.ShouldStop(131072);
 BA.debugLineNum = 243;BA.debugLine="Dim In As InputStream";
Debug.ShouldStop(262144);
_in = RemoteObject.createNew ("anywheresoftware.b4a.objects.streams.File.InputStreamWrapper");Debug.locals.put("In", _in);
 BA.debugLineNum = 244;BA.debugLine="In.InitializeFromBytesArray(bytes, 0, bytes.Lengt";
Debug.ShouldStop(524288);
_in.runVoidMethod ("InitializeFromBytesArray",(Object)(_bytes),(Object)(BA.numberCast(int.class, 0)),(Object)(_bytes.getField(true,"length")));
 BA.debugLineNum = 245;BA.debugLine="Dim bmp As Bitmap";
Debug.ShouldStop(1048576);
_bmp = RemoteObject.createNew ("anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper");Debug.locals.put("bmp", _bmp);
 BA.debugLineNum = 246;BA.debugLine="bmp.Initialize2(In)";
Debug.ShouldStop(2097152);
_bmp.runVoidMethod ("Initialize2",(Object)((_in.getObject())));
 BA.debugLineNum = 247;BA.debugLine="Return bmp";
Debug.ShouldStop(4194304);
if (true) return _bmp;
 BA.debugLineNum = 248;BA.debugLine="End Sub";
Debug.ShouldStop(8388608);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _class_globals(RemoteObject __ref) throws Exception{
 //BA.debugLineNum = 4;BA.debugLine="Sub Class_Globals";
 //BA.debugLineNum = 5;BA.debugLine="Private mTarget As Object";
dbrequestmanager._mtarget = RemoteObject.createNew ("Object");__ref.setField("_mtarget",dbrequestmanager._mtarget);
 //BA.debugLineNum = 6;BA.debugLine="Type DBResult (Tag As Object, Columns As Map, Row";
;
 //BA.debugLineNum = 7;BA.debugLine="Type DBCommand (Name As String, Parameters() As O";
;
 //BA.debugLineNum = 8;BA.debugLine="Private link As String";
dbrequestmanager._link = RemoteObject.createImmutable("");__ref.setField("_link",dbrequestmanager._link);
 //BA.debugLineNum = 9;BA.debugLine="Private bc As ByteConverter";
dbrequestmanager._bc = RemoteObject.createNew ("anywheresoftware.b4a.agraham.byteconverter.ByteConverter");__ref.setField("_bc",dbrequestmanager._bc);
 //BA.debugLineNum = 10;BA.debugLine="Private T_NULL = 0, T_STRING = 1, T_SHORT = 2, T_";
dbrequestmanager._t_null = BA.numberCast(byte.class, 0);__ref.setField("_t_null",dbrequestmanager._t_null);
dbrequestmanager._t_string = BA.numberCast(byte.class, 1);__ref.setField("_t_string",dbrequestmanager._t_string);
dbrequestmanager._t_short = BA.numberCast(byte.class, 2);__ref.setField("_t_short",dbrequestmanager._t_short);
dbrequestmanager._t_int = BA.numberCast(byte.class, 3);__ref.setField("_t_int",dbrequestmanager._t_int);
dbrequestmanager._t_long = BA.numberCast(byte.class, 4);__ref.setField("_t_long",dbrequestmanager._t_long);
dbrequestmanager._t_float = BA.numberCast(byte.class, 5);__ref.setField("_t_float",dbrequestmanager._t_float);
dbrequestmanager._t_double = BA.numberCast(byte.class, 6);__ref.setField("_t_double",dbrequestmanager._t_double);
dbrequestmanager._t_boolean = BA.numberCast(byte.class, 7);__ref.setField("_t_boolean",dbrequestmanager._t_boolean);
dbrequestmanager._t_blob = BA.numberCast(byte.class, 8);__ref.setField("_t_blob",dbrequestmanager._t_blob);
 //BA.debugLineNum = 12;BA.debugLine="Private VERSION As Float = 0.9";
dbrequestmanager._version = BA.numberCast(float.class, 0.9);__ref.setField("_version",dbrequestmanager._version);
 //BA.debugLineNum = 13;BA.debugLine="Private tempArray(1) As Object";
dbrequestmanager._temparray = RemoteObject.createNewArray ("Object", new int[] {1}, new Object[]{});__ref.setField("_temparray",dbrequestmanager._temparray);
 //BA.debugLineNum = 14;BA.debugLine="Dim jobTagAnterior As String = \"\" 'Mod por CHV -";
dbrequestmanager._jobtaganterior = BA.ObjectToString("");__ref.setField("_jobtaganterior",dbrequestmanager._jobtaganterior);
 //BA.debugLineNum = 15;BA.debugLine="End Sub";
return RemoteObject.createImmutable("");
}
public static RemoteObject  _executebatch(RemoteObject __ref,RemoteObject _listofcommands,RemoteObject _tag) throws Exception{
try {
		Debug.PushSubsStack("ExecuteBatch (dbrequestmanager) ","dbrequestmanager",20,__ref.getField(false, "ba"),__ref,43);
if (RapidSub.canDelegate("executebatch")) { return __ref.runUserSub(false, "dbrequestmanager","executebatch", __ref, _listofcommands, _tag);}
RemoteObject _j = RemoteObject.declareNull("keymon.lat.medicomed.httpjob");
RemoteObject _ms = RemoteObject.declareNull("anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper");
RemoteObject _out2 = RemoteObject.declareNull("anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper");
RemoteObject _command = RemoteObject.declareNull("keymon.lat.medicomed.dbrequestmanager._dbcommand");
Debug.locals.put("ListOfCommands", _listofcommands);
Debug.locals.put("Tag", _tag);
 BA.debugLineNum = 43;BA.debugLine="Public Sub ExecuteBatch(ListOfCommands As List, Ta";
Debug.ShouldStop(1024);
 BA.debugLineNum = 44;BA.debugLine="Dim j As HttpJob";
Debug.ShouldStop(2048);
_j = RemoteObject.createNew ("keymon.lat.medicomed.httpjob");Debug.locals.put("j", _j);
 BA.debugLineNum = 45;BA.debugLine="Dim ms As OutputStream";
Debug.ShouldStop(4096);
_ms = RemoteObject.createNew ("anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper");Debug.locals.put("ms", _ms);
 BA.debugLineNum = 46;BA.debugLine="Dim out2 As OutputStream = StartJob(j,ms, Tag)";
Debug.ShouldStop(8192);
_out2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper");
_out2 = __ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_startjob" /*RemoteObject*/ ,(Object)(_j),(Object)(_ms),(Object)(_tag));Debug.locals.put("out2", _out2);Debug.locals.put("out2", _out2);
 BA.debugLineNum = 47;BA.debugLine="WriteInt(ListOfCommands.Size, out2)";
Debug.ShouldStop(16384);
__ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_writeint" /*RemoteObject*/ ,(Object)(_listofcommands.runMethod(true,"getSize")),(Object)(_out2));
 BA.debugLineNum = 48;BA.debugLine="For Each Command As DBCommand In ListOfCommands";
Debug.ShouldStop(32768);
{
final RemoteObject group5 = _listofcommands;
final int groupLen5 = group5.runMethod(true,"getSize").<Integer>get()
;int index5 = 0;
;
for (; index5 < groupLen5;index5++){
_command = (group5.runMethod(false,"Get",index5));Debug.locals.put("Command", _command);
Debug.locals.put("Command", _command);
 BA.debugLineNum = 49;BA.debugLine="WriteObject(Command.Name, out2)";
Debug.ShouldStop(65536);
__ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_writeobject" /*RemoteObject*/ ,(Object)((_command.getField(true,"Name" /*RemoteObject*/ ))),(Object)(_out2));
 BA.debugLineNum = 50;BA.debugLine="WriteList(Command.Parameters, out2)";
Debug.ShouldStop(131072);
__ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_writelist" /*RemoteObject*/ ,(Object)(dbrequestmanager.__c.runMethod(false, "ArrayToList", (Object)(_command.getField(false,"Parameters" /*RemoteObject*/ )))),(Object)(_out2));
 }
}Debug.locals.put("Command", _command);
;
 BA.debugLineNum = 52;BA.debugLine="out2.Close";
Debug.ShouldStop(524288);
_out2.runVoidMethod ("Close");
 BA.debugLineNum = 53;BA.debugLine="j.PostBytes(link & \"?method=batch\", ms.ToBytesArr";
Debug.ShouldStop(1048576);
_j.runClassMethod (keymon.lat.medicomed.httpjob.class, "_postbytes" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_link" /*RemoteObject*/ ),RemoteObject.createImmutable("?method=batch"))),(Object)(_ms.runMethod(false,"ToBytesArray")));
 BA.debugLineNum = 54;BA.debugLine="End Sub";
Debug.ShouldStop(2097152);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _executecommand(RemoteObject __ref,RemoteObject _command,RemoteObject _tag) throws Exception{
try {
		Debug.PushSubsStack("ExecuteCommand (dbrequestmanager) ","dbrequestmanager",20,__ref.getField(false, "ba"),__ref,57);
if (RapidSub.canDelegate("executecommand")) { return __ref.runUserSub(false, "dbrequestmanager","executecommand", __ref, _command, _tag);}
Debug.locals.put("Command", _command);
Debug.locals.put("Tag", _tag);
 BA.debugLineNum = 57;BA.debugLine="Public Sub ExecuteCommand(Command As DBCommand, Ta";
Debug.ShouldStop(16777216);
 BA.debugLineNum = 58;BA.debugLine="ExecuteBatch(Array As DBCommand(Command), Tag)";
Debug.ShouldStop(33554432);
__ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executebatch" /*RemoteObject*/ ,(Object)(dbrequestmanager.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("keymon.lat.medicomed.dbrequestmanager._dbcommand",new int[] {1},new Object[] {_command})))),(Object)(_tag));
 BA.debugLineNum = 59;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _executequery(RemoteObject __ref,RemoteObject _command,RemoteObject _limit,RemoteObject _tag) throws Exception{
try {
		Debug.PushSubsStack("ExecuteQuery (dbrequestmanager) ","dbrequestmanager",20,__ref.getField(false, "ba"),__ref,28);
if (RapidSub.canDelegate("executequery")) { return __ref.runUserSub(false, "dbrequestmanager","executequery", __ref, _command, _limit, _tag);}
RemoteObject _j = RemoteObject.declareNull("keymon.lat.medicomed.httpjob");
RemoteObject _ms = RemoteObject.declareNull("anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper");
RemoteObject _out2 = RemoteObject.declareNull("anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper");
Debug.locals.put("Command", _command);
Debug.locals.put("Limit", _limit);
Debug.locals.put("Tag", _tag);
 BA.debugLineNum = 28;BA.debugLine="Public Sub ExecuteQuery(Command As DBCommand, Limi";
Debug.ShouldStop(134217728);
 BA.debugLineNum = 29;BA.debugLine="Dim j As HttpJob";
Debug.ShouldStop(268435456);
_j = RemoteObject.createNew ("keymon.lat.medicomed.httpjob");Debug.locals.put("j", _j);
 BA.debugLineNum = 30;BA.debugLine="Dim ms As OutputStream";
Debug.ShouldStop(536870912);
_ms = RemoteObject.createNew ("anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper");Debug.locals.put("ms", _ms);
 BA.debugLineNum = 31;BA.debugLine="Dim out2 As OutputStream = StartJob(j,ms, Tag)";
Debug.ShouldStop(1073741824);
_out2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper");
_out2 = __ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_startjob" /*RemoteObject*/ ,(Object)(_j),(Object)(_ms),(Object)(_tag));Debug.locals.put("out2", _out2);Debug.locals.put("out2", _out2);
 BA.debugLineNum = 33;BA.debugLine="WriteObject(Command.Name, out2)";
Debug.ShouldStop(1);
__ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_writeobject" /*RemoteObject*/ ,(Object)((_command.getField(true,"Name" /*RemoteObject*/ ))),(Object)(_out2));
 BA.debugLineNum = 34;BA.debugLine="WriteInt(Limit, out2)";
Debug.ShouldStop(2);
__ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_writeint" /*RemoteObject*/ ,(Object)(_limit),(Object)(_out2));
 BA.debugLineNum = 35;BA.debugLine="WriteList(Command.Parameters, out2)";
Debug.ShouldStop(4);
__ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_writelist" /*RemoteObject*/ ,(Object)(dbrequestmanager.__c.runMethod(false, "ArrayToList", (Object)(_command.getField(false,"Parameters" /*RemoteObject*/ )))),(Object)(_out2));
 BA.debugLineNum = 36;BA.debugLine="out2.Close";
Debug.ShouldStop(8);
_out2.runVoidMethod ("Close");
 BA.debugLineNum = 37;BA.debugLine="j.PostBytes(link & \"?method=query\", ms.ToBytesArr";
Debug.ShouldStop(16);
_j.runClassMethod (keymon.lat.medicomed.httpjob.class, "_postbytes" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_link" /*RemoteObject*/ ),RemoteObject.createImmutable("?method=query"))),(Object)(_ms.runMethod(false,"ToBytesArray")));
 BA.debugLineNum = 38;BA.debugLine="End Sub";
Debug.ShouldStop(32);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _filetobytes(RemoteObject __ref,RemoteObject _dir,RemoteObject _filename) throws Exception{
try {
		Debug.PushSubsStack("FileToBytes (dbrequestmanager) ","dbrequestmanager",20,__ref.getField(false, "ba"),__ref,223);
if (RapidSub.canDelegate("filetobytes")) { return __ref.runUserSub(false, "dbrequestmanager","filetobytes", __ref, _dir, _filename);}
RemoteObject _out = RemoteObject.declareNull("anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper");
RemoteObject _in = RemoteObject.declareNull("anywheresoftware.b4a.objects.streams.File.InputStreamWrapper");
Debug.locals.put("Dir", _dir);
Debug.locals.put("FileName", _filename);
 BA.debugLineNum = 223;BA.debugLine="Public Sub FileToBytes(Dir As String, FileName As";
Debug.ShouldStop(1073741824);
 BA.debugLineNum = 224;BA.debugLine="Dim out As OutputStream";
Debug.ShouldStop(-2147483648);
_out = RemoteObject.createNew ("anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper");Debug.locals.put("out", _out);
 BA.debugLineNum = 225;BA.debugLine="out.InitializeToBytesArray(0)";
Debug.ShouldStop(1);
_out.runVoidMethod ("InitializeToBytesArray",(Object)(BA.numberCast(int.class, 0)));
 BA.debugLineNum = 226;BA.debugLine="Dim In As InputStream = File.OpenInput(Dir, FileN";
Debug.ShouldStop(2);
_in = RemoteObject.createNew ("anywheresoftware.b4a.objects.streams.File.InputStreamWrapper");
_in = dbrequestmanager.__c.getField(false,"File").runMethod(false,"OpenInput",(Object)(_dir),(Object)(_filename));Debug.locals.put("In", _in);Debug.locals.put("In", _in);
 BA.debugLineNum = 227;BA.debugLine="File.Copy2(In, out)";
Debug.ShouldStop(4);
dbrequestmanager.__c.getField(false,"File").runVoidMethod ("Copy2",(Object)((_in.getObject())),(Object)((_out.getObject())));
 BA.debugLineNum = 228;BA.debugLine="out.Close";
Debug.ShouldStop(8);
_out.runVoidMethod ("Close");
 BA.debugLineNum = 229;BA.debugLine="Return out.ToBytesArray";
Debug.ShouldStop(16);
if (true) return _out.runMethod(false,"ToBytesArray");
 BA.debugLineNum = 230;BA.debugLine="End Sub";
Debug.ShouldStop(32);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _handlejob(RemoteObject __ref,RemoteObject _job) throws Exception{
try {
		Debug.PushSubsStack("HandleJob (dbrequestmanager) ","dbrequestmanager",20,__ref.getField(false, "ba"),__ref,184);
if (RapidSub.canDelegate("handlejob")) { return __ref.runUserSub(false, "dbrequestmanager","handlejob", __ref, _job);}
RemoteObject _start = RemoteObject.createImmutable(0L);
RemoteObject _in = RemoteObject.declareNull("anywheresoftware.b4a.objects.streams.File.InputStreamWrapper");
RemoteObject _cs = RemoteObject.declareNull("anywheresoftware.b4a.randomaccessfile.CompressedStreams");
RemoteObject _serverversion = RemoteObject.createImmutable(0f);
RemoteObject _method = RemoteObject.createImmutable("");
RemoteObject _table = RemoteObject.declareNull("keymon.lat.medicomed.dbrequestmanager._dbresult");
RemoteObject _numberofcolumns = RemoteObject.createImmutable(0);
int _i = 0;
RemoteObject _rowobjects = null;
int _col = 0;
RemoteObject _o = RemoteObject.declareNull("Object");
RemoteObject _rows = RemoteObject.createImmutable(0);
Debug.locals.put("Job", _job);
 BA.debugLineNum = 184;BA.debugLine="Public Sub HandleJob(Job As HttpJob) As DBResult";
Debug.ShouldStop(8388608);
 BA.debugLineNum = 185;BA.debugLine="Dim start As Long = DateTime.Now";
Debug.ShouldStop(16777216);
_start = dbrequestmanager.__c.getField(false,"DateTime").runMethod(true,"getNow");Debug.locals.put("start", _start);Debug.locals.put("start", _start);
 BA.debugLineNum = 186;BA.debugLine="Dim In As InputStream = Job.GetInputStream";
Debug.ShouldStop(33554432);
_in = RemoteObject.createNew ("anywheresoftware.b4a.objects.streams.File.InputStreamWrapper");
_in = _job.runClassMethod (keymon.lat.medicomed.httpjob.class, "_getinputstream" /*RemoteObject*/ );Debug.locals.put("In", _in);Debug.locals.put("In", _in);
 BA.debugLineNum = 187;BA.debugLine="Dim cs As CompressedStreams";
Debug.ShouldStop(67108864);
_cs = RemoteObject.createNew ("anywheresoftware.b4a.randomaccessfile.CompressedStreams");Debug.locals.put("cs", _cs);
 BA.debugLineNum = 188;BA.debugLine="In = cs.WrapInputStream(In, \"gzip\")";
Debug.ShouldStop(134217728);
_in = _cs.runMethod(false,"WrapInputStream",(Object)((_in.getObject())),(Object)(RemoteObject.createImmutable("gzip")));Debug.locals.put("In", _in);
 BA.debugLineNum = 189;BA.debugLine="Dim serverVersion As Float = ReadObject(In) 'igno";
Debug.ShouldStop(268435456);
_serverversion = BA.numberCast(float.class, __ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_readobject" /*RemoteObject*/ ,(Object)(_in)));Debug.locals.put("serverVersion", _serverversion);Debug.locals.put("serverVersion", _serverversion);
 BA.debugLineNum = 190;BA.debugLine="Dim method As String = ReadObject(In)";
Debug.ShouldStop(536870912);
_method = BA.ObjectToString(__ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_readobject" /*RemoteObject*/ ,(Object)(_in)));Debug.locals.put("method", _method);Debug.locals.put("method", _method);
 BA.debugLineNum = 191;BA.debugLine="Dim table As DBResult";
Debug.ShouldStop(1073741824);
_table = RemoteObject.createNew ("keymon.lat.medicomed.dbrequestmanager._dbresult");Debug.locals.put("table", _table);
 BA.debugLineNum = 192;BA.debugLine="table.Initialize";
Debug.ShouldStop(-2147483648);
_table.runVoidMethod ("Initialize");
 BA.debugLineNum = 193;BA.debugLine="table.Columns.Initialize";
Debug.ShouldStop(1);
_table.getField(false,"Columns" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 194;BA.debugLine="table.rows.Initialize";
Debug.ShouldStop(2);
_table.getField(false,"Rows" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 195;BA.debugLine="table.Tag = Job.Tag";
Debug.ShouldStop(4);
_table.setField ("Tag" /*RemoteObject*/ ,_job.getField(false,"_tag" /*RemoteObject*/ ));
 BA.debugLineNum = 196;BA.debugLine="If jobTagAnterior <> Job.Tag Then LogColor(\"Handl";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("!",__ref.getField(true,"_jobtaganterior" /*RemoteObject*/ ),BA.ObjectToString(_job.getField(false,"_tag" /*RemoteObject*/ )))) { 
dbrequestmanager.__c.runVoidMethod ("LogImpl","327918348",RemoteObject.concat(RemoteObject.createImmutable("HandleJob: '"),_job.getField(false,"_tag" /*RemoteObject*/ ),RemoteObject.createImmutable("'")),dbrequestmanager.__c.getField(false,"Colors").getField(true,"Blue"));};
 BA.debugLineNum = 197;BA.debugLine="jobTagAnterior = Job.Tag  'Mod por CHV - 211023";
Debug.ShouldStop(16);
__ref.setField ("_jobtaganterior" /*RemoteObject*/ ,BA.ObjectToString(_job.getField(false,"_tag" /*RemoteObject*/ )));
 BA.debugLineNum = 198;BA.debugLine="If method = \"query\" Then";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean("=",_method,BA.ObjectToString("query"))) { 
 BA.debugLineNum = 199;BA.debugLine="Dim numberOfColumns As Int = ReadInt(In)";
Debug.ShouldStop(64);
_numberofcolumns = __ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_readint" /*RemoteObject*/ ,(Object)(_in));Debug.locals.put("numberOfColumns", _numberofcolumns);Debug.locals.put("numberOfColumns", _numberofcolumns);
 BA.debugLineNum = 200;BA.debugLine="For i = 0 To numberOfColumns - 1";
Debug.ShouldStop(128);
{
final int step16 = 1;
final int limit16 = RemoteObject.solve(new RemoteObject[] {_numberofcolumns,RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step16 > 0 && _i <= limit16) || (step16 < 0 && _i >= limit16) ;_i = ((int)(0 + _i + step16))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 201;BA.debugLine="table.Columns.Put(ReadObject(In), i)";
Debug.ShouldStop(256);
_table.getField(false,"Columns" /*RemoteObject*/ ).runVoidMethod ("Put",(Object)(__ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_readobject" /*RemoteObject*/ ,(Object)(_in))),(Object)(RemoteObject.createImmutable((_i))));
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 203;BA.debugLine="Do While ReadByte(In) = 1";
Debug.ShouldStop(1024);
while (RemoteObject.solveBoolean("=",__ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_readbyte" /*RemoteObject*/ ,(Object)(_in)),BA.numberCast(double.class, 1))) {
 BA.debugLineNum = 204;BA.debugLine="Dim rowObjects(numberOfColumns) As Object";
Debug.ShouldStop(2048);
_rowobjects = RemoteObject.createNewArray ("Object", new int[] {_numberofcolumns.<Integer>get().intValue()}, new Object[]{});Debug.locals.put("rowObjects", _rowobjects);
 BA.debugLineNum = 205;BA.debugLine="table.rows.Add(rowObjects)";
Debug.ShouldStop(4096);
_table.getField(false,"Rows" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((_rowobjects)));
 BA.debugLineNum = 206;BA.debugLine="For col = 0 To numberOfColumns - 1";
Debug.ShouldStop(8192);
{
final int step22 = 1;
final int limit22 = RemoteObject.solve(new RemoteObject[] {_numberofcolumns,RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_col = 0 ;
for (;(step22 > 0 && _col <= limit22) || (step22 < 0 && _col >= limit22) ;_col = ((int)(0 + _col + step22))  ) {
Debug.locals.put("col", _col);
 BA.debugLineNum = 207;BA.debugLine="Dim o As Object = ReadObject(In)";
Debug.ShouldStop(16384);
_o = __ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_readobject" /*RemoteObject*/ ,(Object)(_in));Debug.locals.put("o", _o);Debug.locals.put("o", _o);
 BA.debugLineNum = 208;BA.debugLine="rowObjects(col) = o";
Debug.ShouldStop(32768);
_rowobjects.setArrayElement (_o,BA.numberCast(int.class, _col));
 }
}Debug.locals.put("col", _col);
;
 }
;
 }else 
{ BA.debugLineNum = 211;BA.debugLine="Else If method = \"batch\" Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean("=",_method,BA.ObjectToString("batch"))) { 
 BA.debugLineNum = 212;BA.debugLine="table.Columns.Put(\"AffectedRows\", 0)";
Debug.ShouldStop(524288);
_table.getField(false,"Columns" /*RemoteObject*/ ).runVoidMethod ("Put",(Object)(RemoteObject.createImmutable(("AffectedRows"))),(Object)(RemoteObject.createImmutable((0))));
 BA.debugLineNum = 213;BA.debugLine="Dim rows As Int = ReadInt(In)";
Debug.ShouldStop(1048576);
_rows = __ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_readint" /*RemoteObject*/ ,(Object)(_in));Debug.locals.put("rows", _rows);Debug.locals.put("rows", _rows);
 BA.debugLineNum = 214;BA.debugLine="For i = 0 To rows - 1";
Debug.ShouldStop(2097152);
{
final int step30 = 1;
final int limit30 = RemoteObject.solve(new RemoteObject[] {_rows,RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step30 > 0 && _i <= limit30) || (step30 < 0 && _i >= limit30) ;_i = ((int)(0 + _i + step30))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 215;BA.debugLine="table.rows.Add(Array As Object(ReadInt(In)))";
Debug.ShouldStop(4194304);
_table.getField(false,"Rows" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(__ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_readint" /*RemoteObject*/ ,(Object)(_in)))}))));
 }
}Debug.locals.put("i", _i);
;
 }}
;
 BA.debugLineNum = 218;BA.debugLine="In.Close";
Debug.ShouldStop(33554432);
_in.runVoidMethod ("Close");
 BA.debugLineNum = 220;BA.debugLine="Return table";
Debug.ShouldStop(134217728);
if (true) return _table;
 BA.debugLineNum = 221;BA.debugLine="End Sub";
Debug.ShouldStop(268435456);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _imagetobytes(RemoteObject __ref,RemoteObject _image) throws Exception{
try {
		Debug.PushSubsStack("ImageToBytes (dbrequestmanager) ","dbrequestmanager",20,__ref.getField(false, "ba"),__ref,233);
if (RapidSub.canDelegate("imagetobytes")) { return __ref.runUserSub(false, "dbrequestmanager","imagetobytes", __ref, _image);}
RemoteObject _out = RemoteObject.declareNull("anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper");
Debug.locals.put("Image", _image);
 BA.debugLineNum = 233;BA.debugLine="Public Sub ImageToBytes(Image As Bitmap) As Byte()";
Debug.ShouldStop(256);
 BA.debugLineNum = 234;BA.debugLine="Dim out As OutputStream";
Debug.ShouldStop(512);
_out = RemoteObject.createNew ("anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper");Debug.locals.put("out", _out);
 BA.debugLineNum = 235;BA.debugLine="out.InitializeToBytesArray(0)";
Debug.ShouldStop(1024);
_out.runVoidMethod ("InitializeToBytesArray",(Object)(BA.numberCast(int.class, 0)));
 BA.debugLineNum = 236;BA.debugLine="Image.WriteToStream(out, 100, \"JPEG\")";
Debug.ShouldStop(2048);
_image.runVoidMethod ("WriteToStream",(Object)((_out.getObject())),(Object)(BA.numberCast(int.class, 100)),(Object)(BA.getEnumFromString(BA.getDeviceClass("android.graphics.Bitmap.CompressFormat"),RemoteObject.createImmutable("JPEG"))));
 BA.debugLineNum = 237;BA.debugLine="out.Close";
Debug.ShouldStop(4096);
_out.runVoidMethod ("Close");
 BA.debugLineNum = 238;BA.debugLine="Return out.ToBytesArray";
Debug.ShouldStop(8192);
if (true) return _out.runMethod(false,"ToBytesArray");
 BA.debugLineNum = 239;BA.debugLine="End Sub";
Debug.ShouldStop(16384);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _initialize(RemoteObject __ref,RemoteObject _ba,RemoteObject _target,RemoteObject _connectorlink) throws Exception{
try {
		Debug.PushSubsStack("Initialize (dbrequestmanager) ","dbrequestmanager",20,__ref.getField(false, "ba"),__ref,19);
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "dbrequestmanager","initialize", __ref, _ba, _target, _connectorlink);}
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
Debug.locals.put("ba", _ba);
Debug.locals.put("Target", _target);
Debug.locals.put("ConnectorLink", _connectorlink);
 BA.debugLineNum = 19;BA.debugLine="Public Sub Initialize (Target As Object, Connector";
Debug.ShouldStop(262144);
 BA.debugLineNum = 20;BA.debugLine="mTarget = Target";
Debug.ShouldStop(524288);
__ref.setField ("_mtarget" /*RemoteObject*/ ,_target);
 BA.debugLineNum = 21;BA.debugLine="link = ConnectorLink";
Debug.ShouldStop(1048576);
__ref.setField ("_link" /*RemoteObject*/ ,_connectorlink);
 BA.debugLineNum = 22;BA.debugLine="End Sub";
Debug.ShouldStop(2097152);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _printtable(RemoteObject __ref,RemoteObject _table) throws Exception{
try {
		Debug.PushSubsStack("PrintTable (dbrequestmanager) ","dbrequestmanager",20,__ref.getField(false, "ba"),__ref,251);
if (RapidSub.canDelegate("printtable")) { return __ref.runUserSub(false, "dbrequestmanager","printtable", __ref, _table);}
RemoteObject _sb = RemoteObject.declareNull("anywheresoftware.b4a.keywords.StringBuilderWrapper");
RemoteObject _col = RemoteObject.declareNull("Object");
RemoteObject _row = null;
RemoteObject _record = RemoteObject.declareNull("Object");
Debug.locals.put("Table", _table);
 BA.debugLineNum = 251;BA.debugLine="Public Sub PrintTable(Table As DBResult)";
Debug.ShouldStop(67108864);
 BA.debugLineNum = 252;BA.debugLine="Log(\"Tag: \" & Table.Tag & \", Columns: \" & Table.C";
Debug.ShouldStop(134217728);
dbrequestmanager.__c.runVoidMethod ("LogImpl","328180481",RemoteObject.concat(RemoteObject.createImmutable("Tag: "),_table.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(", Columns: "),_table.getField(false,"Columns" /*RemoteObject*/ ).runMethod(true,"getSize"),RemoteObject.createImmutable(", Rows: "),_table.getField(false,"Rows" /*RemoteObject*/ ).runMethod(true,"getSize")),0);
 BA.debugLineNum = 253;BA.debugLine="Dim sb As StringBuilder";
Debug.ShouldStop(268435456);
_sb = RemoteObject.createNew ("anywheresoftware.b4a.keywords.StringBuilderWrapper");Debug.locals.put("sb", _sb);
 BA.debugLineNum = 254;BA.debugLine="sb.Initialize";
Debug.ShouldStop(536870912);
_sb.runVoidMethod ("Initialize");
 BA.debugLineNum = 255;BA.debugLine="For Each col In Table.Columns.Keys";
Debug.ShouldStop(1073741824);
{
final RemoteObject group4 = _table.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Keys");
final int groupLen4 = group4.runMethod(true,"getSize").<Integer>get()
;int index4 = 0;
;
for (; index4 < groupLen4;index4++){
_col = group4.runMethod(false,"Get",index4);Debug.locals.put("col", _col);
Debug.locals.put("col", _col);
 BA.debugLineNum = 256;BA.debugLine="sb.Append(col).Append(TAB)";
Debug.ShouldStop(-2147483648);
_sb.runMethod(false,"Append",(Object)(BA.ObjectToString(_col))).runVoidMethod ("Append",(Object)(dbrequestmanager.__c.getField(true,"TAB")));
 }
}Debug.locals.put("col", _col);
;
 BA.debugLineNum = 258;BA.debugLine="Log(sb.ToString)";
Debug.ShouldStop(2);
dbrequestmanager.__c.runVoidMethod ("LogImpl","328180487",_sb.runMethod(true,"ToString"),0);
 BA.debugLineNum = 259;BA.debugLine="For Each row() As Object In Table.Rows";
Debug.ShouldStop(4);
{
final RemoteObject group8 = _table.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen8 = group8.runMethod(true,"getSize").<Integer>get()
;int index8 = 0;
;
for (; index8 < groupLen8;index8++){
_row = (group8.runMethod(false,"Get",index8));Debug.locals.put("row", _row);
Debug.locals.put("row", _row);
 BA.debugLineNum = 260;BA.debugLine="Dim sb As StringBuilder";
Debug.ShouldStop(8);
_sb = RemoteObject.createNew ("anywheresoftware.b4a.keywords.StringBuilderWrapper");Debug.locals.put("sb", _sb);
 BA.debugLineNum = 261;BA.debugLine="sb.Initialize";
Debug.ShouldStop(16);
_sb.runVoidMethod ("Initialize");
 BA.debugLineNum = 262;BA.debugLine="For Each record As Object In row";
Debug.ShouldStop(32);
{
final RemoteObject group11 = _row;
final int groupLen11 = group11.getField(true,"length").<Integer>get()
;int index11 = 0;
;
for (; index11 < groupLen11;index11++){
_record = group11.getArrayElement(false,RemoteObject.createImmutable(index11));Debug.locals.put("record", _record);
Debug.locals.put("record", _record);
 BA.debugLineNum = 263;BA.debugLine="sb.Append(record).Append(TAB)";
Debug.ShouldStop(64);
_sb.runMethod(false,"Append",(Object)(BA.ObjectToString(_record))).runVoidMethod ("Append",(Object)(dbrequestmanager.__c.getField(true,"TAB")));
 }
}Debug.locals.put("record", _record);
;
 BA.debugLineNum = 265;BA.debugLine="ToastMessageShow(sb.ToString, True)";
Debug.ShouldStop(256);
dbrequestmanager.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence(_sb.runMethod(true,"ToString"))),(Object)(dbrequestmanager.__c.getField(true,"True")));
 }
}Debug.locals.put("row", _row);
;
 BA.debugLineNum = 267;BA.debugLine="End Sub";
Debug.ShouldStop(1024);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _readbyte(RemoteObject __ref,RemoteObject _in) throws Exception{
try {
		Debug.PushSubsStack("ReadByte (dbrequestmanager) ","dbrequestmanager",20,__ref.getField(false, "ba"),__ref,177);
if (RapidSub.canDelegate("readbyte")) { return __ref.runUserSub(false, "dbrequestmanager","readbyte", __ref, _in);}
RemoteObject _data = null;
Debug.locals.put("In", _in);
 BA.debugLineNum = 177;BA.debugLine="Private Sub ReadByte(In As InputStream) As Byte";
Debug.ShouldStop(65536);
 BA.debugLineNum = 178;BA.debugLine="Dim data(1) As Byte";
Debug.ShouldStop(131072);
_data = RemoteObject.createNewArray ("byte", new int[] {1}, new Object[]{});Debug.locals.put("data", _data);
 BA.debugLineNum = 179;BA.debugLine="In.ReadBytes(data, 0, 1)";
Debug.ShouldStop(262144);
_in.runVoidMethod ("ReadBytes",(Object)(_data),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 1)));
 BA.debugLineNum = 180;BA.debugLine="Return data(0)";
Debug.ShouldStop(524288);
if (true) return _data.getArrayElement(true,BA.numberCast(int.class, 0));
 BA.debugLineNum = 181;BA.debugLine="End Sub";
Debug.ShouldStop(1048576);
return RemoteObject.createImmutable((byte)0);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _readbytesfully(RemoteObject __ref,RemoteObject _in,RemoteObject _data,RemoteObject _len) throws Exception{
try {
		Debug.PushSubsStack("ReadBytesFully (dbrequestmanager) ","dbrequestmanager",20,__ref.getField(false, "ba"),__ref,157);
if (RapidSub.canDelegate("readbytesfully")) { return __ref.runUserSub(false, "dbrequestmanager","readbytesfully", __ref, _in, _data, _len);}
RemoteObject _count = RemoteObject.createImmutable(0);
RemoteObject _read = RemoteObject.createImmutable(0);
Debug.locals.put("In", _in);
Debug.locals.put("Data", _data);
Debug.locals.put("Len", _len);
 BA.debugLineNum = 157;BA.debugLine="Private Sub ReadBytesFully(In As InputStream, Data";
Debug.ShouldStop(268435456);
 BA.debugLineNum = 158;BA.debugLine="Dim count = 0, read As Int";
Debug.ShouldStop(536870912);
_count = BA.numberCast(int.class, 0);Debug.locals.put("count", _count);Debug.locals.put("count", _count);
_read = RemoteObject.createImmutable(0);Debug.locals.put("read", _read);
 BA.debugLineNum = 159;BA.debugLine="Do While count < Len And read > -1";
Debug.ShouldStop(1073741824);
while (RemoteObject.solveBoolean("<",_count,BA.numberCast(double.class, _len)) && RemoteObject.solveBoolean(">",_read,BA.numberCast(double.class, -(double) (0 + 1)))) {
 BA.debugLineNum = 160;BA.debugLine="read = In.ReadBytes(Data, count, Len - count)";
Debug.ShouldStop(-2147483648);
_read = _in.runMethod(true,"ReadBytes",(Object)(_data),(Object)(_count),(Object)(RemoteObject.solve(new RemoteObject[] {_len,_count}, "-",1, 1)));Debug.locals.put("read", _read);
 BA.debugLineNum = 161;BA.debugLine="count = count + read";
Debug.ShouldStop(1);
_count = RemoteObject.solve(new RemoteObject[] {_count,_read}, "+",1, 1);Debug.locals.put("count", _count);
 }
;
 BA.debugLineNum = 163;BA.debugLine="Return Data";
Debug.ShouldStop(4);
if (true) return _data;
 BA.debugLineNum = 164;BA.debugLine="End Sub";
Debug.ShouldStop(8);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _readint(RemoteObject __ref,RemoteObject _in) throws Exception{
try {
		Debug.PushSubsStack("ReadInt (dbrequestmanager) ","dbrequestmanager",20,__ref.getField(false, "ba"),__ref,172);
if (RapidSub.canDelegate("readint")) { return __ref.runUserSub(false, "dbrequestmanager","readint", __ref, _in);}
RemoteObject _data = null;
Debug.locals.put("In", _in);
 BA.debugLineNum = 172;BA.debugLine="Private Sub ReadInt(In As InputStream) As Int";
Debug.ShouldStop(2048);
 BA.debugLineNum = 173;BA.debugLine="Dim data(4) As Byte";
Debug.ShouldStop(4096);
_data = RemoteObject.createNewArray ("byte", new int[] {4}, new Object[]{});Debug.locals.put("data", _data);
 BA.debugLineNum = 174;BA.debugLine="Return bc.IntsFromBytes(ReadBytesFully(In, data,";
Debug.ShouldStop(8192);
if (true) return __ref.getField(false,"_bc" /*RemoteObject*/ ).runMethod(false,"IntsFromBytes",(Object)(__ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_readbytesfully" /*RemoteObject*/ ,(Object)(_in),(Object)(_data),(Object)(_data.getField(true,"length"))))).getArrayElement(true,BA.numberCast(int.class, 0));
 BA.debugLineNum = 175;BA.debugLine="End Sub";
Debug.ShouldStop(16384);
return RemoteObject.createImmutable(0);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _readobject(RemoteObject __ref,RemoteObject _in) throws Exception{
try {
		Debug.PushSubsStack("ReadObject (dbrequestmanager) ","dbrequestmanager",20,__ref.getField(false, "ba"),__ref,121);
if (RapidSub.canDelegate("readobject")) { return __ref.runUserSub(false, "dbrequestmanager","readobject", __ref, _in);}
RemoteObject _data = null;
RemoteObject _b = RemoteObject.createImmutable((byte)0);
RemoteObject _len = RemoteObject.createImmutable(0);
Debug.locals.put("In", _in);
 BA.debugLineNum = 121;BA.debugLine="Private Sub ReadObject(In As InputStream) As Objec";
Debug.ShouldStop(16777216);
 BA.debugLineNum = 122;BA.debugLine="Dim data(1) As Byte";
Debug.ShouldStop(33554432);
_data = RemoteObject.createNewArray ("byte", new int[] {1}, new Object[]{});Debug.locals.put("data", _data);
 BA.debugLineNum = 123;BA.debugLine="In.ReadBytes(data, 0, 1)";
Debug.ShouldStop(67108864);
_in.runVoidMethod ("ReadBytes",(Object)(_data),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 1)));
 BA.debugLineNum = 124;BA.debugLine="Select data(0)";
Debug.ShouldStop(134217728);
switch (BA.switchObjectToInt(_data.getArrayElement(true,BA.numberCast(int.class, 0)),__ref.getField(true,"_t_null" /*RemoteObject*/ ),__ref.getField(true,"_t_short" /*RemoteObject*/ ),__ref.getField(true,"_t_int" /*RemoteObject*/ ),__ref.getField(true,"_t_long" /*RemoteObject*/ ),__ref.getField(true,"_t_float" /*RemoteObject*/ ),__ref.getField(true,"_t_double" /*RemoteObject*/ ),__ref.getField(true,"_t_boolean" /*RemoteObject*/ ),__ref.getField(true,"_t_blob" /*RemoteObject*/ ))) {
case 0: {
 BA.debugLineNum = 126;BA.debugLine="Return Null";
Debug.ShouldStop(536870912);
if (true) return dbrequestmanager.__c.getField(false,"Null");
 break; }
case 1: {
 BA.debugLineNum = 128;BA.debugLine="Dim data(2) As Byte";
Debug.ShouldStop(-2147483648);
_data = RemoteObject.createNewArray ("byte", new int[] {2}, new Object[]{});Debug.locals.put("data", _data);
 BA.debugLineNum = 129;BA.debugLine="Return bc.ShortsFromBytes(ReadBytesFully(In, da";
Debug.ShouldStop(1);
if (true) return (__ref.getField(false,"_bc" /*RemoteObject*/ ).runMethod(false,"ShortsFromBytes",(Object)(__ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_readbytesfully" /*RemoteObject*/ ,(Object)(_in),(Object)(_data),(Object)(_data.getField(true,"length"))))).getArrayElement(true,BA.numberCast(int.class, 0)));
 break; }
case 2: {
 BA.debugLineNum = 131;BA.debugLine="Dim data(4) As Byte";
Debug.ShouldStop(4);
_data = RemoteObject.createNewArray ("byte", new int[] {4}, new Object[]{});Debug.locals.put("data", _data);
 BA.debugLineNum = 132;BA.debugLine="Return bc.IntsFromBytes(ReadBytesFully(In, data";
Debug.ShouldStop(8);
if (true) return (__ref.getField(false,"_bc" /*RemoteObject*/ ).runMethod(false,"IntsFromBytes",(Object)(__ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_readbytesfully" /*RemoteObject*/ ,(Object)(_in),(Object)(_data),(Object)(_data.getField(true,"length"))))).getArrayElement(true,BA.numberCast(int.class, 0)));
 break; }
case 3: {
 BA.debugLineNum = 134;BA.debugLine="Dim data(8) As Byte";
Debug.ShouldStop(32);
_data = RemoteObject.createNewArray ("byte", new int[] {8}, new Object[]{});Debug.locals.put("data", _data);
 BA.debugLineNum = 135;BA.debugLine="Return bc.LongsFromBytes(ReadBytesFully(In, dat";
Debug.ShouldStop(64);
if (true) return (__ref.getField(false,"_bc" /*RemoteObject*/ ).runMethod(false,"LongsFromBytes",(Object)(__ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_readbytesfully" /*RemoteObject*/ ,(Object)(_in),(Object)(_data),(Object)(_data.getField(true,"length"))))).getArrayElement(true,BA.numberCast(int.class, 0)));
 break; }
case 4: {
 BA.debugLineNum = 137;BA.debugLine="Dim data(4) As Byte";
Debug.ShouldStop(256);
_data = RemoteObject.createNewArray ("byte", new int[] {4}, new Object[]{});Debug.locals.put("data", _data);
 BA.debugLineNum = 138;BA.debugLine="Return bc.FloatsFromBytes(ReadBytesFully(In, da";
Debug.ShouldStop(512);
if (true) return (__ref.getField(false,"_bc" /*RemoteObject*/ ).runMethod(false,"FloatsFromBytes",(Object)(__ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_readbytesfully" /*RemoteObject*/ ,(Object)(_in),(Object)(_data),(Object)(_data.getField(true,"length"))))).getArrayElement(true,BA.numberCast(int.class, 0)));
 break; }
case 5: {
 BA.debugLineNum = 140;BA.debugLine="Dim data(8) As Byte";
Debug.ShouldStop(2048);
_data = RemoteObject.createNewArray ("byte", new int[] {8}, new Object[]{});Debug.locals.put("data", _data);
 BA.debugLineNum = 141;BA.debugLine="Return bc.DoublesFromBytes(ReadBytesFully(In, d";
Debug.ShouldStop(4096);
if (true) return (__ref.getField(false,"_bc" /*RemoteObject*/ ).runMethod(false,"DoublesFromBytes",(Object)(__ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_readbytesfully" /*RemoteObject*/ ,(Object)(_in),(Object)(_data),(Object)(_data.getField(true,"length"))))).getArrayElement(true,BA.numberCast(int.class, 0)));
 break; }
case 6: {
 BA.debugLineNum = 143;BA.debugLine="Dim b As Byte = ReadByte(In)";
Debug.ShouldStop(16384);
_b = __ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_readbyte" /*RemoteObject*/ ,(Object)(_in));Debug.locals.put("b", _b);Debug.locals.put("b", _b);
 BA.debugLineNum = 144;BA.debugLine="Return b = 1";
Debug.ShouldStop(32768);
if (true) return RemoteObject.createImmutable((RemoteObject.solveBoolean("=",_b,BA.numberCast(double.class, 1))));
 break; }
case 7: {
 BA.debugLineNum = 146;BA.debugLine="Dim len As Int = ReadInt(In)";
Debug.ShouldStop(131072);
_len = __ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_readint" /*RemoteObject*/ ,(Object)(_in));Debug.locals.put("len", _len);Debug.locals.put("len", _len);
 BA.debugLineNum = 147;BA.debugLine="Dim data(len) As Byte";
Debug.ShouldStop(262144);
_data = RemoteObject.createNewArray ("byte", new int[] {_len.<Integer>get().intValue()}, new Object[]{});Debug.locals.put("data", _data);
 BA.debugLineNum = 148;BA.debugLine="Return ReadBytesFully(In, data, data.Length)";
Debug.ShouldStop(524288);
if (true) return (__ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_readbytesfully" /*RemoteObject*/ ,(Object)(_in),(Object)(_data),(Object)(_data.getField(true,"length"))));
 break; }
default: {
 BA.debugLineNum = 150;BA.debugLine="Dim len As Int = ReadInt(In)";
Debug.ShouldStop(2097152);
_len = __ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_readint" /*RemoteObject*/ ,(Object)(_in));Debug.locals.put("len", _len);Debug.locals.put("len", _len);
 BA.debugLineNum = 151;BA.debugLine="Dim data(len) As Byte";
Debug.ShouldStop(4194304);
_data = RemoteObject.createNewArray ("byte", new int[] {_len.<Integer>get().intValue()}, new Object[]{});Debug.locals.put("data", _data);
 BA.debugLineNum = 152;BA.debugLine="ReadBytesFully(In, data, data.Length)";
Debug.ShouldStop(8388608);
__ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_readbytesfully" /*RemoteObject*/ ,(Object)(_in),(Object)(_data),(Object)(_data.getField(true,"length")));
 BA.debugLineNum = 153;BA.debugLine="Return BytesToString(data, 0, data.Length, \"UTF";
Debug.ShouldStop(16777216);
if (true) return (dbrequestmanager.__c.runMethod(true,"BytesToString",(Object)(_data),(Object)(BA.numberCast(int.class, 0)),(Object)(_data.getField(true,"length")),(Object)(RemoteObject.createImmutable("UTF8"))));
 break; }
}
;
 BA.debugLineNum = 155;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _startjob(RemoteObject __ref,RemoteObject _j,RemoteObject _memorystream,RemoteObject _tag) throws Exception{
try {
		Debug.PushSubsStack("StartJob (dbrequestmanager) ","dbrequestmanager",20,__ref.getField(false, "ba"),__ref,61);
if (RapidSub.canDelegate("startjob")) { return __ref.runUserSub(false, "dbrequestmanager","startjob", __ref, _j, _memorystream, _tag);}
RemoteObject _compress = RemoteObject.declareNull("anywheresoftware.b4a.randomaccessfile.CompressedStreams");
RemoteObject _out = RemoteObject.declareNull("anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper");
Debug.locals.put("j", _j);
Debug.locals.put("MemoryStream", _memorystream);
Debug.locals.put("Tag", _tag);
 BA.debugLineNum = 61;BA.debugLine="Private Sub StartJob(j As HttpJob, MemoryStream As";
Debug.ShouldStop(268435456);
 BA.debugLineNum = 62;BA.debugLine="j.Initialize(\"DBRequest\", mTarget)";
Debug.ShouldStop(536870912);
_j.runClassMethod (keymon.lat.medicomed.httpjob.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.ObjectToString("DBRequest")),(Object)(__ref.getField(false,"_mtarget" /*RemoteObject*/ )));
 BA.debugLineNum = 63;BA.debugLine="j.Tag = Tag";
Debug.ShouldStop(1073741824);
_j.setField ("_tag" /*RemoteObject*/ ,_tag);
 BA.debugLineNum = 64;BA.debugLine="MemoryStream.InitializeToBytesArray(0)";
Debug.ShouldStop(-2147483648);
_memorystream.runVoidMethod ("InitializeToBytesArray",(Object)(BA.numberCast(int.class, 0)));
 BA.debugLineNum = 65;BA.debugLine="Dim compress As CompressedStreams";
Debug.ShouldStop(1);
_compress = RemoteObject.createNew ("anywheresoftware.b4a.randomaccessfile.CompressedStreams");Debug.locals.put("compress", _compress);
 BA.debugLineNum = 66;BA.debugLine="Dim out As OutputStream = compress.WrapOutputStre";
Debug.ShouldStop(2);
_out = RemoteObject.createNew ("anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper");
_out = _compress.runMethod(false,"WrapOutputStream",(Object)((_memorystream.getObject())),(Object)(RemoteObject.createImmutable("gzip")));Debug.locals.put("out", _out);Debug.locals.put("out", _out);
 BA.debugLineNum = 67;BA.debugLine="WriteObject(VERSION, out)";
Debug.ShouldStop(4);
__ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_writeobject" /*RemoteObject*/ ,(Object)((__ref.getField(true,"_version" /*RemoteObject*/ ))),(Object)(_out));
 BA.debugLineNum = 68;BA.debugLine="Return out";
Debug.ShouldStop(8);
if (true) return _out;
 BA.debugLineNum = 69;BA.debugLine="End Sub";
Debug.ShouldStop(16);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _writeint(RemoteObject __ref,RemoteObject _i,RemoteObject _out) throws Exception{
try {
		Debug.PushSubsStack("WriteInt (dbrequestmanager) ","dbrequestmanager",20,__ref.getField(false, "ba"),__ref,166);
if (RapidSub.canDelegate("writeint")) { return __ref.runUserSub(false, "dbrequestmanager","writeint", __ref, _i, _out);}
RemoteObject _data = null;
Debug.locals.put("i", _i);
Debug.locals.put("out", _out);
 BA.debugLineNum = 166;BA.debugLine="Private Sub WriteInt(i As Int, out As OutputStream";
Debug.ShouldStop(32);
 BA.debugLineNum = 167;BA.debugLine="Dim data() As Byte";
Debug.ShouldStop(64);
_data = RemoteObject.createNewArray ("byte", new int[] {0}, new Object[]{});Debug.locals.put("data", _data);
 BA.debugLineNum = 168;BA.debugLine="data = bc.IntsToBytes(Array As Int(i))";
Debug.ShouldStop(128);
_data = __ref.getField(false,"_bc" /*RemoteObject*/ ).runMethod(false,"IntsToBytes",(Object)(RemoteObject.createNewArray("int",new int[] {1},new Object[] {_i})));Debug.locals.put("data", _data);
 BA.debugLineNum = 169;BA.debugLine="out.WriteBytes(data, 0, data.Length)";
Debug.ShouldStop(256);
_out.runVoidMethod ("WriteBytes",(Object)(_data),(Object)(BA.numberCast(int.class, 0)),(Object)(_data.getField(true,"length")));
 BA.debugLineNum = 170;BA.debugLine="End Sub";
Debug.ShouldStop(512);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _writelist(RemoteObject __ref,RemoteObject _parameters,RemoteObject _out) throws Exception{
try {
		Debug.PushSubsStack("WriteList (dbrequestmanager) ","dbrequestmanager",20,__ref.getField(false, "ba"),__ref,71);
if (RapidSub.canDelegate("writelist")) { return __ref.runUserSub(false, "dbrequestmanager","writelist", __ref, _parameters, _out);}
RemoteObject _data = null;
RemoteObject _o = RemoteObject.declareNull("Object");
Debug.locals.put("out", _out);
 BA.debugLineNum = 71;BA.debugLine="Private Sub WriteList(Parameters As List, out As O";
Debug.ShouldStop(64);
 BA.debugLineNum = 72;BA.debugLine="Dim data() As Byte";
Debug.ShouldStop(128);
_data = RemoteObject.createNewArray ("byte", new int[] {0}, new Object[]{});Debug.locals.put("data", _data);
 BA.debugLineNum = 73;BA.debugLine="If Parameters = Null Or Parameters.IsInitialized";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("n",_parameters) || RemoteObject.solveBoolean("=",_parameters.runMethod(true,"IsInitialized"),dbrequestmanager.__c.getField(true,"False"))) { 
 BA.debugLineNum = 74;BA.debugLine="Dim Parameters As List";
Debug.ShouldStop(512);
_parameters = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");Debug.locals.put("Parameters", _parameters);
 BA.debugLineNum = 75;BA.debugLine="Parameters.Initialize";
Debug.ShouldStop(1024);
_parameters.runVoidMethod ("Initialize");
 };
 BA.debugLineNum = 77;BA.debugLine="data = bc.IntsToBytes(Array As Int(Parameters.Siz";
Debug.ShouldStop(4096);
_data = __ref.getField(false,"_bc" /*RemoteObject*/ ).runMethod(false,"IntsToBytes",(Object)(RemoteObject.createNewArray("int",new int[] {1},new Object[] {_parameters.runMethod(true,"getSize")})));Debug.locals.put("data", _data);
 BA.debugLineNum = 78;BA.debugLine="out.WriteBytes(data, 0, data.Length)";
Debug.ShouldStop(8192);
_out.runVoidMethod ("WriteBytes",(Object)(_data),(Object)(BA.numberCast(int.class, 0)),(Object)(_data.getField(true,"length")));
 BA.debugLineNum = 79;BA.debugLine="For Each o As Object In Parameters";
Debug.ShouldStop(16384);
{
final RemoteObject group8 = _parameters;
final int groupLen8 = group8.runMethod(true,"getSize").<Integer>get()
;int index8 = 0;
;
for (; index8 < groupLen8;index8++){
_o = group8.runMethod(false,"Get",index8);Debug.locals.put("o", _o);
Debug.locals.put("o", _o);
 BA.debugLineNum = 80;BA.debugLine="WriteObject(o, out)";
Debug.ShouldStop(32768);
__ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_writeobject" /*RemoteObject*/ ,(Object)(_o),(Object)(_out));
 }
}Debug.locals.put("o", _o);
;
 BA.debugLineNum = 82;BA.debugLine="End Sub";
Debug.ShouldStop(131072);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _writeobject(RemoteObject __ref,RemoteObject _o,RemoteObject _out) throws Exception{
try {
		Debug.PushSubsStack("WriteObject (dbrequestmanager) ","dbrequestmanager",20,__ref.getField(false, "ba"),__ref,84);
if (RapidSub.canDelegate("writeobject")) { return __ref.runUserSub(false, "dbrequestmanager","writeobject", __ref, _o, _out);}
RemoteObject _data = null;
RemoteObject _b = RemoteObject.createImmutable(false);
Debug.locals.put("o", _o);
Debug.locals.put("out", _out);
 BA.debugLineNum = 84;BA.debugLine="Private Sub WriteObject(o As Object, out As Output";
Debug.ShouldStop(524288);
 BA.debugLineNum = 85;BA.debugLine="Dim data() As Byte";
Debug.ShouldStop(1048576);
_data = RemoteObject.createNewArray ("byte", new int[] {0}, new Object[]{});Debug.locals.put("data", _data);
 BA.debugLineNum = 86;BA.debugLine="tempArray(0) = o";
Debug.ShouldStop(2097152);
__ref.getField(false,"_temparray" /*RemoteObject*/ ).setArrayElement (_o,BA.numberCast(int.class, 0));
 BA.debugLineNum = 87;BA.debugLine="If tempArray(0) = Null Then";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("n",__ref.getField(false,"_temparray" /*RemoteObject*/ ).getArrayElement(false,BA.numberCast(int.class, 0)))) { 
 BA.debugLineNum = 88;BA.debugLine="out.WriteBytes(Array As Byte(T_NULL), 0, 1)";
Debug.ShouldStop(8388608);
_out.runVoidMethod ("WriteBytes",(Object)(RemoteObject.createNewArray("byte",new int[] {1},new Object[] {__ref.getField(true,"_t_null" /*RemoteObject*/ )})),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 1)));
 }else 
{ BA.debugLineNum = 89;BA.debugLine="Else If tempArray(0) Is Short Then";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("i",__ref.getField(false,"_temparray" /*RemoteObject*/ ).getArrayElement(false,BA.numberCast(int.class, 0)), RemoteObject.createImmutable("Short"))) { 
 BA.debugLineNum = 90;BA.debugLine="out.WriteBytes(Array As Byte(T_SHORT), 0, 1)";
Debug.ShouldStop(33554432);
_out.runVoidMethod ("WriteBytes",(Object)(RemoteObject.createNewArray("byte",new int[] {1},new Object[] {__ref.getField(true,"_t_short" /*RemoteObject*/ )})),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 1)));
 BA.debugLineNum = 91;BA.debugLine="data = bc.ShortsToBytes(Array As Short(o))";
Debug.ShouldStop(67108864);
_data = __ref.getField(false,"_bc" /*RemoteObject*/ ).runMethod(false,"ShortsToBytes",(Object)(RemoteObject.createNewArray("short",new int[] {1},new Object[] {BA.numberCast(short.class, _o)})));Debug.locals.put("data", _data);
 }else 
{ BA.debugLineNum = 92;BA.debugLine="Else If tempArray(0) Is Int Then";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean("i",__ref.getField(false,"_temparray" /*RemoteObject*/ ).getArrayElement(false,BA.numberCast(int.class, 0)), RemoteObject.createImmutable("Integer"))) { 
 BA.debugLineNum = 93;BA.debugLine="out.WriteBytes(Array As Byte(T_INT), 0, 1)";
Debug.ShouldStop(268435456);
_out.runVoidMethod ("WriteBytes",(Object)(RemoteObject.createNewArray("byte",new int[] {1},new Object[] {__ref.getField(true,"_t_int" /*RemoteObject*/ )})),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 1)));
 BA.debugLineNum = 94;BA.debugLine="data = bc.IntsToBytes(Array As Int(o))";
Debug.ShouldStop(536870912);
_data = __ref.getField(false,"_bc" /*RemoteObject*/ ).runMethod(false,"IntsToBytes",(Object)(RemoteObject.createNewArray("int",new int[] {1},new Object[] {BA.numberCast(int.class, _o)})));Debug.locals.put("data", _data);
 }else 
{ BA.debugLineNum = 95;BA.debugLine="Else If tempArray(0) Is Float Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("i",__ref.getField(false,"_temparray" /*RemoteObject*/ ).getArrayElement(false,BA.numberCast(int.class, 0)), RemoteObject.createImmutable("Float"))) { 
 BA.debugLineNum = 96;BA.debugLine="out.WriteBytes(Array As Byte(T_FLOAT), 0, 1)";
Debug.ShouldStop(-2147483648);
_out.runVoidMethod ("WriteBytes",(Object)(RemoteObject.createNewArray("byte",new int[] {1},new Object[] {__ref.getField(true,"_t_float" /*RemoteObject*/ )})),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 1)));
 BA.debugLineNum = 97;BA.debugLine="data = bc.FloatsToBytes(Array As Float(o))";
Debug.ShouldStop(1);
_data = __ref.getField(false,"_bc" /*RemoteObject*/ ).runMethod(false,"FloatsToBytes",(Object)(RemoteObject.createNewArray("float",new int[] {1},new Object[] {BA.numberCast(float.class, _o)})));Debug.locals.put("data", _data);
 }else 
{ BA.debugLineNum = 98;BA.debugLine="Else If tempArray(0) Is Double Then";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean("i",__ref.getField(false,"_temparray" /*RemoteObject*/ ).getArrayElement(false,BA.numberCast(int.class, 0)), RemoteObject.createImmutable("Double"))) { 
 BA.debugLineNum = 99;BA.debugLine="out.WriteBytes(Array As Byte(T_DOUBLE), 0, 1)";
Debug.ShouldStop(4);
_out.runVoidMethod ("WriteBytes",(Object)(RemoteObject.createNewArray("byte",new int[] {1},new Object[] {__ref.getField(true,"_t_double" /*RemoteObject*/ )})),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 1)));
 BA.debugLineNum = 100;BA.debugLine="data = bc.DoublesToBytes(Array As Double(o))";
Debug.ShouldStop(8);
_data = __ref.getField(false,"_bc" /*RemoteObject*/ ).runMethod(false,"DoublesToBytes",(Object)(RemoteObject.createNewArray("double",new int[] {1},new Object[] {BA.numberCast(double.class, _o)})));Debug.locals.put("data", _data);
 }else 
{ BA.debugLineNum = 101;BA.debugLine="Else If tempArray(0) Is Long Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean("i",__ref.getField(false,"_temparray" /*RemoteObject*/ ).getArrayElement(false,BA.numberCast(int.class, 0)), RemoteObject.createImmutable("Long"))) { 
 BA.debugLineNum = 102;BA.debugLine="out.WriteBytes(Array As Byte(T_LONG), 0, 1)";
Debug.ShouldStop(32);
_out.runVoidMethod ("WriteBytes",(Object)(RemoteObject.createNewArray("byte",new int[] {1},new Object[] {__ref.getField(true,"_t_long" /*RemoteObject*/ )})),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 1)));
 BA.debugLineNum = 103;BA.debugLine="data = bc.LongsToBytes(Array As Long(o))";
Debug.ShouldStop(64);
_data = __ref.getField(false,"_bc" /*RemoteObject*/ ).runMethod(false,"LongsToBytes",(Object)(RemoteObject.createNewArray("long",new int[] {1},new Object[] {BA.numberCast(long.class, _o)})));Debug.locals.put("data", _data);
 }else 
{ BA.debugLineNum = 104;BA.debugLine="Else If tempArray(0) Is Boolean Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("i",__ref.getField(false,"_temparray" /*RemoteObject*/ ).getArrayElement(false,BA.numberCast(int.class, 0)), RemoteObject.createImmutable("Boolean"))) { 
 BA.debugLineNum = 105;BA.debugLine="out.WriteBytes(Array As Byte(T_BOOLEAN), 0, 1)";
Debug.ShouldStop(256);
_out.runVoidMethod ("WriteBytes",(Object)(RemoteObject.createNewArray("byte",new int[] {1},new Object[] {__ref.getField(true,"_t_boolean" /*RemoteObject*/ )})),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 1)));
 BA.debugLineNum = 106;BA.debugLine="Dim b As Boolean = 0";
Debug.ShouldStop(512);
_b = BA.ObjectToBoolean(0);Debug.locals.put("b", _b);Debug.locals.put("b", _b);
 BA.debugLineNum = 107;BA.debugLine="Dim data(1) As Byte";
Debug.ShouldStop(1024);
_data = RemoteObject.createNewArray ("byte", new int[] {1}, new Object[]{});Debug.locals.put("data", _data);
 BA.debugLineNum = 108;BA.debugLine="If b Then data(0) = 1 Else data(0) = 0";
Debug.ShouldStop(2048);
if (_b.<Boolean>get().booleanValue()) { 
_data.setArrayElement (BA.numberCast(byte.class, 1),BA.numberCast(int.class, 0));}
else {
_data.setArrayElement (BA.numberCast(byte.class, 0),BA.numberCast(int.class, 0));};
 }else 
{ BA.debugLineNum = 109;BA.debugLine="Else If GetType(tempArray(0)) = \"[B\" Then";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("=",dbrequestmanager.__c.runMethod(true,"GetType",(Object)(__ref.getField(false,"_temparray" /*RemoteObject*/ ).getArrayElement(false,BA.numberCast(int.class, 0)))),BA.ObjectToString("[B"))) { 
 BA.debugLineNum = 110;BA.debugLine="data = o";
Debug.ShouldStop(8192);
_data = (_o);Debug.locals.put("data", _data);
 BA.debugLineNum = 111;BA.debugLine="out.WriteBytes(Array As Byte(T_BLOB), 0, 1)";
Debug.ShouldStop(16384);
_out.runVoidMethod ("WriteBytes",(Object)(RemoteObject.createNewArray("byte",new int[] {1},new Object[] {__ref.getField(true,"_t_blob" /*RemoteObject*/ )})),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 1)));
 BA.debugLineNum = 112;BA.debugLine="WriteInt(data.Length, out)";
Debug.ShouldStop(32768);
__ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_writeint" /*RemoteObject*/ ,(Object)(_data.getField(true,"length")),(Object)(_out));
 }else {
 BA.debugLineNum = 114;BA.debugLine="out.WriteBytes(Array As Byte(T_STRING), 0, 1)";
Debug.ShouldStop(131072);
_out.runVoidMethod ("WriteBytes",(Object)(RemoteObject.createNewArray("byte",new int[] {1},new Object[] {__ref.getField(true,"_t_string" /*RemoteObject*/ )})),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 1)));
 BA.debugLineNum = 115;BA.debugLine="data = bc.StringToBytes(o, \"UTF8\")";
Debug.ShouldStop(262144);
_data = __ref.getField(false,"_bc" /*RemoteObject*/ ).runMethod(false,"StringToBytes",(Object)(BA.ObjectToString(_o)),(Object)(RemoteObject.createImmutable("UTF8")));Debug.locals.put("data", _data);
 BA.debugLineNum = 116;BA.debugLine="WriteInt(data.Length, out)";
Debug.ShouldStop(524288);
__ref.runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_writeint" /*RemoteObject*/ ,(Object)(_data.getField(true,"length")),(Object)(_out));
 }}}}}}}}
;
 BA.debugLineNum = 118;BA.debugLine="If data.Length > 0 Then out.WriteBytes(data, 0, d";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean(">",_data.getField(true,"length"),BA.numberCast(double.class, 0))) { 
_out.runVoidMethod ("WriteBytes",(Object)(_data),(Object)(BA.numberCast(int.class, 0)),(Object)(_data.getField(true,"length")));};
 BA.debugLineNum = 119;BA.debugLine="End Sub";
Debug.ShouldStop(4194304);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}