Oracle® Call Interface Programmer's Guide 11g Release 2 (11.2) E10646-13 |
|
|
PDF · Mobi · ePub |
Table 18-6 describes the OCI mark or unmark object and cache functions that are described in this section.
Table 18-6 Mark or Unmark Object and Cache Functions
Function | Purpose |
---|---|
Unmark objects in the cache |
|
Mark an object deleted or delete a value instance |
|
Mark an object deleted when given a reference to it |
|
Mark an object as updated or dirty |
|
Unmark an object |
|
Unmark an object, when given a reference to it |
The OCI environment handle initialized in object mode. See the descriptions of OCIEnvCreate(), OCIEnvNlsCreate(), and OCIInitialize() (deprecated) for more information.
The OCI error handle. If there is an error, it is recorded in err
, and this function returns OCI_ERROR
. Obtain diagnostic information by calling OCIErrorGet().
OCI service context.
If a connection is specified, this function unmarks all dirty objects in that connection. Otherwise, all dirty objects in the cache are unmarked.
See Also:
"OCIObjectUnmark()" for more information about unmarking an objectThe OCI environment handle initialized in object mode. See the descriptions of OCIEnvCreate(), OCIEnvNlsCreate(), and OCIInitialize() (deprecated) for more information.
The OCI error handle. If there is an error, it is recorded in err
, and this function returns OCI_ERROR
. Obtain diagnostic information by calling OCIErrorGet().
Pointer to the instance. It must be standalone, and if it is an object, it must be pinned.
This function accepts a pointer to a standalone instance and marks the object as deleted. The object is freed according to the following rules:
The object is marked deleted. The memory of the object is not freed. The object is deleted in the server when the object is flushed.
The object is marked deleted. The memory of the object is not freed.
This function frees a value immediately.
The OCI environment handle initialized in object mode. See the descriptions of OCIEnvCreate(), OCIEnvNlsCreate(), and OCIInitialize() (deprecated) for more information.
The OCI error handle. If there is an error, it is recorded in err
, and this function returns OCI_ERROR
. Obtain diagnostic information by calling OCIErrorGet().
Reference to the object to be deleted.
This function accepts a reference to an object, and marks the object designated by object_ref
as deleted. The object is marked and freed as follows:
If the object is not loaded, then a temporary object is created and is marked deleted. Otherwise, the object is marked deleted.
The object is deleted in the server when the object is flushed.
The object is marked deleted. The object is not freed until it is unpinned.
The OCI environment handle initialized in object mode. See the descriptions of OCIEnvCreate(), OCIEnvNlsCreate(), and OCIInitialize() (deprecated) for more information.
The OCI error handle. If there is an error, it is recorded in err
, and this function returns OCI_ERROR
. Obtain diagnostic information by calling OCIErrorGet().
A pointer to the persistent object, which must already be pinned.
This function marks a persistent object as updated (dirty). The following special rules apply to different types of objects. The dirty status of an object can be checked by calling OCIObjectIsLocked().
This function marks the specified persistent object as updated.
When the object cache is flushed, it writes the persistent objects to the server. The object is not locked or flushed by this function. It is an error to update a deleted object.
After an object is marked updated and flushed, this function must be called again to mark the object as updated if it has been dirtied after being flushed.
This function marks the specified transient object as updated. The transient objects are not written to the server. It is an error to update a deleted object.
This function has no effect on values.
See Also:
"Marking Objects and Flushing Changes" for more information about the use of this functionThe OCI environment handle initialized in object mode. See the descriptions of OCIEnvCreate(), OCIEnvNlsCreate(), and OCIInitialize() (deprecated) for more information.
The OCI error handle. If there is an error, it is recorded in err
, and this function returns OCI_ERROR
. Obtain diagnostic information by calling OCIErrorGet().
Pointer to the persistent object. It must be pinned.
This function unmarks the specified persistent object as dirty. Changes that are made to the object are not written to the server. If the object is marked as locked, it remains marked as locked. The changes that have already been made to the object are not undone implicitly.
This function has no effect if called on a value.
The OCI environment handle initialized in object mode. See the descriptions of OCIEnvCreate(), OCIEnvNlsCreate(), and OCIInitialize() (deprecated) for more information.
The OCI error handle. If there is an error, it is recorded in err
, and this function returns OCI_ERROR
. Obtain diagnostic information by calling OCIErrorGet().
Reference of the object. It must be pinned.
This function unmarks an object as dirty. This function is identical to OCIObjectUnmark(), except that it takes a ref
to the object as an argument.
This function unmarks the specified persistent object as dirty. Changes that are made to the object are not written to the server. If the object is marked as locked, it remains marked as locked. The changes that have already been made to the object are not undone implicitly.
This function has no effect on values.