MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mysql.jtie.Wrapper Class Reference
Inheritance diagram for com.mysql.jtie.Wrapper:

Public Member Functions

final boolean equals (Object obj)
final int hashCode ()
String toString ()

Protected Member Functions

 Wrapper ()
 Wrapper (Wrapper o)

Detailed Description

A base class for Java peer classes representing a C/C++ object type.

This class declares only non-public members, which enable the JTie runtime to map a Java Wrapper instance to a C/C++ object.

A Java peer class extending Wrapper

  1. must provide a no-arg constructor (may be of any access modifier, but preferred private),
  2. will declare a native method for each C/C++ (member and non-member) function to be mapped to Java, and
  3. ought not to have any non-static fields (i.e., state by its own).

Please, note that JTie provides no guarantees on the association between Wrapper instances and their underlying C/C++ objects. In particular,

  1. multiple Wrapper instances may exist for the same C/C++ object at any time and
  2. a C/C++ object may have been deleted by the application while corresponding Java Wrapper instances still exist (i.e., referential integrity cannot be assumed).

Definition at line 49 of file Wrapper.java.

Constructor & Destructor Documentation

com.mysql.jtie.Wrapper.Wrapper ( )
inlineprotected

Creates an unattached wrapper instance.

Definition at line 89 of file Wrapper.java.

Here is the caller graph for this function:

com.mysql.jtie.Wrapper.Wrapper ( Wrapper  o)
inlineprotected

Copies a wrapper instance.

Definition at line 96 of file Wrapper.java.

Member Function Documentation

final boolean com.mysql.jtie.Wrapper.equals ( Object  obj)
inline

Indicates whether some other object is a wrapper that refers to the same native delegate instance.

See Also
Object::equals(Object)

Definition at line 107 of file Wrapper.java.

Here is the call graph for this function:

final int com.mysql.jtie.Wrapper.hashCode ( )
inline

Returns a hash code value for the object.

See Also
Object::hashCode()

Definition at line 121 of file Wrapper.java.

String com.mysql.jtie.Wrapper.toString ( )
inline

Returns a string representation of the object.

See Also
Object::toString()

Definition at line 130 of file Wrapper.java.


The documentation for this class was generated from the following file: