10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

How You Can Use Database Procedures........................................................................... 155How You Can Use the Execute Immediate Statement ........................................................ 155How You Can Use Cursors to Access the Database ............................................................ 157How You Can Use Methods That Access the Database........................................................ 163How You Can Access a Database with DataStream Objects ...................................................... 165How You Can Select a Mode for a DataStream Object........................................................ 166How You Can Use SQLSelect Objects .............................................................................. 166How You Can Use Query Objects .................................................................................... 177How You Can Manage Transactions ...................................................................................... 182How You Can Control Concurrency.................................................................................. 182How You Can Manage Multiple Sessions and Transactions .................................................. 185How You Can Manage Transactions with Bitmaps, String Objects, Long Byte Objects, Long VcharObjects, and Data Streams............................................................................................ 186How You Can Manage Transaction Errors ......................................................................... 187How Running with Autocommit On Works ........................................................................ 187How You Can Use the Exit Statement with Transactions..................................................... 188How <strong>Programming</strong> for Multiple Sessions Works ...................................................................... 188How You Can Keep Track of the Current Session............................................................... 189How You Can Use Concurrent Frames and Multiple Sessions ............................................... 190How You Can Use Cursors, DataStream Objects, and Multiple Sessions ................................ 191How You Can Open a New Database Session.................................................................... 191How You Can Switch Database Sessions .......................................................................... 193How You Can Disconnect a Session................................................................................. 197Handling Database Errors ................................................................................................... 197How You Can Use the ErrorNumber and DBMSError Attributes ............................................ 198How You Can Handle DataStream Errors ......................................................................... 199How You Can Use BitmapObject and StringObject Methods ................................................ 200How You Can Use LongByteObject and LongVCharObject Methods....................................... 200How You Can Use the ErrorStatus Attribute...................................................................... 201How You Can Use the Inquire_sql Statement ................................................................... 201Choosing an Error Handling Strategy .............................................................................. 202Chapter 7: Working with Arrays, Table Fields, and Collections 205Arrays and Table Fields—Conceptual Background ................................................................... 205Ways to Create an Array ............................................................................................... 206Manipulating Arrays and Table Fields .............................................................................. 207How You Can Reference Table Fields............................................................................... 207Arrays ............................................................................................................................. 207How You Can Declare an Array....................................................................................... 209How You Can Reference an Array ................................................................................... 210Restrictions on Array Structure ...................................................................................... 211How You Can Manipulate Arrays..................................................................................... 212vi <strong>Programming</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!