package reparto_izca.keymon.lat;


import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.B4AClass;
import anywheresoftware.b4a.BALayout;
import anywheresoftware.b4a.debug.*;

public class dbrequestmanager extends B4AClass.ImplB4AClass implements BA.SubDelegator{
    private static java.util.HashMap<String, java.lang.reflect.Method> htSubs;
    private void innerInitialize(BA _ba) throws Exception {
        if (ba == null) {
            ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.dbrequestmanager");
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            
        }
        if (BA.isShellModeRuntimeCheck(ba)) 
			   this.getClass().getMethod("_class_globals", reparto_izca.keymon.lat.dbrequestmanager.class).invoke(this, new Object[] {null});
        else
            ba.raiseEvent2(null, true, "class_globals", false);
    }

 
    public void  innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{
        innerInitialize(_ba);
    }
    public Object callSub(String sub, Object sender, Object[] args) throws Exception {
        return BA.SubDelegator.SubNotFound;
    }
public static class _dbresult{
public boolean IsInitialized;
public Object Tag;
public anywheresoftware.b4a.objects.collections.Map Columns;
public anywheresoftware.b4a.objects.collections.List Rows;
public void Initialize() {
IsInitialized = true;
Tag = new Object();
Columns = new anywheresoftware.b4a.objects.collections.Map();
Rows = new anywheresoftware.b4a.objects.collections.List();
}
@Override
		public String toString() {
			return BA.TypeToString(this, false);
		}}
public static class _dbcommand{
public boolean IsInitialized;
public String Name;
public Object[] Parameters;
public void Initialize() {
IsInitialized = true;
Name = "";
Parameters = new Object[0];
{
int d0 = Parameters.length;
for (int i0 = 0;i0 < d0;i0++) {
Parameters[i0] = new Object();
}
}
;
}
@Override
		public String toString() {
			return BA.TypeToString(this, false);
		}}
public anywheresoftware.b4a.keywords.Common __c = null;
public Object _mtarget = null;
public String _link = "";
public anywheresoftware.b4a.agraham.byteconverter.ByteConverter _bc = null;
public byte _t_null = (byte)0;
public byte _t_string = (byte)0;
public byte _t_short = (byte)0;
public byte _t_int = (byte)0;
public byte _t_long = (byte)0;
public byte _t_float = (byte)0;
public byte _t_double = (byte)0;
public byte _t_boolean = (byte)0;
public byte _t_blob = (byte)0;
public float _version = 0f;
public Object[] _temparray = null;
public String _jobtaganterior = "";
public b4a.example.dateutils _dateutils = null;
public reparto_izca.keymon.lat.main _main = null;
public reparto_izca.keymon.lat.appupdater _appupdater = null;
public reparto_izca.keymon.lat.subs _subs = null;
public reparto_izca.keymon.lat.foto _foto = null;
public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null;
public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null;
public reparto_izca.keymon.lat.starter _starter = null;
public reparto_izca.keymon.lat.tracker _tracker = null;
public reparto_izca.keymon.lat.newinst2 _newinst2 = null;
public reparto_izca.keymon.lat.b4xpages _b4xpages = null;
public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null;
public reparto_izca.keymon.lat.httputils2service _httputils2service = null;
public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null;
public String  _initialize(reparto_izca.keymon.lat.dbrequestmanager __ref,anywheresoftware.b4a.BA _ba,Object _target,String _connectorlink) throws Exception{
__ref = this;
innerInitialize(_ba);
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "initialize", false))
	 {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_target,_connectorlink}));}
RDebugUtils.currentLine=64552960;
 //BA.debugLineNum = 64552960;BA.debugLine="Public Sub Initialize (Target As Object, Connector";
RDebugUtils.currentLine=64552961;
 //BA.debugLineNum = 64552961;BA.debugLine="mTarget = Target";
__ref._mtarget /*Object*/  = _target;
RDebugUtils.currentLine=64552962;
 //BA.debugLineNum = 64552962;BA.debugLine="link = ConnectorLink";
__ref._link /*String*/  = _connectorlink;
RDebugUtils.currentLine=64552963;
 //BA.debugLineNum = 64552963;BA.debugLine="End Sub";
return "";
}
public String  _executequery(reparto_izca.keymon.lat.dbrequestmanager __ref,reparto_izca.keymon.lat.dbrequestmanager._dbcommand _command,int _limit,Object _tag) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "executequery", false))
	 {return ((String) Debug.delegate(ba, "executequery", new Object[] {_command,_limit,_tag}));}
reparto_izca.keymon.lat.httpjob _j = null;
anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _ms = null;
anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out2 = null;
RDebugUtils.currentLine=64618496;
 //BA.debugLineNum = 64618496;BA.debugLine="Public Sub ExecuteQuery(Command As DBCommand, Limi";
RDebugUtils.currentLine=64618497;
 //BA.debugLineNum = 64618497;BA.debugLine="Dim j As HttpJob";
_j = new reparto_izca.keymon.lat.httpjob();
RDebugUtils.currentLine=64618498;
 //BA.debugLineNum = 64618498;BA.debugLine="Dim ms As OutputStream";
_ms = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
RDebugUtils.currentLine=64618499;
 //BA.debugLineNum = 64618499;BA.debugLine="Dim out2 As OutputStream = StartJob(j,ms, Tag)";
_out2 = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
_out2 = __ref._startjob /*anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper*/ (null,_j,_ms,_tag);
RDebugUtils.currentLine=64618501;
 //BA.debugLineNum = 64618501;BA.debugLine="WriteObject(Command.Name, out2)";
__ref._writeobject /*String*/ (null,(Object)(_command.Name /*String*/ ),_out2);
RDebugUtils.currentLine=64618502;
 //BA.debugLineNum = 64618502;BA.debugLine="WriteInt(Limit, out2)";
__ref._writeint /*String*/ (null,_limit,_out2);
RDebugUtils.currentLine=64618503;
 //BA.debugLineNum = 64618503;BA.debugLine="WriteList(Command.Parameters, out2)";
__ref._writelist /*String*/ (null,anywheresoftware.b4a.keywords.Common.ArrayToList(_command.Parameters /*Object[]*/ ),_out2);
RDebugUtils.currentLine=64618504;
 //BA.debugLineNum = 64618504;BA.debugLine="out2.Close";
_out2.Close();
RDebugUtils.currentLine=64618505;
 //BA.debugLineNum = 64618505;BA.debugLine="j.PostBytes(link & \"?method=query\", ms.ToBytesArr";
_j._postbytes /*String*/ (null,__ref._link /*String*/ +"?method=query",_ms.ToBytesArray());
RDebugUtils.currentLine=64618506;
 //BA.debugLineNum = 64618506;BA.debugLine="End Sub";
return "";
}
public reparto_izca.keymon.lat.dbrequestmanager._dbresult  _handlejob(reparto_izca.keymon.lat.dbrequestmanager __ref,reparto_izca.keymon.lat.httpjob _job) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "handlejob", false))
	 {return ((reparto_izca.keymon.lat.dbrequestmanager._dbresult) Debug.delegate(ba, "handlejob", new Object[] {_job}));}
anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in = null;
anywheresoftware.b4a.randomaccessfile.CompressedStreams _cs = null;
float _serverversion = 0f;
String _method = "";
reparto_izca.keymon.lat.dbrequestmanager._dbresult _table = null;
int _numberofcolumns = 0;
int _i = 0;
Object[] _rowobjects = null;
int _col = 0;
Object _o = null;
int _rows = 0;
RDebugUtils.currentLine=65339392;
 //BA.debugLineNum = 65339392;BA.debugLine="Public Sub HandleJob(Job As HttpJob) As DBResult";
RDebugUtils.currentLine=65339394;
 //BA.debugLineNum = 65339394;BA.debugLine="Dim In As InputStream = Job.GetInputStream";
_in = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper();
_in = _job._getinputstream /*anywheresoftware.b4a.objects.streams.File.InputStreamWrapper*/ (null);
RDebugUtils.currentLine=65339395;
 //BA.debugLineNum = 65339395;BA.debugLine="Dim cs As CompressedStreams";
_cs = new anywheresoftware.b4a.randomaccessfile.CompressedStreams();
RDebugUtils.currentLine=65339396;
 //BA.debugLineNum = 65339396;BA.debugLine="In = cs.WrapInputStream(In, \"gzip\")";
_in = _cs.WrapInputStream((java.io.InputStream)(_in.getObject()),"gzip");
RDebugUtils.currentLine=65339397;
 //BA.debugLineNum = 65339397;BA.debugLine="Dim serverVersion As Float = ReadObject(In) 'igno";
_serverversion = (float)(BA.ObjectToNumber(__ref._readobject /*Object*/ (null,_in)));
RDebugUtils.currentLine=65339398;
 //BA.debugLineNum = 65339398;BA.debugLine="Dim method As String = ReadObject(In)";
_method = BA.ObjectToString(__ref._readobject /*Object*/ (null,_in));
RDebugUtils.currentLine=65339399;
 //BA.debugLineNum = 65339399;BA.debugLine="Dim table As DBResult";
_table = new reparto_izca.keymon.lat.dbrequestmanager._dbresult();
RDebugUtils.currentLine=65339400;
 //BA.debugLineNum = 65339400;BA.debugLine="table.Initialize";
_table.Initialize();
RDebugUtils.currentLine=65339401;
 //BA.debugLineNum = 65339401;BA.debugLine="table.Columns.Initialize";
_table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize();
RDebugUtils.currentLine=65339402;
 //BA.debugLineNum = 65339402;BA.debugLine="table.rows.Initialize";
_table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=65339403;
 //BA.debugLineNum = 65339403;BA.debugLine="table.Tag = Job.Tag";
_table.Tag /*Object*/  = _job._tag /*Object*/ ;
RDebugUtils.currentLine=65339404;
 //BA.debugLineNum = 65339404;BA.debugLine="If jobTagAnterior <> Job.Tag Then LogColor(\"Handl";
if ((__ref._jobtaganterior /*String*/ ).equals(BA.ObjectToString(_job._tag /*Object*/ )) == false) { 
__c.LogImpl("865339404","HandleJob: '"+BA.ObjectToString(_job._tag /*Object*/ )+"'",__c.Colors.Blue);};
RDebugUtils.currentLine=65339405;
 //BA.debugLineNum = 65339405;BA.debugLine="jobTagAnterior = Job.Tag  'Mod por CHV - 211023";
__ref._jobtaganterior /*String*/  = BA.ObjectToString(_job._tag /*Object*/ );
RDebugUtils.currentLine=65339406;
 //BA.debugLineNum = 65339406;BA.debugLine="If method = \"query\" Then";
if ((_method).equals("query")) { 
RDebugUtils.currentLine=65339407;
 //BA.debugLineNum = 65339407;BA.debugLine="Dim numberOfColumns As Int = ReadInt(In)";
_numberofcolumns = __ref._readint /*int*/ (null,_in);
RDebugUtils.currentLine=65339408;
 //BA.debugLineNum = 65339408;BA.debugLine="For i = 0 To numberOfColumns - 1";
{
final int step15 = 1;
final int limit15 = (int) (_numberofcolumns-1);
_i = (int) (0) ;
for (;_i <= limit15 ;_i = _i + step15 ) {
RDebugUtils.currentLine=65339409;
 //BA.debugLineNum = 65339409;BA.debugLine="table.Columns.Put(ReadObject(In), i)";
_table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Put(__ref._readobject /*Object*/ (null,_in),(Object)(_i));
 }
};
RDebugUtils.currentLine=65339411;
 //BA.debugLineNum = 65339411;BA.debugLine="Do While ReadByte(In) = 1";
while (__ref._readbyte /*byte*/ (null,_in)==1) {
RDebugUtils.currentLine=65339412;
 //BA.debugLineNum = 65339412;BA.debugLine="Dim rowObjects(numberOfColumns) As Object";
_rowobjects = new Object[_numberofcolumns];
{
int d0 = _rowobjects.length;
for (int i0 = 0;i0 < d0;i0++) {
_rowobjects[i0] = new Object();
}
}
;
RDebugUtils.currentLine=65339413;
 //BA.debugLineNum = 65339413;BA.debugLine="table.rows.Add(rowObjects)";
_table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_rowobjects));
RDebugUtils.currentLine=65339414;
 //BA.debugLineNum = 65339414;BA.debugLine="For col = 0 To numberOfColumns - 1";
{
final int step21 = 1;
final int limit21 = (int) (_numberofcolumns-1);
_col = (int) (0) ;
for (;_col <= limit21 ;_col = _col + step21 ) {
RDebugUtils.currentLine=65339415;
 //BA.debugLineNum = 65339415;BA.debugLine="Dim o As Object = ReadObject(In)";
_o = __ref._readobject /*Object*/ (null,_in);
RDebugUtils.currentLine=65339416;
 //BA.debugLineNum = 65339416;BA.debugLine="rowObjects(col) = o";
_rowobjects[_col] = _o;
 }
};
 }
;
 }else 
{RDebugUtils.currentLine=65339419;
 //BA.debugLineNum = 65339419;BA.debugLine="Else If method = \"batch\" Then";
if ((_method).equals("batch")) { 
RDebugUtils.currentLine=65339420;
 //BA.debugLineNum = 65339420;BA.debugLine="table.Columns.Put(\"AffectedRows\", 0)";
_table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Put((Object)("AffectedRows"),(Object)(0));
RDebugUtils.currentLine=65339421;
 //BA.debugLineNum = 65339421;BA.debugLine="Dim rows As Int = ReadInt(In)";
_rows = __ref._readint /*int*/ (null,_in);
RDebugUtils.currentLine=65339422;
 //BA.debugLineNum = 65339422;BA.debugLine="For i = 0 To rows - 1";
{
final int step29 = 1;
final int limit29 = (int) (_rows-1);
_i = (int) (0) ;
for (;_i <= limit29 ;_i = _i + step29 ) {
RDebugUtils.currentLine=65339423;
 //BA.debugLineNum = 65339423;BA.debugLine="table.rows.Add(Array As Object(ReadInt(In)))";
_table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(new Object[]{(Object)(__ref._readint /*int*/ (null,_in))}));
 }
};
 }}
;
RDebugUtils.currentLine=65339426;
 //BA.debugLineNum = 65339426;BA.debugLine="In.Close";
_in.Close();
RDebugUtils.currentLine=65339427;
 //BA.debugLineNum = 65339427;BA.debugLine="Return table";
if (true) return _table;
RDebugUtils.currentLine=65339428;
 //BA.debugLineNum = 65339428;BA.debugLine="End Sub";
return null;
}
public String  _executecommand(reparto_izca.keymon.lat.dbrequestmanager __ref,reparto_izca.keymon.lat.dbrequestmanager._dbcommand _command,Object _tag) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "executecommand", false))
	 {return ((String) Debug.delegate(ba, "executecommand", new Object[] {_command,_tag}));}
RDebugUtils.currentLine=64749568;
 //BA.debugLineNum = 64749568;BA.debugLine="Public Sub ExecuteCommand(Command As DBCommand, Ta";
RDebugUtils.currentLine=64749569;
 //BA.debugLineNum = 64749569;BA.debugLine="ExecuteBatch(Array As DBCommand(Command), Tag)";
__ref._executebatch /*String*/ (null,anywheresoftware.b4a.keywords.Common.ArrayToList(new reparto_izca.keymon.lat.dbrequestmanager._dbcommand[]{_command}),_tag);
RDebugUtils.currentLine=64749570;
 //BA.debugLineNum = 64749570;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper  _bytestoimage(reparto_izca.keymon.lat.dbrequestmanager __ref,byte[] _bytes) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "bytestoimage", false))
	 {return ((anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper) Debug.delegate(ba, "bytestoimage", new Object[] {_bytes}));}
anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in = null;
anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bmp = null;
RDebugUtils.currentLine=65536000;
 //BA.debugLineNum = 65536000;BA.debugLine="Public Sub BytesToImage(bytes() As Byte) As Bitmap";
RDebugUtils.currentLine=65536001;
 //BA.debugLineNum = 65536001;BA.debugLine="Dim In As InputStream";
_in = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper();
RDebugUtils.currentLine=65536002;
 //BA.debugLineNum = 65536002;BA.debugLine="In.InitializeFromBytesArray(bytes, 0, bytes.Lengt";
_in.InitializeFromBytesArray(_bytes,(int) (0),_bytes.length);
RDebugUtils.currentLine=65536003;
 //BA.debugLineNum = 65536003;BA.debugLine="Dim bmp As Bitmap";
_bmp = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper();
RDebugUtils.currentLine=65536004;
 //BA.debugLineNum = 65536004;BA.debugLine="bmp.Initialize2(In)";
_bmp.Initialize2((java.io.InputStream)(_in.getObject()));
RDebugUtils.currentLine=65536005;
 //BA.debugLineNum = 65536005;BA.debugLine="Return bmp";
if (true) return _bmp;
RDebugUtils.currentLine=65536006;
 //BA.debugLineNum = 65536006;BA.debugLine="End Sub";
return null;
}
public String  _class_globals(reparto_izca.keymon.lat.dbrequestmanager __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
RDebugUtils.currentLine=64487424;
 //BA.debugLineNum = 64487424;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=64487425;
 //BA.debugLineNum = 64487425;BA.debugLine="Private mTarget As Object";
_mtarget = new Object();
RDebugUtils.currentLine=64487426;
 //BA.debugLineNum = 64487426;BA.debugLine="Type DBResult (Tag As Object, Columns As Map, Row";
;
RDebugUtils.currentLine=64487427;
 //BA.debugLineNum = 64487427;BA.debugLine="Type DBCommand (Name As String, Parameters() As O";
;
RDebugUtils.currentLine=64487428;
 //BA.debugLineNum = 64487428;BA.debugLine="Private link As String";
_link = "";
RDebugUtils.currentLine=64487429;
 //BA.debugLineNum = 64487429;BA.debugLine="Private bc As ByteConverter";
_bc = new anywheresoftware.b4a.agraham.byteconverter.ByteConverter();
RDebugUtils.currentLine=64487430;
 //BA.debugLineNum = 64487430;BA.debugLine="Private T_NULL = 0, T_STRING = 1, T_SHORT = 2, T_";
_t_null = (byte) (0);
_t_string = (byte) (1);
_t_short = (byte) (2);
_t_int = (byte) (3);
_t_long = (byte) (4);
_t_float = (byte) (5);
_t_double = (byte) (6);
_t_boolean = (byte) (7);
_t_blob = (byte) (8);
RDebugUtils.currentLine=64487432;
 //BA.debugLineNum = 64487432;BA.debugLine="Private VERSION As Float = 0.9";
_version = (float) (0.9);
RDebugUtils.currentLine=64487433;
 //BA.debugLineNum = 64487433;BA.debugLine="Private tempArray(1) As Object";
_temparray = new Object[(int) (1)];
{
int d0 = _temparray.length;
for (int i0 = 0;i0 < d0;i0++) {
_temparray[i0] = new Object();
}
}
;
RDebugUtils.currentLine=64487434;
 //BA.debugLineNum = 64487434;BA.debugLine="Dim jobTagAnterior As String = \"\" 'Mod por CHV -";
_jobtaganterior = "";
RDebugUtils.currentLine=64487435;
 //BA.debugLineNum = 64487435;BA.debugLine="End Sub";
return "";
}
public String  _executebatch(reparto_izca.keymon.lat.dbrequestmanager __ref,anywheresoftware.b4a.objects.collections.List _listofcommands,Object _tag) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "executebatch", false))
	 {return ((String) Debug.delegate(ba, "executebatch", new Object[] {_listofcommands,_tag}));}
reparto_izca.keymon.lat.httpjob _j = null;
anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _ms = null;
anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out2 = null;
reparto_izca.keymon.lat.dbrequestmanager._dbcommand _command = null;
RDebugUtils.currentLine=64684032;
 //BA.debugLineNum = 64684032;BA.debugLine="Public Sub ExecuteBatch(ListOfCommands As List, Ta";
RDebugUtils.currentLine=64684033;
 //BA.debugLineNum = 64684033;BA.debugLine="Dim j As HttpJob";
_j = new reparto_izca.keymon.lat.httpjob();
RDebugUtils.currentLine=64684034;
 //BA.debugLineNum = 64684034;BA.debugLine="Dim ms As OutputStream";
_ms = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
RDebugUtils.currentLine=64684035;
 //BA.debugLineNum = 64684035;BA.debugLine="Dim out2 As OutputStream = StartJob(j,ms, Tag)";
_out2 = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
_out2 = __ref._startjob /*anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper*/ (null,_j,_ms,_tag);
RDebugUtils.currentLine=64684036;
 //BA.debugLineNum = 64684036;BA.debugLine="WriteInt(ListOfCommands.Size, out2)";
__ref._writeint /*String*/ (null,_listofcommands.getSize(),_out2);
RDebugUtils.currentLine=64684037;
 //BA.debugLineNum = 64684037;BA.debugLine="For Each Command As DBCommand In ListOfCommands";
{
final anywheresoftware.b4a.BA.IterableList group5 = _listofcommands;
final int groupLen5 = group5.getSize()
;int index5 = 0;
;
for (; index5 < groupLen5;index5++){
_command = (reparto_izca.keymon.lat.dbrequestmanager._dbcommand)(group5.Get(index5));
RDebugUtils.currentLine=64684038;
 //BA.debugLineNum = 64684038;BA.debugLine="WriteObject(Command.Name, out2)";
__ref._writeobject /*String*/ (null,(Object)(_command.Name /*String*/ ),_out2);
RDebugUtils.currentLine=64684039;
 //BA.debugLineNum = 64684039;BA.debugLine="WriteList(Command.Parameters, out2)";
__ref._writelist /*String*/ (null,anywheresoftware.b4a.keywords.Common.ArrayToList(_command.Parameters /*Object[]*/ ),_out2);
 }
};
RDebugUtils.currentLine=64684041;
 //BA.debugLineNum = 64684041;BA.debugLine="out2.Close";
_out2.Close();
RDebugUtils.currentLine=64684042;
 //BA.debugLineNum = 64684042;BA.debugLine="j.PostBytes(link & \"?method=batch\", ms.ToBytesArr";
_j._postbytes /*String*/ (null,__ref._link /*String*/ +"?method=batch",_ms.ToBytesArray());
RDebugUtils.currentLine=64684043;
 //BA.debugLineNum = 64684043;BA.debugLine="End Sub";
return "";
}
public anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper  _startjob(reparto_izca.keymon.lat.dbrequestmanager __ref,reparto_izca.keymon.lat.httpjob _j,anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _memorystream,Object _tag) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "startjob", false))
	 {return ((anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper) Debug.delegate(ba, "startjob", new Object[] {_j,_memorystream,_tag}));}
anywheresoftware.b4a.randomaccessfile.CompressedStreams _compress = null;
anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null;
RDebugUtils.currentLine=64815104;
 //BA.debugLineNum = 64815104;BA.debugLine="Private Sub StartJob(j As HttpJob, MemoryStream As";
RDebugUtils.currentLine=64815105;
 //BA.debugLineNum = 64815105;BA.debugLine="j.Initialize(\"DBRequest\", mTarget)";
_j._initialize /*String*/ (null,ba,"DBRequest",__ref._mtarget /*Object*/ );
RDebugUtils.currentLine=64815106;
 //BA.debugLineNum = 64815106;BA.debugLine="j.Tag = Tag";
_j._tag /*Object*/  = _tag;
RDebugUtils.currentLine=64815107;
 //BA.debugLineNum = 64815107;BA.debugLine="MemoryStream.InitializeToBytesArray(0)";
_memorystream.InitializeToBytesArray((int) (0));
RDebugUtils.currentLine=64815108;
 //BA.debugLineNum = 64815108;BA.debugLine="Dim compress As CompressedStreams";
_compress = new anywheresoftware.b4a.randomaccessfile.CompressedStreams();
RDebugUtils.currentLine=64815109;
 //BA.debugLineNum = 64815109;BA.debugLine="Dim out As OutputStream = compress.WrapOutputStre";
_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
_out = _compress.WrapOutputStream((java.io.OutputStream)(_memorystream.getObject()),"gzip");
RDebugUtils.currentLine=64815110;
 //BA.debugLineNum = 64815110;BA.debugLine="WriteObject(VERSION, out)";
__ref._writeobject /*String*/ (null,(Object)(__ref._version /*float*/ ),_out);
RDebugUtils.currentLine=64815111;
 //BA.debugLineNum = 64815111;BA.debugLine="Return out";
if (true) return _out;
RDebugUtils.currentLine=64815112;
 //BA.debugLineNum = 64815112;BA.debugLine="End Sub";
return null;
}
public String  _writeint(reparto_izca.keymon.lat.dbrequestmanager __ref,int _i,anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "writeint", false))
	 {return ((String) Debug.delegate(ba, "writeint", new Object[] {_i,_out}));}
byte[] _data = null;
RDebugUtils.currentLine=65142784;
 //BA.debugLineNum = 65142784;BA.debugLine="Private Sub WriteInt(i As Int, out As OutputStream";
RDebugUtils.currentLine=65142785;
 //BA.debugLineNum = 65142785;BA.debugLine="Dim data() As Byte";
_data = new byte[(int) (0)];
;
RDebugUtils.currentLine=65142786;
 //BA.debugLineNum = 65142786;BA.debugLine="data = bc.IntsToBytes(Array As Int(i))";
_data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .IntsToBytes(new int[]{_i});
RDebugUtils.currentLine=65142787;
 //BA.debugLineNum = 65142787;BA.debugLine="out.WriteBytes(data, 0, data.Length)";
_out.WriteBytes(_data,(int) (0),_data.length);
RDebugUtils.currentLine=65142788;
 //BA.debugLineNum = 65142788;BA.debugLine="End Sub";
return "";
}
public String  _writeobject(reparto_izca.keymon.lat.dbrequestmanager __ref,Object _o,anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "writeobject", false))
	 {return ((String) Debug.delegate(ba, "writeobject", new Object[] {_o,_out}));}
byte[] _data = null;
boolean _b = false;
RDebugUtils.currentLine=64946176;
 //BA.debugLineNum = 64946176;BA.debugLine="Private Sub WriteObject(o As Object, out As Output";
RDebugUtils.currentLine=64946177;
 //BA.debugLineNum = 64946177;BA.debugLine="Dim data() As Byte";
_data = new byte[(int) (0)];
;
RDebugUtils.currentLine=64946178;
 //BA.debugLineNum = 64946178;BA.debugLine="tempArray(0) = o";
__ref._temparray /*Object[]*/ [(int) (0)] = _o;
RDebugUtils.currentLine=64946179;
 //BA.debugLineNum = 64946179;BA.debugLine="If tempArray(0) = Null Then";
if (__ref._temparray /*Object[]*/ [(int) (0)]== null) { 
RDebugUtils.currentLine=64946180;
 //BA.debugLineNum = 64946180;BA.debugLine="out.WriteBytes(Array As Byte(T_NULL), 0, 1)";
_out.WriteBytes(new byte[]{__ref._t_null /*byte*/ },(int) (0),(int) (1));
 }else 
{RDebugUtils.currentLine=64946181;
 //BA.debugLineNum = 64946181;BA.debugLine="Else If tempArray(0) Is Short Then";
if (__ref._temparray /*Object[]*/ [(int) (0)] instanceof Short) { 
RDebugUtils.currentLine=64946182;
 //BA.debugLineNum = 64946182;BA.debugLine="out.WriteBytes(Array As Byte(T_SHORT), 0, 1)";
_out.WriteBytes(new byte[]{__ref._t_short /*byte*/ },(int) (0),(int) (1));
RDebugUtils.currentLine=64946183;
 //BA.debugLineNum = 64946183;BA.debugLine="data = bc.ShortsToBytes(Array As Short(o))";
_data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .ShortsToBytes(new short[]{(short)(BA.ObjectToNumber(_o))});
 }else 
{RDebugUtils.currentLine=64946184;
 //BA.debugLineNum = 64946184;BA.debugLine="Else If tempArray(0) Is Int Then";
if (__ref._temparray /*Object[]*/ [(int) (0)] instanceof Integer) { 
RDebugUtils.currentLine=64946185;
 //BA.debugLineNum = 64946185;BA.debugLine="out.WriteBytes(Array As Byte(T_INT), 0, 1)";
_out.WriteBytes(new byte[]{__ref._t_int /*byte*/ },(int) (0),(int) (1));
RDebugUtils.currentLine=64946186;
 //BA.debugLineNum = 64946186;BA.debugLine="data = bc.IntsToBytes(Array As Int(o))";
_data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .IntsToBytes(new int[]{(int)(BA.ObjectToNumber(_o))});
 }else 
{RDebugUtils.currentLine=64946187;
 //BA.debugLineNum = 64946187;BA.debugLine="Else If tempArray(0) Is Float Then";
if (__ref._temparray /*Object[]*/ [(int) (0)] instanceof Float) { 
RDebugUtils.currentLine=64946188;
 //BA.debugLineNum = 64946188;BA.debugLine="out.WriteBytes(Array As Byte(T_FLOAT), 0, 1)";
_out.WriteBytes(new byte[]{__ref._t_float /*byte*/ },(int) (0),(int) (1));
RDebugUtils.currentLine=64946189;
 //BA.debugLineNum = 64946189;BA.debugLine="data = bc.FloatsToBytes(Array As Float(o))";
_data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .FloatsToBytes(new float[]{(float)(BA.ObjectToNumber(_o))});
 }else 
{RDebugUtils.currentLine=64946190;
 //BA.debugLineNum = 64946190;BA.debugLine="Else If tempArray(0) Is Double Then";
if (__ref._temparray /*Object[]*/ [(int) (0)] instanceof Double) { 
RDebugUtils.currentLine=64946191;
 //BA.debugLineNum = 64946191;BA.debugLine="out.WriteBytes(Array As Byte(T_DOUBLE), 0, 1)";
_out.WriteBytes(new byte[]{__ref._t_double /*byte*/ },(int) (0),(int) (1));
RDebugUtils.currentLine=64946192;
 //BA.debugLineNum = 64946192;BA.debugLine="data = bc.DoublesToBytes(Array As Double(o))";
_data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .DoublesToBytes(new double[]{(double)(BA.ObjectToNumber(_o))});
 }else 
{RDebugUtils.currentLine=64946193;
 //BA.debugLineNum = 64946193;BA.debugLine="Else If tempArray(0) Is Long Then";
if (__ref._temparray /*Object[]*/ [(int) (0)] instanceof Long) { 
RDebugUtils.currentLine=64946194;
 //BA.debugLineNum = 64946194;BA.debugLine="out.WriteBytes(Array As Byte(T_LONG), 0, 1)";
_out.WriteBytes(new byte[]{__ref._t_long /*byte*/ },(int) (0),(int) (1));
RDebugUtils.currentLine=64946195;
 //BA.debugLineNum = 64946195;BA.debugLine="data = bc.LongsToBytes(Array As Long(o))";
_data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .LongsToBytes(new long[]{BA.ObjectToLongNumber(_o)});
 }else 
{RDebugUtils.currentLine=64946196;
 //BA.debugLineNum = 64946196;BA.debugLine="Else If tempArray(0) Is Boolean Then";
if (__ref._temparray /*Object[]*/ [(int) (0)] instanceof Boolean) { 
RDebugUtils.currentLine=64946197;
 //BA.debugLineNum = 64946197;BA.debugLine="out.WriteBytes(Array As Byte(T_BOOLEAN), 0, 1)";
_out.WriteBytes(new byte[]{__ref._t_boolean /*byte*/ },(int) (0),(int) (1));
RDebugUtils.currentLine=64946198;
 //BA.debugLineNum = 64946198;BA.debugLine="Dim b As Boolean = 0";
_b = BA.ObjectToBoolean(0);
RDebugUtils.currentLine=64946199;
 //BA.debugLineNum = 64946199;BA.debugLine="Dim data(1) As Byte";
_data = new byte[(int) (1)];
;
RDebugUtils.currentLine=64946200;
 //BA.debugLineNum = 64946200;BA.debugLine="If b Then data(0) = 1 Else data(0) = 0";
if (_b) { 
_data[(int) (0)] = (byte) (1);}
else {
_data[(int) (0)] = (byte) (0);};
 }else 
{RDebugUtils.currentLine=64946201;
 //BA.debugLineNum = 64946201;BA.debugLine="Else If GetType(tempArray(0)) = \"[B\" Then";
if ((__c.GetType(__ref._temparray /*Object[]*/ [(int) (0)])).equals("[B")) { 
RDebugUtils.currentLine=64946202;
 //BA.debugLineNum = 64946202;BA.debugLine="data = o";
_data = (byte[])(_o);
RDebugUtils.currentLine=64946203;
 //BA.debugLineNum = 64946203;BA.debugLine="out.WriteBytes(Array As Byte(T_BLOB), 0, 1)";
_out.WriteBytes(new byte[]{__ref._t_blob /*byte*/ },(int) (0),(int) (1));
RDebugUtils.currentLine=64946204;
 //BA.debugLineNum = 64946204;BA.debugLine="WriteInt(data.Length, out)";
__ref._writeint /*String*/ (null,_data.length,_out);
 }else {
RDebugUtils.currentLine=64946206;
 //BA.debugLineNum = 64946206;BA.debugLine="out.WriteBytes(Array As Byte(T_STRING), 0, 1)";
_out.WriteBytes(new byte[]{__ref._t_string /*byte*/ },(int) (0),(int) (1));
RDebugUtils.currentLine=64946207;
 //BA.debugLineNum = 64946207;BA.debugLine="data = bc.StringToBytes(o, \"UTF8\")";
_data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .StringToBytes(BA.ObjectToString(_o),"UTF8");
RDebugUtils.currentLine=64946208;
 //BA.debugLineNum = 64946208;BA.debugLine="WriteInt(data.Length, out)";
__ref._writeint /*String*/ (null,_data.length,_out);
 }}}}}}}}
;
RDebugUtils.currentLine=64946210;
 //BA.debugLineNum = 64946210;BA.debugLine="If data.Length > 0 Then out.WriteBytes(data, 0, d";
if (_data.length>0) { 
_out.WriteBytes(_data,(int) (0),_data.length);};
RDebugUtils.currentLine=64946211;
 //BA.debugLineNum = 64946211;BA.debugLine="End Sub";
return "";
}
public String  _writelist(reparto_izca.keymon.lat.dbrequestmanager __ref,anywheresoftware.b4a.objects.collections.List _parameters,anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "writelist", false))
	 {return ((String) Debug.delegate(ba, "writelist", new Object[] {_parameters,_out}));}
byte[] _data = null;
Object _o = null;
RDebugUtils.currentLine=64880640;
 //BA.debugLineNum = 64880640;BA.debugLine="Private Sub WriteList(Parameters As List, out As O";
RDebugUtils.currentLine=64880641;
 //BA.debugLineNum = 64880641;BA.debugLine="Dim data() As Byte";
_data = new byte[(int) (0)];
;
RDebugUtils.currentLine=64880642;
 //BA.debugLineNum = 64880642;BA.debugLine="If Parameters = Null Or Parameters.IsInitialized";
if (_parameters== null || _parameters.IsInitialized()==__c.False) { 
RDebugUtils.currentLine=64880643;
 //BA.debugLineNum = 64880643;BA.debugLine="Dim Parameters As List";
_parameters = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=64880644;
 //BA.debugLineNum = 64880644;BA.debugLine="Parameters.Initialize";
_parameters.Initialize();
 };
RDebugUtils.currentLine=64880646;
 //BA.debugLineNum = 64880646;BA.debugLine="data = bc.IntsToBytes(Array As Int(Parameters.Siz";
_data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .IntsToBytes(new int[]{_parameters.getSize()});
RDebugUtils.currentLine=64880647;
 //BA.debugLineNum = 64880647;BA.debugLine="out.WriteBytes(data, 0, data.Length)";
_out.WriteBytes(_data,(int) (0),_data.length);
RDebugUtils.currentLine=64880648;
 //BA.debugLineNum = 64880648;BA.debugLine="For Each o As Object In Parameters";
{
final anywheresoftware.b4a.BA.IterableList group8 = _parameters;
final int groupLen8 = group8.getSize()
;int index8 = 0;
;
for (; index8 < groupLen8;index8++){
_o = group8.Get(index8);
RDebugUtils.currentLine=64880649;
 //BA.debugLineNum = 64880649;BA.debugLine="WriteObject(o, out)";
__ref._writeobject /*String*/ (null,_o,_out);
 }
};
RDebugUtils.currentLine=64880651;
 //BA.debugLineNum = 64880651;BA.debugLine="End Sub";
return "";
}
public byte[]  _filetobytes(reparto_izca.keymon.lat.dbrequestmanager __ref,String _dir,String _filename) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "filetobytes", false))
	 {return ((byte[]) Debug.delegate(ba, "filetobytes", new Object[] {_dir,_filename}));}
anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null;
anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in = null;
RDebugUtils.currentLine=65404928;
 //BA.debugLineNum = 65404928;BA.debugLine="Public Sub FileToBytes(Dir As String, FileName As";
RDebugUtils.currentLine=65404929;
 //BA.debugLineNum = 65404929;BA.debugLine="Dim out As OutputStream";
_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
RDebugUtils.currentLine=65404930;
 //BA.debugLineNum = 65404930;BA.debugLine="out.InitializeToBytesArray(0)";
_out.InitializeToBytesArray((int) (0));
RDebugUtils.currentLine=65404931;
 //BA.debugLineNum = 65404931;BA.debugLine="Dim In As InputStream = File.OpenInput(Dir, FileN";
_in = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper();
_in = __c.File.OpenInput(_dir,_filename);
RDebugUtils.currentLine=65404932;
 //BA.debugLineNum = 65404932;BA.debugLine="File.Copy2(In, out)";
__c.File.Copy2((java.io.InputStream)(_in.getObject()),(java.io.OutputStream)(_out.getObject()));
RDebugUtils.currentLine=65404933;
 //BA.debugLineNum = 65404933;BA.debugLine="out.Close";
_out.Close();
RDebugUtils.currentLine=65404934;
 //BA.debugLineNum = 65404934;BA.debugLine="Return out.ToBytesArray";
if (true) return _out.ToBytesArray();
RDebugUtils.currentLine=65404935;
 //BA.debugLineNum = 65404935;BA.debugLine="End Sub";
return null;
}
public Object  _readobject(reparto_izca.keymon.lat.dbrequestmanager __ref,anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "readobject", false))
	 {return ((Object) Debug.delegate(ba, "readobject", new Object[] {_in}));}
byte[] _data = null;
byte _b = (byte)0;
int _len = 0;
RDebugUtils.currentLine=65011712;
 //BA.debugLineNum = 65011712;BA.debugLine="Private Sub ReadObject(In As InputStream) As Objec";
RDebugUtils.currentLine=65011713;
 //BA.debugLineNum = 65011713;BA.debugLine="Dim data(1) As Byte";
_data = new byte[(int) (1)];
;
RDebugUtils.currentLine=65011714;
 //BA.debugLineNum = 65011714;BA.debugLine="In.ReadBytes(data, 0, 1)";
_in.ReadBytes(_data,(int) (0),(int) (1));
RDebugUtils.currentLine=65011715;
 //BA.debugLineNum = 65011715;BA.debugLine="Select data(0)";
switch (BA.switchObjectToInt(_data[(int) (0)],__ref._t_null /*byte*/ ,__ref._t_short /*byte*/ ,__ref._t_int /*byte*/ ,__ref._t_long /*byte*/ ,__ref._t_float /*byte*/ ,__ref._t_double /*byte*/ ,__ref._t_boolean /*byte*/ ,__ref._t_blob /*byte*/ )) {
case 0: {
RDebugUtils.currentLine=65011717;
 //BA.debugLineNum = 65011717;BA.debugLine="Return Null";
if (true) return __c.Null;
 break; }
case 1: {
RDebugUtils.currentLine=65011719;
 //BA.debugLineNum = 65011719;BA.debugLine="Dim data(2) As Byte";
_data = new byte[(int) (2)];
;
RDebugUtils.currentLine=65011720;
 //BA.debugLineNum = 65011720;BA.debugLine="Return bc.ShortsFromBytes(ReadBytesFully(In, da";
if (true) return (Object)(__ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .ShortsFromBytes(__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length))[(int) (0)]);
 break; }
case 2: {
RDebugUtils.currentLine=65011722;
 //BA.debugLineNum = 65011722;BA.debugLine="Dim data(4) As Byte";
_data = new byte[(int) (4)];
;
RDebugUtils.currentLine=65011723;
 //BA.debugLineNum = 65011723;BA.debugLine="Return bc.IntsFromBytes(ReadBytesFully(In, data";
if (true) return (Object)(__ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .IntsFromBytes(__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length))[(int) (0)]);
 break; }
case 3: {
RDebugUtils.currentLine=65011725;
 //BA.debugLineNum = 65011725;BA.debugLine="Dim data(8) As Byte";
_data = new byte[(int) (8)];
;
RDebugUtils.currentLine=65011726;
 //BA.debugLineNum = 65011726;BA.debugLine="Return bc.LongsFromBytes(ReadBytesFully(In, dat";
if (true) return (Object)(__ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .LongsFromBytes(__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length))[(int) (0)]);
 break; }
case 4: {
RDebugUtils.currentLine=65011728;
 //BA.debugLineNum = 65011728;BA.debugLine="Dim data(4) As Byte";
_data = new byte[(int) (4)];
;
RDebugUtils.currentLine=65011729;
 //BA.debugLineNum = 65011729;BA.debugLine="Return bc.FloatsFromBytes(ReadBytesFully(In, da";
if (true) return (Object)(__ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .FloatsFromBytes(__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length))[(int) (0)]);
 break; }
case 5: {
RDebugUtils.currentLine=65011731;
 //BA.debugLineNum = 65011731;BA.debugLine="Dim data(8) As Byte";
_data = new byte[(int) (8)];
;
RDebugUtils.currentLine=65011732;
 //BA.debugLineNum = 65011732;BA.debugLine="Return bc.DoublesFromBytes(ReadBytesFully(In, d";
if (true) return (Object)(__ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .DoublesFromBytes(__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length))[(int) (0)]);
 break; }
case 6: {
RDebugUtils.currentLine=65011734;
 //BA.debugLineNum = 65011734;BA.debugLine="Dim b As Byte = ReadByte(In)";
_b = __ref._readbyte /*byte*/ (null,_in);
RDebugUtils.currentLine=65011735;
 //BA.debugLineNum = 65011735;BA.debugLine="Return b = 1";
if (true) return (Object)(_b==1);
 break; }
case 7: {
RDebugUtils.currentLine=65011737;
 //BA.debugLineNum = 65011737;BA.debugLine="Dim len As Int = ReadInt(In)";
_len = __ref._readint /*int*/ (null,_in);
RDebugUtils.currentLine=65011738;
 //BA.debugLineNum = 65011738;BA.debugLine="Dim data(len) As Byte";
_data = new byte[_len];
;
RDebugUtils.currentLine=65011739;
 //BA.debugLineNum = 65011739;BA.debugLine="Return ReadBytesFully(In, data, data.Length)";
if (true) return (Object)(__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length));
 break; }
default: {
RDebugUtils.currentLine=65011741;
 //BA.debugLineNum = 65011741;BA.debugLine="Dim len As Int = ReadInt(In)";
_len = __ref._readint /*int*/ (null,_in);
RDebugUtils.currentLine=65011742;
 //BA.debugLineNum = 65011742;BA.debugLine="Dim data(len) As Byte";
_data = new byte[_len];
;
RDebugUtils.currentLine=65011743;
 //BA.debugLineNum = 65011743;BA.debugLine="ReadBytesFully(In, data, data.Length)";
__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length);
RDebugUtils.currentLine=65011744;
 //BA.debugLineNum = 65011744;BA.debugLine="Return BytesToString(data, 0, data.Length, \"UTF";
if (true) return (Object)(__c.BytesToString(_data,(int) (0),_data.length,"UTF8"));
 break; }
}
;
RDebugUtils.currentLine=65011746;
 //BA.debugLineNum = 65011746;BA.debugLine="End Sub";
return null;
}
public int  _readint(reparto_izca.keymon.lat.dbrequestmanager __ref,anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "readint", false))
	 {return ((Integer) Debug.delegate(ba, "readint", new Object[] {_in}));}
byte[] _data = null;
RDebugUtils.currentLine=65208320;
 //BA.debugLineNum = 65208320;BA.debugLine="Private Sub ReadInt(In As InputStream) As Int";
RDebugUtils.currentLine=65208321;
 //BA.debugLineNum = 65208321;BA.debugLine="Dim data(4) As Byte";
_data = new byte[(int) (4)];
;
RDebugUtils.currentLine=65208322;
 //BA.debugLineNum = 65208322;BA.debugLine="Return bc.IntsFromBytes(ReadBytesFully(In, data,";
if (true) return __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .IntsFromBytes(__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length))[(int) (0)];
RDebugUtils.currentLine=65208323;
 //BA.debugLineNum = 65208323;BA.debugLine="End Sub";
return 0;
}
public byte  _readbyte(reparto_izca.keymon.lat.dbrequestmanager __ref,anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "readbyte", false))
	 {return ((Byte) Debug.delegate(ba, "readbyte", new Object[] {_in}));}
byte[] _data = null;
RDebugUtils.currentLine=65273856;
 //BA.debugLineNum = 65273856;BA.debugLine="Private Sub ReadByte(In As InputStream) As Byte";
RDebugUtils.currentLine=65273857;
 //BA.debugLineNum = 65273857;BA.debugLine="Dim data(1) As Byte";
_data = new byte[(int) (1)];
;
RDebugUtils.currentLine=65273858;
 //BA.debugLineNum = 65273858;BA.debugLine="In.ReadBytes(data, 0, 1)";
_in.ReadBytes(_data,(int) (0),(int) (1));
RDebugUtils.currentLine=65273859;
 //BA.debugLineNum = 65273859;BA.debugLine="Return data(0)";
if (true) return _data[(int) (0)];
RDebugUtils.currentLine=65273860;
 //BA.debugLineNum = 65273860;BA.debugLine="End Sub";
return (byte)0;
}
public byte[]  _imagetobytes(reparto_izca.keymon.lat.dbrequestmanager __ref,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _image) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "imagetobytes", false))
	 {return ((byte[]) Debug.delegate(ba, "imagetobytes", new Object[] {_image}));}
anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null;
RDebugUtils.currentLine=65470464;
 //BA.debugLineNum = 65470464;BA.debugLine="Public Sub ImageToBytes(Image As Bitmap) As Byte()";
RDebugUtils.currentLine=65470465;
 //BA.debugLineNum = 65470465;BA.debugLine="Dim out As OutputStream";
_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper();
RDebugUtils.currentLine=65470466;
 //BA.debugLineNum = 65470466;BA.debugLine="out.InitializeToBytesArray(0)";
_out.InitializeToBytesArray((int) (0));
RDebugUtils.currentLine=65470467;
 //BA.debugLineNum = 65470467;BA.debugLine="Image.WriteToStream(out, 100, \"JPEG\")";
_image.WriteToStream((java.io.OutputStream)(_out.getObject()),(int) (100),BA.getEnumFromString(android.graphics.Bitmap.CompressFormat.class,"JPEG"));
RDebugUtils.currentLine=65470468;
 //BA.debugLineNum = 65470468;BA.debugLine="out.Close";
_out.Close();
RDebugUtils.currentLine=65470469;
 //BA.debugLineNum = 65470469;BA.debugLine="Return out.ToBytesArray";
if (true) return _out.ToBytesArray();
RDebugUtils.currentLine=65470470;
 //BA.debugLineNum = 65470470;BA.debugLine="End Sub";
return null;
}
public String  _printtable(reparto_izca.keymon.lat.dbrequestmanager __ref,reparto_izca.keymon.lat.dbrequestmanager._dbresult _table) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "printtable", false))
	 {return ((String) Debug.delegate(ba, "printtable", new Object[] {_table}));}
anywheresoftware.b4a.keywords.StringBuilderWrapper _sb = null;
Object _col = null;
Object[] _row = null;
Object _record = null;
RDebugUtils.currentLine=65601536;
 //BA.debugLineNum = 65601536;BA.debugLine="Public Sub PrintTable(Table As DBResult)";
RDebugUtils.currentLine=65601537;
 //BA.debugLineNum = 65601537;BA.debugLine="Log(\"Tag: \" & Table.Tag & \", Columns: \" & Table.C";
__c.LogImpl("865601537","Tag: "+BA.ObjectToString(_table.Tag /*Object*/ )+", Columns: "+BA.NumberToString(_table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .getSize())+", Rows: "+BA.NumberToString(_table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0);
RDebugUtils.currentLine=65601538;
 //BA.debugLineNum = 65601538;BA.debugLine="Dim sb As StringBuilder";
_sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper();
RDebugUtils.currentLine=65601539;
 //BA.debugLineNum = 65601539;BA.debugLine="sb.Initialize";
_sb.Initialize();
RDebugUtils.currentLine=65601540;
 //BA.debugLineNum = 65601540;BA.debugLine="For Each col In Table.Columns.Keys";
{
final anywheresoftware.b4a.BA.IterableList group4 = _table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys();
final int groupLen4 = group4.getSize()
;int index4 = 0;
;
for (; index4 < groupLen4;index4++){
_col = group4.Get(index4);
RDebugUtils.currentLine=65601541;
 //BA.debugLineNum = 65601541;BA.debugLine="sb.Append(col).Append(TAB)";
_sb.Append(BA.ObjectToString(_col)).Append(__c.TAB);
 }
};
RDebugUtils.currentLine=65601543;
 //BA.debugLineNum = 65601543;BA.debugLine="Log(sb.ToString)";
__c.LogImpl("865601543",_sb.ToString(),0);
RDebugUtils.currentLine=65601544;
 //BA.debugLineNum = 65601544;BA.debugLine="For Each row() As Object In Table.Rows";
{
final anywheresoftware.b4a.BA.IterableList group8 = _table.Rows /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen8 = group8.getSize()
;int index8 = 0;
;
for (; index8 < groupLen8;index8++){
_row = (Object[])(group8.Get(index8));
RDebugUtils.currentLine=65601545;
 //BA.debugLineNum = 65601545;BA.debugLine="Dim sb As StringBuilder";
_sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper();
RDebugUtils.currentLine=65601546;
 //BA.debugLineNum = 65601546;BA.debugLine="sb.Initialize";
_sb.Initialize();
RDebugUtils.currentLine=65601547;
 //BA.debugLineNum = 65601547;BA.debugLine="For Each record As Object In row";
{
final Object[] group11 = _row;
final int groupLen11 = group11.length
;int index11 = 0;
;
for (; index11 < groupLen11;index11++){
_record = group11[index11];
RDebugUtils.currentLine=65601548;
 //BA.debugLineNum = 65601548;BA.debugLine="sb.Append(record).Append(TAB)";
_sb.Append(BA.ObjectToString(_record)).Append(__c.TAB);
 }
};
RDebugUtils.currentLine=65601550;
 //BA.debugLineNum = 65601550;BA.debugLine="ToastMessageShow(sb.ToString, True)";
__c.ToastMessageShow(BA.ObjectToCharSequence(_sb.ToString()),__c.True);
 }
};
RDebugUtils.currentLine=65601552;
 //BA.debugLineNum = 65601552;BA.debugLine="End Sub";
return "";
}
public byte[]  _readbytesfully(reparto_izca.keymon.lat.dbrequestmanager __ref,anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in,byte[] _data,int _len) throws Exception{
__ref = this;
RDebugUtils.currentModule="dbrequestmanager";
if (Debug.shouldDelegate(ba, "readbytesfully", false))
	 {return ((byte[]) Debug.delegate(ba, "readbytesfully", new Object[] {_in,_data,_len}));}
int _count = 0;
int _read = 0;
RDebugUtils.currentLine=65077248;
 //BA.debugLineNum = 65077248;BA.debugLine="Private Sub ReadBytesFully(In As InputStream, Data";
RDebugUtils.currentLine=65077249;
 //BA.debugLineNum = 65077249;BA.debugLine="Dim count = 0, read As Int";
_count = (int) (0);
_read = 0;
RDebugUtils.currentLine=65077250;
 //BA.debugLineNum = 65077250;BA.debugLine="Do While count < Len And read > -1";
while (_count<_len && _read>-1) {
RDebugUtils.currentLine=65077251;
 //BA.debugLineNum = 65077251;BA.debugLine="read = In.ReadBytes(Data, count, Len - count)";
_read = _in.ReadBytes(_data,_count,(int) (_len-_count));
RDebugUtils.currentLine=65077252;
 //BA.debugLineNum = 65077252;BA.debugLine="count = count + read";
_count = (int) (_count+_read);
 }
;
RDebugUtils.currentLine=65077254;
 //BA.debugLineNum = 65077254;BA.debugLine="Return Data";
if (true) return _data;
RDebugUtils.currentLine=65077255;
 //BA.debugLineNum = 65077255;BA.debugLine="End Sub";
return null;
}
}