SF1570270 Proxy unhook detatched threads.
SF1538011 toString() not compliant, large ripple into toXXX() methods SF1478172 Variant jni methods public without protection. Now JNI methods behind java methods
This commit is contained in:
@@ -23,7 +23,8 @@ import com.jacob.com.*;
|
||||
import com.jacob.activeX.*;
|
||||
|
||||
/**
|
||||
* this
|
||||
* May need to run with some command line options. If so, then try these
|
||||
* -Djava.library.path=d:/jacob/release -Dcom.jacob.autogc=false -Dcom.jacob.debug=true -Xcheck:jni
|
||||
* @author joe
|
||||
*
|
||||
*/
|
||||
@@ -124,7 +125,7 @@ class Access
|
||||
public static String[] getColumns(Dispatch recset)
|
||||
{
|
||||
Dispatch flds = Dispatch.get(recset, "Fields").toDispatch();
|
||||
int n_flds = Dispatch.get(flds, "Count").toInt();
|
||||
int n_flds = Dispatch.get(flds, "Count").getInt();
|
||||
String[] s = new String[n_flds];
|
||||
Variant vi = new Variant();
|
||||
for (int i=0;i<n_flds;i++) {
|
||||
|
||||
@@ -48,7 +48,7 @@ public class Command extends Dispatch
|
||||
|
||||
public int getCommandTimeout()
|
||||
{
|
||||
return Dispatch.get(this, "CommandTimeout").toInt();
|
||||
return Dispatch.get(this, "CommandTimeout").getInt();
|
||||
}
|
||||
|
||||
public void setCommandTimeout(int plTimeout)
|
||||
@@ -58,7 +58,7 @@ public class Command extends Dispatch
|
||||
|
||||
public boolean getPrepared()
|
||||
{
|
||||
return Dispatch.get(this, "Prepared").toBoolean();
|
||||
return Dispatch.get(this, "Prepared").getBoolean();
|
||||
}
|
||||
|
||||
public void setPrepared(boolean pfPrepared)
|
||||
@@ -95,7 +95,7 @@ public class Command extends Dispatch
|
||||
|
||||
public int getCommandType()
|
||||
{
|
||||
return Dispatch.get(this, "CommandType").toInt();
|
||||
return Dispatch.get(this, "CommandType").getInt();
|
||||
}
|
||||
|
||||
public String getName()
|
||||
@@ -110,7 +110,7 @@ public class Command extends Dispatch
|
||||
|
||||
public int getState()
|
||||
{
|
||||
return Dispatch.get(this, "State").toInt();
|
||||
return Dispatch.get(this, "State").getInt();
|
||||
}
|
||||
|
||||
public void Cancel()
|
||||
|
||||
@@ -38,7 +38,7 @@ public class Connection extends Dispatch
|
||||
|
||||
public int getCommandTimeout()
|
||||
{
|
||||
return Dispatch.get(this, "CommandTimeout").toInt();
|
||||
return Dispatch.get(this, "CommandTimeout").getInt();
|
||||
}
|
||||
|
||||
public void setCommandTimeout(int plTimeout)
|
||||
@@ -48,7 +48,7 @@ public class Connection extends Dispatch
|
||||
|
||||
public int getConnectionTimeout()
|
||||
{
|
||||
return Dispatch.get(this, "ConnectionTimeout").toInt();
|
||||
return Dispatch.get(this, "ConnectionTimeout").getInt();
|
||||
}
|
||||
|
||||
public void setConnectionTimeout(int plTimeout)
|
||||
@@ -74,7 +74,7 @@ public class Connection extends Dispatch
|
||||
|
||||
public int BeginTrans()
|
||||
{
|
||||
return Dispatch.call(this, "BeginTrans").toInt();
|
||||
return Dispatch.call(this, "BeginTrans").getInt();
|
||||
}
|
||||
|
||||
public void CommitTrans()
|
||||
@@ -114,7 +114,7 @@ public class Connection extends Dispatch
|
||||
|
||||
public int getIsolationLevel()
|
||||
{
|
||||
return Dispatch.get(this, "IsolationLevel").toInt();
|
||||
return Dispatch.get(this, "IsolationLevel").getInt();
|
||||
}
|
||||
|
||||
public void setIsolationLevel(int Level)
|
||||
@@ -124,7 +124,7 @@ public class Connection extends Dispatch
|
||||
|
||||
public int getAttributes()
|
||||
{
|
||||
return Dispatch.get(this, "Attributes").toInt();
|
||||
return Dispatch.get(this, "Attributes").getInt();
|
||||
}
|
||||
|
||||
public void setAttributes(int plAttr)
|
||||
@@ -134,7 +134,7 @@ public class Connection extends Dispatch
|
||||
|
||||
public int getCursorLocation()
|
||||
{
|
||||
return Dispatch.get(this, "CursorLocation").toInt();
|
||||
return Dispatch.get(this, "CursorLocation").getInt();
|
||||
}
|
||||
|
||||
public void setCursorLocation(int plCursorLoc)
|
||||
@@ -144,7 +144,7 @@ public class Connection extends Dispatch
|
||||
|
||||
public int getMode()
|
||||
{
|
||||
return Dispatch.get(this, "Mode").toInt();
|
||||
return Dispatch.get(this, "Mode").getInt();
|
||||
}
|
||||
|
||||
public void setMode(int plMode)
|
||||
@@ -164,7 +164,7 @@ public class Connection extends Dispatch
|
||||
|
||||
public int getState()
|
||||
{
|
||||
return Dispatch.get(this, "State").toInt();
|
||||
return Dispatch.get(this, "State").getInt();
|
||||
}
|
||||
|
||||
public Variant OpenSchema(int Schema, Variant Restrictions, Variant SchemaID)
|
||||
|
||||
@@ -21,17 +21,17 @@ public class Field extends Dispatch
|
||||
|
||||
public int getActualSize()
|
||||
{
|
||||
return Dispatch.get(this, "ActualSize").toInt();
|
||||
return Dispatch.get(this, "ActualSize").getInt();
|
||||
}
|
||||
|
||||
public int getAttributes()
|
||||
{
|
||||
return Dispatch.get(this, "Attributes").toInt();
|
||||
return Dispatch.get(this, "Attributes").getInt();
|
||||
}
|
||||
|
||||
public int getDefinedSize()
|
||||
{
|
||||
return Dispatch.get(this, "DefinedSize").toInt();
|
||||
return Dispatch.get(this, "DefinedSize").getInt();
|
||||
}
|
||||
|
||||
public String getName()
|
||||
@@ -41,7 +41,7 @@ public class Field extends Dispatch
|
||||
|
||||
public int getType()
|
||||
{
|
||||
return Dispatch.get(this, "Type").toInt();
|
||||
return Dispatch.get(this, "Type").getInt();
|
||||
}
|
||||
|
||||
public Variant getValue()
|
||||
@@ -56,12 +56,12 @@ public class Field extends Dispatch
|
||||
|
||||
public byte getPrecision()
|
||||
{
|
||||
return Dispatch.get(this, "Precision").toByte();
|
||||
return Dispatch.get(this, "Precision").getByte();
|
||||
}
|
||||
|
||||
public byte getNumericScale()
|
||||
{
|
||||
return Dispatch.get(this, "NumericScale").toByte();
|
||||
return Dispatch.get(this, "NumericScale").getByte();
|
||||
}
|
||||
|
||||
public void AppendChunk(Variant Data)
|
||||
|
||||
@@ -16,7 +16,7 @@ public class Fields extends Dispatch
|
||||
|
||||
public int getCount()
|
||||
{
|
||||
return Dispatch.get(this, "Count").toInt();
|
||||
return Dispatch.get(this, "Count").getInt();
|
||||
}
|
||||
|
||||
public Variant _NewEnum()
|
||||
|
||||
@@ -26,7 +26,7 @@ public class Recordset extends Dispatch
|
||||
|
||||
public int getAbsolutePosition()
|
||||
{
|
||||
return Dispatch.get(this, "AbsolutePosition").toInt();
|
||||
return Dispatch.get(this, "AbsolutePosition").getInt();
|
||||
}
|
||||
|
||||
public void setAbsolutePosition(int pl)
|
||||
@@ -51,7 +51,7 @@ public class Recordset extends Dispatch
|
||||
|
||||
public boolean getBOF()
|
||||
{
|
||||
return Dispatch.get(this, "BOF").toBoolean();
|
||||
return Dispatch.get(this, "BOF").getBoolean();
|
||||
}
|
||||
|
||||
public Variant getBookmark()
|
||||
@@ -66,7 +66,7 @@ public class Recordset extends Dispatch
|
||||
|
||||
public int getCacheSize()
|
||||
{
|
||||
return Dispatch.get(this, "CacheSize").toInt();
|
||||
return Dispatch.get(this, "CacheSize").getInt();
|
||||
}
|
||||
|
||||
public void setCacheSize(int pl)
|
||||
@@ -76,7 +76,7 @@ public class Recordset extends Dispatch
|
||||
|
||||
public int getCursorType()
|
||||
{
|
||||
return Dispatch.get(this, "CursorType").toInt();
|
||||
return Dispatch.get(this, "CursorType").getInt();
|
||||
}
|
||||
|
||||
public void setCursorType(int pl)
|
||||
@@ -86,7 +86,7 @@ public class Recordset extends Dispatch
|
||||
|
||||
public boolean getEOF()
|
||||
{
|
||||
return Dispatch.get(this, "EOF").toBoolean();
|
||||
return Dispatch.get(this, "EOF").getBoolean();
|
||||
}
|
||||
|
||||
public Fields getFields()
|
||||
@@ -96,7 +96,7 @@ public class Recordset extends Dispatch
|
||||
|
||||
public int getLockType()
|
||||
{
|
||||
return Dispatch.get(this, "LockType").toInt();
|
||||
return Dispatch.get(this, "LockType").getInt();
|
||||
}
|
||||
|
||||
public void setLockType(int plLockType)
|
||||
@@ -106,7 +106,7 @@ public class Recordset extends Dispatch
|
||||
|
||||
public int getMaxRecords()
|
||||
{
|
||||
return Dispatch.get(this, "MaxRecords").toInt();
|
||||
return Dispatch.get(this, "MaxRecords").getInt();
|
||||
}
|
||||
|
||||
public void setMaxRecords(int pl)
|
||||
@@ -116,7 +116,7 @@ public class Recordset extends Dispatch
|
||||
|
||||
public int getRecordCount()
|
||||
{
|
||||
return Dispatch.get(this, "RecordCount").toInt();
|
||||
return Dispatch.get(this, "RecordCount").getInt();
|
||||
}
|
||||
|
||||
public void setSource(Object pvSource)
|
||||
@@ -212,7 +212,7 @@ public class Recordset extends Dispatch
|
||||
|
||||
public int getAbsolutePage()
|
||||
{
|
||||
return Dispatch.get(this, "AbsolutePage").toInt();
|
||||
return Dispatch.get(this, "AbsolutePage").getInt();
|
||||
}
|
||||
|
||||
public void setAbsolutePage(int pl)
|
||||
@@ -222,7 +222,7 @@ public class Recordset extends Dispatch
|
||||
|
||||
public int getEditMode()
|
||||
{
|
||||
return Dispatch.get(this, "EditMode").toInt();
|
||||
return Dispatch.get(this, "EditMode").getInt();
|
||||
}
|
||||
|
||||
public Variant getFilter()
|
||||
@@ -237,12 +237,12 @@ public class Recordset extends Dispatch
|
||||
|
||||
public int getPageCount()
|
||||
{
|
||||
return Dispatch.get(this, "PageCount").toInt();
|
||||
return Dispatch.get(this, "PageCount").getInt();
|
||||
}
|
||||
|
||||
public int getPageSize()
|
||||
{
|
||||
return Dispatch.get(this, "PageSize").toInt();
|
||||
return Dispatch.get(this, "PageSize").getInt();
|
||||
}
|
||||
|
||||
public void setPageSize(int pl)
|
||||
@@ -262,12 +262,12 @@ public class Recordset extends Dispatch
|
||||
|
||||
public int getStatus()
|
||||
{
|
||||
return Dispatch.get(this, "Status").toInt();
|
||||
return Dispatch.get(this, "Status").getInt();
|
||||
}
|
||||
|
||||
public int getState()
|
||||
{
|
||||
return Dispatch.get(this, "State").toInt();
|
||||
return Dispatch.get(this, "State").getInt();
|
||||
}
|
||||
|
||||
public void UpdateBatch(int AffectRecords)
|
||||
@@ -282,7 +282,7 @@ public class Recordset extends Dispatch
|
||||
|
||||
public int getCursorLocation()
|
||||
{
|
||||
return Dispatch.get(this, "CursorLocation").toInt();
|
||||
return Dispatch.get(this, "CursorLocation").getInt();
|
||||
}
|
||||
|
||||
public void setCursorLocation(int pl)
|
||||
@@ -297,7 +297,7 @@ public class Recordset extends Dispatch
|
||||
|
||||
public boolean Supports(int CursorOptions)
|
||||
{
|
||||
return Dispatch.call(this, "Supports", new Variant(CursorOptions)).toBoolean();
|
||||
return Dispatch.call(this, "Supports", new Variant(CursorOptions)).getBoolean();
|
||||
}
|
||||
|
||||
public Variant getCollect(Variant Index)
|
||||
@@ -312,7 +312,7 @@ public class Recordset extends Dispatch
|
||||
|
||||
public int getMarshalOptions()
|
||||
{
|
||||
return Dispatch.get(this, "MarshalOptions").toInt();
|
||||
return Dispatch.get(this, "MarshalOptions").getInt();
|
||||
}
|
||||
|
||||
public void setMarshalOptions(int pl)
|
||||
@@ -357,7 +357,7 @@ public class Recordset extends Dispatch
|
||||
|
||||
public boolean getStayInSync()
|
||||
{
|
||||
return Dispatch.get(this, "StayInSync").toBoolean();
|
||||
return Dispatch.get(this, "StayInSync").getBoolean();
|
||||
}
|
||||
|
||||
public String GetString(int StringFormat, int NumRows, String ColumnDelimeter, String RowDelimeter, String NullExpr)
|
||||
@@ -378,7 +378,7 @@ public class Recordset extends Dispatch
|
||||
|
||||
public int CompareBookmarks(Variant Bookmark1, Variant Bookmark2)
|
||||
{
|
||||
return Dispatch.call(this, "CompareBookmarks", Bookmark1, Bookmark2).toInt();
|
||||
return Dispatch.call(this, "CompareBookmarks", Bookmark1, Bookmark2).getInt();
|
||||
}
|
||||
|
||||
public Recordset Clone(int LockType)
|
||||
|
||||
Reference in New Issue
Block a user