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?

JCommon (jrclient API)

Class JCommon

com.jbase.jrcs.JCommon
public final class JCommon
extends Object
Represents a jBASE common block


Constructor Summary

Modifier
Constructor and Description
protected
JCommon(int handle, int numvars, JConnection conn)



Method Summary

Modifier and Type
Method
 Description
void
close()
Closes the object and releases the server-side handle
protected void
finalize()

JDynArray
getDA(int index)
Retrieves a dynamic array from a specific position in a common block
JFile
getFile(int index)
Retrieves a file variable from a specific position in a common block
void
setDA(int index, JDynArray dynArray)
Stores a dynamic array into a specific position in a common block
void
setFile(int index, JFile file)
Stores a file variable into a specific position in a common block



Methods inherited from class java.lang.Object

clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait



Constructor Detail

JCommon

protected JCommon(int handle, int numvars, JConnection conn)




Method Detail

getDA

public JDynArray getDA(int index) 
 throws JException 
Retrieves a dynamic array from a specific position in a common block 
Parameters:
    index - Position from which to retrieve a dynamic array 
Returns:  Dynamic array retrieved from the common block. 
Throws:JException 



getFile

public JFile getFile(int index)                  
throws JException 
Retrieves a file variable from a specific position in a common block.  
Parameters:
    index - Position from which to retrieve a file variable. 
Returns: File variable retrieved from the common block. 
Throws: JException



setDA

public void setDA(int index, JDynArray dynArray) 
throws JException 
Stores a dynamic array into a specific position in a common block. 
Parameters:         
index - Position in which to store the dynamic array        
dynArray - Dynamic array to store. 
Throws: JException


setFile

public void setFile(int index, JFile file)
throws JException 
Stores a file variable into a specific position in a common block. 
Parameters: 
index - Position in which to store the file variable 
file - File variable to store 
Throws: JException 



close

public void close()
throws JException    
Closes the object and releases the server-side handle. 
Throws: JException

finalize

protected void finalize()   

Overides: finalize in class Object






Was this article helpful?