Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

JSubroutineParameters (jremote API)

Class JSubroutineParameters


All Implemented Interfaces:
JBaseSerializable, Serializable, Cloneable, Iterable<JDynArray>, Collection<JDynArray>, List<JDynArray>, RandomAccess


public class JSubroutineParameters
extends ArrayList<JDynArray>
implements JBaseSerializable

A list of parameters to pass to a jBASE subroutine.

JSubroutineParameters is based on ArrayList and its typical usage is as follows:

JSubroutineParameters subroutineParams = new JSubroutineParameters();
subroutineParams.add(new JDynArray());
subroutineParams.add(new JDynArray("two"));
subroutineParams.add(null);
subroutineParams.add(new JDynArray());
subroutineParams.add(new JDynArray("five"));


Adding null elements is permitted and the above example will provide five parameters to a subroutine.


See Also:
JConnection.call(java.lang.String, com.jbase.jremote.JSubroutineParameters), Serialized Form

Nested Class Summary

  • Nested classes/interfaces inherited from interface com.jbase.jremote.io.JBaseSerializable


Field Summary

  • Fields inherited from class java.util.AbstractList


Constructor Summary

Constructor and Description
JSubroutineParameters() 


Method Summary

Modifier and Type
Method and Description
int
getType() 
int
getVersion() 
void
readObject(JBaseObjectReader reader, int version) 
void
writeObject(JBaseObjectWriter writer, int version) 

Constructor Detail

JSubroutineParameters

public JSubroutineParameters()

Method Detail

getType

public int getType()
Specified by:
getType in interface JBaseSerializable
Returns:
type id of the objects, used during the serialization

getVersion

public int getVersion()
Specified by:
getVersion in interface JBaseSerializable

writeObject

public void writeObject(JBaseObjectWriter writer,
                        int version)
                 throws IOException
Specified by:
writeObject in interface JBaseSerializable
Throws:
IOException

readObject

public void readObject(JBaseObjectReader reader,
                       int version)
                throws IOException,
                       ClassNotFoundException
Specified by:
readObject in interface JBaseSerializable
Throws:
IOException
ClassNotFoundException


Back to jREMOTE API

Was this article helpful?