%Net.Remote.Java.Test
abstract class %Net.Remote.Java.Test extends %Library.RegisteredObject
Method Inventory (Including Private)
Methods (Including Private)
classmethod Connect(port As %Integer, host As %String) as %Net.Remote.Gateway [ Language = objectscript ]
final classmethod JDBC(port As %Integer, host As %String = "127.0.0.1", jdbcPort As %Integer = 1972, jdbcHost As %String = "127.0.0.1") [ Language = objectscript ]
This example establishes a connection with the InterSystems JDBC driver, then executes
some standard JDBC code. This code should work against any database that
has a JDBC driver. Simply change the connection parameters (driver class name,
url, username and password)
To run the example, start the Java Gateway Super Server, then from your
production-enabled namespace type in Do ##class(%Net.Remote.Java.Test).JDBC(port,host,jdbcPort,jdbcHost)
final classmethod ProcessError(status As %Status) [ Language = objectscript ]
This shows how to use the sample classes delivered with InterSystems IRIS (under /dev/java/samples).
To run the example, start the Java Gateway Super Server, then from your
production-enabled namespace type in Do ##class(%Net.Remote.Java.Test).Test(port,host)
final classmethod TestArrays(port As %Integer, host As %String = "127.0.0.1") [ Language = objectscript ]
This shows how to use arrays. The test uses sample classes delivered with InterSystems IRIS (under /dev/java/samples).
To run the example, start the Java Gateway Super Server, then from your
production-enabled namespace type in Do ##class(%Net.Remote.Java.Test).TestArrays(port,host)
Inherited Members
Inherited Methods (Including Private)
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %ConstructCloneInit()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OnAddToSaveSet()
- %OnClose()
- %OnConstructClone()
- %OnNew()
- %OnValidateObject()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %ValidateObject()