SE_stream_set_state

Sets state constraints for a stream

Usage syntax

LONG SE_stream_set_state
(SE_STREAM stream,
LONG source_id,
LONG differences_id,
LONG difference_type);

Parameters
stream The stream handle
source_id The source state ID
differences_id The differences state ID
difference_type The difference type
Description

SE_stream_set_state sets the state constraints for input and output for a stream. If a difference type is specified, only those features which fit the difference type are returned. Difference types are as follows:

   SE_STATE_DIFF_NOCHECK—Do not check the differences between source state and differences state. Return all features in the source state.

   SE_STATE_DIFF_NOCHANGE_UPDATE—Return all the features that have not changed in the source state, but have been updated in the differences state.

   SE_STATE_DIFF_NOCHANGE_DELETE—Return all the features that have not changed in the source state, but have been deleted in the differences state.

   SE_STATE_DIFF_UPDATE_NOCHANGE—Return all the features that have been updated in the source state, but are unchanged in the differences state.

   SE_STATE_DIFF_UPDATE_UPDATE—Return all the features that have been updated in both the source and differences state.

   SE_STATE_DIFF_UPDATE_DELETE—Return all the features that have been updated in the source state but deleted in the differences state.

   SE_STATE_DIFF_INSERT—Return all the features that were inserted into the source state and that never existed in the differences state.

Returns

SE_SUCCESS
SE_CONNECTION_IN_USE

SE_CONNECTION_LOCKED

SE_DB_IO_ERROR

SE_FAILURE

SE_INVALID_PARAM_VALUE

SE_INVALID_POINTER

SE_INVALID_STATE_ID

SE_INVALID_STREAM

SE_NET_FAILURE

SE_OUT_OF_SVMEM

SE_SDE_NOT_STARTED

SE_STATE_NOEXIST

SE_STATES_ARE_SAME

SE_STREAM_IN_PROGRESS