| Home | How To | Online Documentation | Support | Download | Order |
|
|
SAString &setAsLongBinary( saLongOrLobWriter_t fnWriter = NULL, unsigned int nWriterSize = 0, void * pAddlData = NULL);throw (SAException); SAString
&setAsLongChar( saLongOrLobWriter_t fnWriter = NULL,
unsigned intnWriterSize = 0,
void *pAddlData =
NULL); SAString
&setAsBLob( saLongOrLobWriter_t fnWriter =
NULL, unsigned int nWriterSize
= 0, void *pAddlData =
NULL); SAString
&setAsCLob( saLongOrLobWriter_t fnWriter =
NULL, unsigned int nWriterSize
= 0, void *pAddlData =
NULL); ParametersfnWriter. The name of user function used for Long or BLob(CLob) data writing. The function must have syntax declared by saLongOrLobWriter_t typedef. The default value is NULL. If you use the default value, SQLAPI++ Library will write Long or Lob data from internal buffer without calling user-defined callback. nWriterSize. Size of piece of data user want to use for piecewise writing. The default value is 0 . If you use the default value, SQLAPI++ Library will automatically use the most appropriate size for current DBMS. pAddData. Additional data that you want to pass to callback function. RemarksWhen you call SACommand::Execute method all input parameters are bound with their values, including Long and BLob(CLob) parameters. If you want to control piecewise writing of Long or BLob(CLob) data you should do the following: before a command execution call one of the setAs... methods (setAsLongBinary method to write Long Binary data, setAsLongChar method to write Long Character data, setAsBLob method to write BLob data, setAsCLob method to write CLob data) with fnWriter parameter which differs from the default value for Long or BLob(CLob) parameters you want to process by user defined function(s). Each of four methods will repeatedly call user defined function: void
<function Name>(SAPieceType_t &ePieceType, User defined function has the following parameters: ePieceType. Parameter defines which piece of data value was written. Can be one of the next SAPieceType_t enum values:
pBuf. Pointer to the buffer that contains the data block to write to database. nLen. The actual size of data in bufer pBuf. pAddData . An additional data. To get more information about writing Long and BLob(CLob) data see Query examples - Step 5. Server specific notesNo specific information. Problems and QuestionsIf you haven't found the answer to your questions or have some problems on using the Library, please, send e-mail to howto@sqlapi.com. |
||||||||||||||||||