Lines Matching refs:m_aStatementHandle
52 OTools::ThrowException(m_pConnection,x,m_aStatementHandle,SQL_HANDLE_STMT,*this)
83 ,m_aStatementHandle(SQL_NULL_HANDLE) in OStatement_Base()
89 m_aStatementHandle = m_pConnection->createStatementHandle(); in OStatement_Base()
106 OSL_ENSURE(!m_aStatementHandle,"Sohould ne null here!"); in ~OStatement_Base()
125 OSL_ENSURE(m_aStatementHandle,"OStatement_BASE2::disposing: StatementHandle is null!"); in disposing()
128 m_pConnection->freeStatementHandle(m_aStatementHandle); in disposing()
132 OSL_ENSURE(!m_aStatementHandle,"Sohould ne null here!"); in disposing()
196 OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!"); in cancel()
197 …OTools::ThrowException(m_pConnection,N3SQLCancel(m_aStatementHandle),m_aStatementHandle,SQL_HANDLE… in cancel()
230 if(m_aStatementHandle) in reset()
232 THROW_SQL(N3SQLFreeStmt(m_aStatementHandle, SQL_CLOSE)); in reset()
265 THROW_SQL(N3SQLRowCount(m_aStatementHandle,&numRows)); in getRowCount()
297 OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!"); in lockIfNecessary()
301 …THROW_SQL(N3SQLSetStmtAttr(m_aStatementHandle, SQL_CONCURRENCY,(SQLPOINTER)nLock,SQL_IS_UINTEGER)); in lockIfNecessary()
339 OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!"); in getColumnCount()
342 THROW_SQL(N3SQLNumResultCols(m_aStatementHandle,&numCols)); in getColumnCount()
373 OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!"); in execute()
376 THROW_SQL(N3SQLExecDirect(m_aStatementHandle, (SDB_ODBC_CHAR*)aSql.getStr(),aSql.getLength())); in execute()
428 OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!"); in getResultSet()
449 OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!"); in getStmtOption()
450 N3SQLGetStmtAttr(m_aStatementHandle, fOption,&result,SQL_IS_INTEGER,NULL); in getStmtOption()
519 OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!"); in executeBatch()
520 …THROW_SQL(N3SQLExecDirect(m_aStatementHandle, (SDB_ODBC_CHAR*)aBatchSql.getStr(),aBatchSql.getLeng… in executeBatch()
526 SQLRETURN nError = N3SQLMoreResults(m_aStatementHandle); in executeBatch()
530 N3SQLRowCount(m_aStatementHandle,&nRowCount); in executeBatch()
610 OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!"); in getMoreResults()
613 hasResultSet = N3SQLMoreResults(m_aStatementHandle) == SQL_SUCCESS; in getMoreResults()
681 OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!"); in getResultSetConcurrency()
683 …SQLRETURN nRetCode = N3SQLGetStmtAttr(m_aStatementHandle,SQL_ATTR_CONCURRENCY,&nValue,SQL_IS_UINTE… in getResultSetConcurrency()
694 OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!"); in getResultSetType()
696 …SQLRETURN nRetCode = N3SQLGetStmtAttr(m_aStatementHandle,SQL_ATTR_CURSOR_SENSITIVITY,&nValue,SQL_I… in getResultSetType()
697 nRetCode = N3SQLGetStmtAttr(m_aStatementHandle,SQL_ATTR_CURSOR_TYPE,&nValue,SQL_IS_UINTEGER,0); in getResultSetType()
717 OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!"); in getFetchDirection()
719 …SQLRETURN nRetCode = N3SQLGetStmtAttr(m_aStatementHandle,SQL_ATTR_CURSOR_SCROLLABLE,&nValue,SQL_IS… in getFetchDirection()
737 OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!"); in getFetchSize()
739 …SQLRETURN nRetCode = N3SQLGetStmtAttr(m_aStatementHandle,SQL_ATTR_ROW_ARRAY_SIZE,&nValue,SQL_IS_UI… in getFetchSize()
751 OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!"); in getCursorName()
754 SQLRETURN nRetCode = N3SQLGetCursorName(m_aStatementHandle,(SQLCHAR*)pName,256,&nRealLen); in getCursorName()
761 OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!"); in setQueryTimeOut()
762 …SQLRETURN nRetCode = N3SQLSetStmtAttr(m_aStatementHandle, SQL_ATTR_QUERY_TIMEOUT,(SQLPOINTER)secon… in setQueryTimeOut()
768 OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!"); in setMaxRows()
769 …SQLRETURN nRetCode = N3SQLSetStmtAttr(m_aStatementHandle, SQL_ATTR_MAX_ROWS, (SQLPOINTER)_par0,SQL… in setMaxRows()
781 OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!"); in setResultSetConcurrency()
782 N3SQLSetStmtAttr(m_aStatementHandle, SQL_ATTR_CONCURRENCY,(SQLPOINTER)nSet,SQL_IS_UINTEGER); in setResultSetConcurrency()
789 OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!"); in setResultSetType()
790 …SQLRETURN nRetCode = N3SQLSetStmtAttr(m_aStatementHandle, SQL_ATTR_ROW_BIND_TYPE,(SQLPOINTER)SQL_B… in setResultSetType()
802 …N3SQLSetStmtAttr(m_aStatementHandle, SQL_ATTR_CURSOR_TYPE,(SQLPOINTER)SQL_CURSOR_KEYSET_DRIVEN,SQL… in setResultSetType()
828 …if(N3SQLSetStmtAttr(m_aStatementHandle, SQL_ATTR_CURSOR_TYPE,(SQLPOINTER)nSet,SQL_IS_UINTEGER) != … in setResultSetType()
831 N3SQLSetStmtAttr(m_aStatementHandle, SQL_ATTR_CURSOR_TYPE,(SQLPOINTER)nSet,SQL_IS_UINTEGER); in setResultSetType()
841 N3SQLSetStmtAttr(m_aStatementHandle, SQL_ATTR_CURSOR_SENSITIVITY,(SQLPOINTER)nSet,SQL_IS_UINTEGER); in setResultSetType()
846 OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!"); in setEscapeProcessing()
848 …SQLRETURN nRetCode = N3SQLSetStmtAttr( m_aStatementHandle, SQL_ATTR_NOSCAN, (SQLPOINTER)nEscapePro… in setEscapeProcessing()
855 OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!"); in setFetchDirection()
861 …nRetCode = N3SQLSetStmtAttr(m_aStatementHandle,SQL_ATTR_CURSOR_SCROLLABLE,(SQLPOINTER)nCursType,SQ… in setFetchDirection()
866 …nRetCode = N3SQLSetStmtAttr(m_aStatementHandle,SQL_ATTR_CURSOR_SCROLLABLE,(SQLPOINTER)nCursType,SQ… in setFetchDirection()
873 OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!"); in setFetchSize()
878 …SQLRETURN nRetCode = N3SQLSetStmtAttr(m_aStatementHandle,SQL_ATTR_ROW_ARRAY_SIZE,(SQLPOINTER)_par0… in setFetchSize()
882 …nRetCode = N3SQLSetStmtAttr(m_aStatementHandle,SQL_ATTR_ROW_STATUS_PTR,m_pRowStatusArray,SQL_IS_PO… in setFetchSize()
888 OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!"); in setMaxFieldSize()
889 N3SQLSetStmtAttr(m_aStatementHandle,SQL_ATTR_MAX_LENGTH,(SQLPOINTER)_par0,SQL_IS_UINTEGER); in setMaxFieldSize()
894 OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!"); in setCursorName()
896 …N3SQLSetCursorName(m_aStatementHandle,(SDB_ODBC_CHAR*)aName.getStr(),(SQLSMALLINT)aName.getLength(… in setCursorName()
901 OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!"); in isUsingBookmarks()
903 …SQLRETURN nRetCode = N3SQLGetStmtAttr(m_aStatementHandle,SQL_ATTR_USE_BOOKMARKS,&nValue,SQL_IS_UIN… in isUsingBookmarks()
910 OSL_ENSURE( m_aStatementHandle, "StatementHandle is null!" ); in getEscapeProcessing()
912 …SQLRETURN nRetCode = N3SQLGetStmtAttr( m_aStatementHandle, SQL_ATTR_NOSCAN, &nValue, SQL_IS_UINTEG… in getEscapeProcessing()
919 OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!"); in setUsingBookmarks()
921 …SQLRETURN nRetCode = N3SQLSetStmtAttr(m_aStatementHandle,SQL_ATTR_USE_BOOKMARKS,(SQLPOINTER)nValue… in setUsingBookmarks()
1122 return new OResultSet(m_aStatementHandle,this); in createResulSet()