|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.firebirdsql.gds.impl.AbstractGDS
org.firebirdsql.gds.impl.jni.BaseGDSImpl
org.firebirdsql.gds.impl.jni.JniGDSImpl
public abstract class JniGDSImpl
| Field Summary | |
|---|---|
static String |
JAYBIRD_JNI_LIBRARY
Name of the JNI library able to communicate with the client or embedded server library. |
| Fields inherited from class org.firebirdsql.gds.impl.jni.BaseGDSImpl |
|---|
DESCRIBE_DATABASE_INFO_BLOCK, isc_api_handle |
| Constructor Summary | |
|---|---|
protected |
JniGDSImpl()
Default constructor for subclasses only. |
protected |
JniGDSImpl(GDSType gdsType)
Create instance of this class. |
| Method Summary | |
|---|---|
protected void |
attemptToLoadAClientLibraryFromList(String[] clientLibraryList)
Attempts too load a Firebird client or embedded server library. |
protected void |
finalize()
|
protected static void |
initJNIBridge()
Init the JNI bridge for this class. |
void |
native_isc_attach_database(byte[] file_name,
IscDbHandle db_handle,
byte[] dpbBytes)
|
byte[] |
native_isc_blob_info(isc_blob_handle_impl handle,
byte[] items,
int buffer_length)
|
void |
native_isc_cancel_events(IscDbHandle db_handle,
EventHandleImp eventHandle)
|
void |
native_isc_close_blob(IscBlobHandle blob)
|
void |
native_isc_commit_retaining(IscTrHandle tr_handle)
|
void |
native_isc_commit_transaction(IscTrHandle tr_handle)
|
void |
native_isc_create_blob2(IscDbHandle db,
IscTrHandle tr,
IscBlobHandle blob,
byte[] dpbBytes)
|
void |
native_isc_create_database(byte[] file_name,
IscDbHandle db_handle,
byte[] dpbBytes)
|
void |
native_isc_database_info(IscDbHandle db_handle,
int item_length,
byte[] items,
int buffer_length,
byte[] buffer)
|
void |
native_isc_detach_database(IscDbHandle db_handle)
|
void |
native_isc_drop_database(IscDbHandle db_handle)
|
void |
native_isc_dsql_alloc_statement2(IscDbHandle db_handle,
IscStmtHandle stmt_handle)
|
void |
native_isc_dsql_allocate_statement(IscDbHandle db_handle,
IscStmtHandle stmt_handle)
|
XSQLDA |
native_isc_dsql_describe_bind(IscStmtHandle stmt_handle,
int da_version)
|
XSQLDA |
native_isc_dsql_describe(IscStmtHandle stmt_handle,
int da_version)
|
void |
native_isc_dsql_exec_immed2(IscDbHandle db_handle,
IscTrHandle tr_handle,
byte[] statement,
int dialect,
XSQLDA in_xsqlda,
XSQLDA out_xsqlda)
|
void |
native_isc_dsql_execute2(IscTrHandle tr_handle,
IscStmtHandle stmt_handle,
int da_version,
XSQLDA in_xsqlda,
XSQLDA out_xsqlda)
|
boolean |
native_isc_dsql_fetch(IscStmtHandle stmt_handle,
int da_version,
XSQLDA xsqlda,
int fetchSize)
|
void |
native_isc_dsql_free_statement(IscStmtHandle stmt_handle,
int option)
|
XSQLDA |
native_isc_dsql_prepare(IscTrHandle tr_handle,
IscStmtHandle stmt_handle,
byte[] statement,
int dialect)
|
void |
native_isc_dsql_set_cursor_name(IscStmtHandle stmt_handle,
String cursor_name,
int type)
|
byte[] |
native_isc_dsql_sql_info(IscStmtHandle stmt_handle,
byte[] items,
int buffer_length)
|
long |
native_isc_event_block(EventHandleImp eventHandle,
String eventName)
|
void |
native_isc_event_counts(EventHandleImp eventHandle)
|
protected void |
native_isc_finalize(int isc_api_handle)
|
byte[] |
native_isc_get_segment(IscBlobHandle blob,
int maxread)
|
void |
native_isc_open_blob2(IscDbHandle db,
IscTrHandle tr,
IscBlobHandle blob,
byte[] dpbBytes)
|
void |
native_isc_prepare_transaction(IscTrHandle tr_handle)
|
void |
native_isc_prepare_transaction2(IscTrHandle tr_handle,
byte[] bytes)
|
void |
native_isc_put_segment(IscBlobHandle blob_handle,
byte[] buffer)
|
int |
native_isc_que_events(IscDbHandle db_handle,
EventHandleImp eventHandle,
EventHandler handler)
|
void |
native_isc_reconnect_transaction(IscDbHandle dbHandle,
IscTrHandle tr_handle,
byte[] txId)
|
void |
native_isc_rollback_retaining(IscTrHandle tr_handle)
|
void |
native_isc_rollback_transaction(IscTrHandle tr_handle)
|
void |
native_isc_seek_blob(isc_blob_handle_impl handle,
int position,
int mode)
|
void |
native_isc_service_attach(String service,
IscSvcHandle serviceHandle,
byte[] serviceParameterBuffer)
|
void |
native_isc_service_detach(IscSvcHandle serviceHandle)
|
void |
native_isc_service_query(IscSvcHandle serviceHandle,
byte[] sendServiceParameterBuffer,
byte[] requestServiceParameterBuffer,
byte[] resultBuffer)
|
void |
native_isc_service_start(IscSvcHandle serviceHandle,
byte[] serviceParameterBuffer)
|
void |
native_isc_start_transaction(IscTrHandle tr_handle,
IscDbHandle db_handle,
byte[] tpb)
|
byte[] |
native_isc_transaction_info(IscTrHandle tr_handle,
byte[] info,
int bufferLength)
|
void |
nativeInitilize(String sharedLibraryName)
Attempt to load a specified library. |
| Methods inherited from class org.firebirdsql.gds.impl.AbstractGDS |
|---|
close, getGdsType, getType, readExternal, readResolve, writeExternal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String JAYBIRD_JNI_LIBRARY
| Constructor Detail |
|---|
protected JniGDSImpl(GDSType gdsType)
nativeInitilize(String) method.
gdsType - type of GDS module being created.protected JniGDSImpl()
AbstractGDS.getType() method.
| Method Detail |
|---|
protected static void initJNIBridge()
throws UnsatisfiedLinkError
UnsatisfiedLinkError - if JNI bridge cannot be initialized.protected void attemptToLoadAClientLibraryFromList(String[] clientLibraryList)
nativeInitilize(String) method does not throw an exception, it
assumes that initialization was successful.
clientLibraryList - list of library names including file extension
that will be tried.public void nativeInitilize(String sharedLibraryName)
java.lang.Throwable).
If no exception was thrown, we assume that initialization succeeded.
sharedLibraryName - name of the shared library including file
extension.
public void native_isc_attach_database(byte[] file_name,
IscDbHandle db_handle,
byte[] dpbBytes)
native_isc_attach_database in class BaseGDSImpl
public byte[] native_isc_blob_info(isc_blob_handle_impl handle,
byte[] items,
int buffer_length)
throws GDSException
native_isc_blob_info in class BaseGDSImplGDSException
public void native_isc_close_blob(IscBlobHandle blob)
throws GDSException
native_isc_close_blob in class BaseGDSImplGDSException
public void native_isc_commit_retaining(IscTrHandle tr_handle)
throws GDSException
native_isc_commit_retaining in class BaseGDSImplGDSException
public void native_isc_commit_transaction(IscTrHandle tr_handle)
throws GDSException
native_isc_commit_transaction in class BaseGDSImplGDSException
public void native_isc_create_blob2(IscDbHandle db,
IscTrHandle tr,
IscBlobHandle blob,
byte[] dpbBytes)
native_isc_create_blob2 in class BaseGDSImpl
public void native_isc_create_database(byte[] file_name,
IscDbHandle db_handle,
byte[] dpbBytes)
native_isc_create_database in class BaseGDSImpl
public void native_isc_database_info(IscDbHandle db_handle,
int item_length,
byte[] items,
int buffer_length,
byte[] buffer)
throws GDSException
native_isc_database_info in class BaseGDSImplGDSException
public void native_isc_detach_database(IscDbHandle db_handle)
throws GDSException
native_isc_detach_database in class BaseGDSImplGDSException
public void native_isc_drop_database(IscDbHandle db_handle)
throws GDSException
native_isc_drop_database in class BaseGDSImplGDSException
public void native_isc_dsql_alloc_statement2(IscDbHandle db_handle,
IscStmtHandle stmt_handle)
throws GDSException
native_isc_dsql_alloc_statement2 in class BaseGDSImplGDSException
public void native_isc_dsql_allocate_statement(IscDbHandle db_handle,
IscStmtHandle stmt_handle)
throws GDSException
native_isc_dsql_allocate_statement in class BaseGDSImplGDSException
public XSQLDA native_isc_dsql_describe(IscStmtHandle stmt_handle,
int da_version)
throws GDSException
native_isc_dsql_describe in class BaseGDSImplGDSException
public XSQLDA native_isc_dsql_describe_bind(IscStmtHandle stmt_handle,
int da_version)
throws GDSException
native_isc_dsql_describe_bind in class BaseGDSImplGDSException
public void native_isc_dsql_exec_immed2(IscDbHandle db_handle,
IscTrHandle tr_handle,
byte[] statement,
int dialect,
XSQLDA in_xsqlda,
XSQLDA out_xsqlda)
throws GDSException
native_isc_dsql_exec_immed2 in class BaseGDSImplGDSException
public void native_isc_dsql_execute2(IscTrHandle tr_handle,
IscStmtHandle stmt_handle,
int da_version,
XSQLDA in_xsqlda,
XSQLDA out_xsqlda)
throws GDSException
native_isc_dsql_execute2 in class BaseGDSImplGDSException
public boolean native_isc_dsql_fetch(IscStmtHandle stmt_handle,
int da_version,
XSQLDA xsqlda,
int fetchSize)
throws GDSException
native_isc_dsql_fetch in class BaseGDSImplGDSException
public void native_isc_dsql_free_statement(IscStmtHandle stmt_handle,
int option)
throws GDSException
native_isc_dsql_free_statement in class BaseGDSImplGDSException
public XSQLDA native_isc_dsql_prepare(IscTrHandle tr_handle,
IscStmtHandle stmt_handle,
byte[] statement,
int dialect)
throws GDSException
native_isc_dsql_prepare in class BaseGDSImplGDSException
public void native_isc_dsql_set_cursor_name(IscStmtHandle stmt_handle,
String cursor_name,
int type)
throws GDSException
native_isc_dsql_set_cursor_name in class BaseGDSImplGDSException
public byte[] native_isc_dsql_sql_info(IscStmtHandle stmt_handle,
byte[] items,
int buffer_length)
throws GDSException
native_isc_dsql_sql_info in class BaseGDSImplGDSException
public byte[] native_isc_get_segment(IscBlobHandle blob,
int maxread)
throws GDSException
native_isc_get_segment in class BaseGDSImplGDSException
public void native_isc_open_blob2(IscDbHandle db,
IscTrHandle tr,
IscBlobHandle blob,
byte[] dpbBytes)
native_isc_open_blob2 in class BaseGDSImpl
public void native_isc_prepare_transaction(IscTrHandle tr_handle)
throws GDSException
native_isc_prepare_transaction in class BaseGDSImplGDSException
public void native_isc_prepare_transaction2(IscTrHandle tr_handle,
byte[] bytes)
throws GDSException
native_isc_prepare_transaction2 in class BaseGDSImplGDSException
public void native_isc_put_segment(IscBlobHandle blob_handle,
byte[] buffer)
throws GDSException
native_isc_put_segment in class BaseGDSImplGDSException
public void native_isc_rollback_retaining(IscTrHandle tr_handle)
throws GDSException
native_isc_rollback_retaining in class BaseGDSImplGDSException
public void native_isc_rollback_transaction(IscTrHandle tr_handle)
throws GDSException
native_isc_rollback_transaction in class BaseGDSImplGDSException
public void native_isc_seek_blob(isc_blob_handle_impl handle,
int position,
int mode)
throws GDSException
native_isc_seek_blob in class BaseGDSImplGDSException
public void native_isc_service_attach(String service,
IscSvcHandle serviceHandle,
byte[] serviceParameterBuffer)
throws GDSException
native_isc_service_attach in class BaseGDSImplGDSException
public void native_isc_service_detach(IscSvcHandle serviceHandle)
throws GDSException
native_isc_service_detach in class BaseGDSImplGDSException
public void native_isc_service_query(IscSvcHandle serviceHandle,
byte[] sendServiceParameterBuffer,
byte[] requestServiceParameterBuffer,
byte[] resultBuffer)
throws GDSException
native_isc_service_query in class BaseGDSImplGDSException
public void native_isc_service_start(IscSvcHandle serviceHandle,
byte[] serviceParameterBuffer)
throws GDSException
native_isc_service_start in class BaseGDSImplGDSException
public void native_isc_start_transaction(IscTrHandle tr_handle,
IscDbHandle db_handle,
byte[] tpb)
throws GDSException
native_isc_start_transaction in class BaseGDSImplGDSException
public void native_isc_reconnect_transaction(IscDbHandle dbHandle,
IscTrHandle tr_handle,
byte[] txId)
throws GDSException
native_isc_reconnect_transaction in class BaseGDSImplGDSException
public byte[] native_isc_transaction_info(IscTrHandle tr_handle,
byte[] info,
int bufferLength)
throws GDSException
native_isc_transaction_info in class BaseGDSImplGDSException
public int native_isc_que_events(IscDbHandle db_handle,
EventHandleImp eventHandle,
EventHandler handler)
throws GDSException
native_isc_que_events in class BaseGDSImplGDSException
public long native_isc_event_block(EventHandleImp eventHandle,
String eventName)
throws GDSException
native_isc_event_block in class BaseGDSImplGDSException
public void native_isc_event_counts(EventHandleImp eventHandle)
throws GDSException
native_isc_event_counts in class BaseGDSImplGDSException
public void native_isc_cancel_events(IscDbHandle db_handle,
EventHandleImp eventHandle)
throws GDSException
native_isc_cancel_events in class BaseGDSImplGDSException
protected void native_isc_finalize(int isc_api_handle)
throws GDSException
GDSException
protected void finalize()
throws Throwable
finalize in class ObjectThrowable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||