4D S.A. Copyright 2001

j4d.open
Class opDriverManager

java.lang.Object
  |
  +--j4d.open.opDriverManager
All Implemented Interfaces:
opConstants

public class opDriverManager
extends java.lang.Object
implements opConstants

In the java model, the driver manager is handling only one kind of driver or protocole because the network interface of the virtual machine is used. But this layer handles the connection objects.


Fields inherited from interface j4d.open.opConstants
ACCESS_PRIVILEGE_VIOLATION, ALLOW_4D_CLIENT_ONLY_IS_CHECKED, ALPHANUMERIC, ALPHANUMERIC_ARRAY, ALPHANUMERIC2, AND, API_NOT_COMPATIBLE_WITH_SERVER, BACKUP_IN_PROGRESS, BAD_SEARCH_TABLE_DEFINITION, BAD_SORT_TABLE_DEFINITION, BLOB, BLOB_ARRAY, BLOBSTA, BOOLEAN, BOOLEAN_ARRAY, CHARSET_PROBLEM, CONNECTION_DO_ERR, CONNECTION_LL1_ERR, CONNECTION_LL2_ERR, CONNECTION_LL3_ERR, CONNECTION_LL4_ERR, CONTAIN, DATA_FIELD_PROBLEM, DATE, DATE_ARRAY, DISCONNECTION_ERR, DOES_NOT_CONTAIN, DUPLICATE_KEY_INDEX, EQUAL, EXCEPT, FIELD_IS_NOT_INDEXED, FIELD_IS_NOT_RELATED_TO, FIELD_NUMBER_IS_OUT_OF_RANGE, GREATER_THAN, GREATER_THAN_OR_EQUAL, INDEX_PAGE_OUT_OF_RANGE, INTEGER, INTEGER_ARRAY, INVALID_FIELD_TABLE_DEFINITION, INVALID_FIELD_TYPE, INVALID_INDEX_PAGE, INVALID_PASSWORD, INVALID_RECORD_ADDRESS, INVALID_RECORD_NUMBER, INVALID_RECORD_STRUCTURE, INVALID_SELECTED_RECORD_NUMBER, INVALID_STRUCTURE, INVALID_TYPE_REQUESTED, LESS_THAN, LESS_THAN_OR_EQUAL, LIMIT_OF_DEMO, LONGINTEGER, LONGINTEGER_ARRAY, MAXIMUM_NUMBER_OF_RECORDS_REACHED, NO_ARRAY_BLOB, NO_CURRENT_RECORD, NO_MORE_SPACE_AVAILABLE_TO_SAVE_RECORD, NONE, NOT_EQUAL, OLD_SERVER_ERR, OR, OTHER_RECORD_ARE_RELATED, PICTURE, PICTURE_ARRAY, PREPARE_LOGIN_ERR, PROCESS_COULD_NOT_BE_STARTED, REAL, REAL_ARRAY, RECORD_ALLREADY_DELETED, RECORD_COULD_NOT_BE_LOADED, RECORD_LOCKED_DURING_AUTOMATIC_DELETION, RECORD_NOT_IN_SELECTION, RECORD_OUT_OF_RANGE, RECURSIVE_INTEGRITY, SELECTION_DOES_NOT_EXIST, SLEEPING_PROCESS_ERR, STACK_IS_FULL, START_PROCESS_ERR, STOP_PROCESS_ERR, STRUCTURE_IS_LOCKED, SUBTABLE, TABLE_NUMBER_IS_OUT_OF_RANGE, TEXT, TEXT_ARRAY, TEXTSTA, TIME, TIME_ARRAY, TIME_OUT_EXPIRED, TIMEOUT, TRANSACTION_CANCELLED_DUPLICATE_KEY, TRANSACTION_INDEX_PAGE_COULD_NOT_BE_LOADED, TRIC_RESSOURCES_ARE_NOT_THE_SAME, UNABLE_TO_CLEAR_SELECTION, UNABLE_TO_OPEN_SOCKET_ERR, UNKNOWN_USER, UNSPECIFIED_CURRENT_RECORD, UNSPECIFIED_FIELD, UNSPECIFIED_FIELD_NAME, UNSPECIFIED_LOP, UNSPECIFIED_PROCESS_NAME, UNSPECIFIED_RECORD, UNSPECIFIED_RECORD_IN_SELECTION, UNSPECIFIED_SELECTION_NAME, UNSPECIFIED_SEMAPHORE_NAME, UNSPECIFIED_SET_NAME, UNSPECIFIED_SOP, UNSPECIFIED_TABLE, UNSPECIFIED_TABLE_NAME, UNSPECIFIED_TARGET_TABLE, VINTERPROCESS, VPROCESS
 
Constructor Summary
opDriverManager()
           
 
Method Summary
 opConnection getConnection(java.lang.String url)
          The method getConnection create a connection on the 4D Server.
 opConnection getConnection(java.lang.String url, int port)
          The method getConnection create a connection on the 4D Server.
static java.lang.String getVersion()
          The method getVersion return the current version of this API with the following format : "4D Open for Java vXX.X"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

opDriverManager

public opDriverManager()
Method Detail

getConnection

public opConnection getConnection(java.lang.String url,
                                  int port)
                           throws opException
The method getConnection create a connection on the 4D Server.

The port number parameter is defined in the TCP.opt file and its default value is 19813. This value can be changed by editing the TCP.opt file with 4D Customizer.

Note: The connection does not appear on the 4D Server until a process is not created.
Parameters:
url - IP adress server you want to connect to.
port - Port number of the 4D Server.
Returns:
Valid connection.
See Also:
4D Open for Java examplet

getConnection

public opConnection getConnection(java.lang.String url)
                           throws opException
The method getConnection create a connection on the 4D Server.

The port number parameter is defined in the TCP.opt file and its default value is 19813. This value can be changed by editing the TCP.opt file with 4D Customizer. If you try to connect to a 4D Server located at a different port number, you must use the getConnection(String, int) which allows you to pass as parameter a different port number .

Note: The connection does not appear on the 4D Server until a process is not created.
Parameters:
url - IP adress server you want to connect to.
Returns:
Valid connection.
See Also:
4D Open for Java examplet

getVersion

public static java.lang.String getVersion()
The method getVersion return the current version of this API with the following format : "4D Open for Java vXX.X"
Returns:
The current version.

4D S.A. Copyright 2001

4D S.A.