Chapter 5 C Routines Reference
Create a shared-data collection or return a reference to an existing collection.
JagStatus JagNewCollection ( SQLPOINTER name, JagLockLevel * pLockLevel, JagBoolean * pExists, JagDataCollection ** ppCollection)
name
The name of the collection.
pLockLevel
Value | To indicate |
---|---|
JAG_LOCKCOLLECTION | Allows locks to be set on collections |
JAG_LOCKDATA | Does not allow locks to be set on collections |
pExists
is set to one of the following values:
Return value | To indicate |
---|---|
JAG_TRUE | If a collection with the specified name already exists |
JAG_FALSE | If a collection with the specified name is created |
ppCollection
A pointer to the address of the collection handle.
Return value | To indicate |
---|---|
JAG_SUCCEED | Success |
JAG_FAIL | Failure |
Check the server's log file for more information when JagNewCollection fails.
The JagNewCollection method:
Collections can be shared only among components that are installed in the same EAServer package. A collection created by a component that is installed in one package can not be retrieved by a component that is installed in a different package.
See "Share Data Between C Components" in the EAServer Programmer's Guide for more information.
JagFreeCollectionHandle, JagFreeSharedDataHandle, JagGetCollection, JagLockCollection, JagLockNoWaitCollection, JagUnlockCollection
Copyright © 2001 Sybase, Inc. All rights reserved. |
![]() |