/** * The purpose of this routine is to force the DB cursor to skip forward * N records. You should call this function after [p]query to help with * pagination. i.e. Perfrom your select, then skip forward past the records * you read previously. * * @param exprContext * @param o * @param value */ public void skipRec( ExpressionContext exprContext, Object o, int value ) { SQLDocument sqldoc = null; DTMNodeIterator nodei = null; sqldoc = locateSQLDocument( exprContext, o); if (sqldoc != null) sqldoc.skip(value); }
/** * Close the connection to the data source. Only close the connections * for a single document. * * @throws SQLException */ public void close(ExpressionContext exprContext, Object doc) throws SQLException { if (DEBUG) System.out.println("Entering XConnection.close(" + doc + ")"); SQLDocument sqlDoc = locateSQLDocument(exprContext, doc); if (sqlDoc != null) { // If we are using the Default Connection Pool, then // force the connection pool to flush unused connections. sqlDoc.close(m_IsDefaultPool); m_OpenSQLDocuments.remove(sqlDoc); } }
/** * Close the connection to the data source. Only close the connections * for a single document. * * @throws SQLException */ public void close(ExpressionContext exprContext, Object doc) throws SQLException { if (DEBUG) System.out.println("Entering XConnection.close(" + doc + ")"); SQLDocument sqlDoc = locateSQLDocument(exprContext, doc); if (sqlDoc != null) { // If we are using the Default Connection Pool, then // force the connection pool to flush unused connections. sqlDoc.close(m_IsDefaultPool); m_OpenSQLDocuments.remove(sqlDoc); } }
/** * The purpose of this routine is to force the DB cursor to skip forward * N records. You should call this function after [p]query to help with * pagination. i.e. Perfrom your select, then skip forward past the records * you read previously. * * @param exprContext * @param o * @param value */ public void skipRec( ExpressionContext exprContext, Object o, int value ) { SQLDocument sqldoc = null; DTMNodeIterator nodei = null; sqldoc = locateSQLDocument( exprContext, o); if (sqldoc != null) sqldoc.skip(value); }
/** * The purpose of this routine is to force the DB cursor to skip forward * N records. You should call this function after [p]query to help with * pagination. i.e. Perfrom your select, then skip forward past the records * you read previously. * * @param exprContext * @param o * @param value */ public void skipRec( ExpressionContext exprContext, Object o, int value ) { SQLDocument sqldoc = null; DTMNodeIterator nodei = null; sqldoc = locateSQLDocument( exprContext, o); if (sqldoc != null) sqldoc.skip(value); }
/** * The purpose of this routine is to force the DB cursor to skip forward * N records. You should call this function after [p]query to help with * pagination. i.e. Perfrom your select, then skip forward past the records * you read previously. * * @param exprContext * @param o * @param value */ public void skipRec( ExpressionContext exprContext, Object o, int value ) { SQLDocument sqldoc = null; DTMNodeIterator nodei = null; sqldoc = locateSQLDocument( exprContext, o); if (sqldoc != null) sqldoc.skip(value); }
/** * Close the connection to the data source. Only close the connections * for a single document. * * @throws SQLException */ public void close(ExpressionContext exprContext, Object doc) throws SQLException { if (DEBUG) System.out.println("Entering XConnection.close(" + doc + ")"); SQLDocument sqlDoc = locateSQLDocument(exprContext, doc); if (sqlDoc != null) { // If we are using the Default Connection Pool, then // force the connection pool to flush unused connections. sqlDoc.close(m_IsDefaultPool); m_OpenSQLDocuments.remove(sqlDoc); } }
/** * Close the connection to the data source. Only close the connections * for a single document. * * @throws SQLException */ public void close(ExpressionContext exprContext, Object doc) throws SQLException { if (DEBUG) System.out.println("Entering XConnection.close(" + doc + ")"); SQLDocument sqlDoc = locateSQLDocument(exprContext, doc); if (sqlDoc != null) { // If we are using the Default Connection Pool, then // force the connection pool to flush unused connections. sqlDoc.close(m_IsDefaultPool); m_OpenSQLDocuments.remove(sqlDoc); } }