/** * Provide access to the last error that occued. This error * may be over written when the next operation occurs. * */ public DTM getError( ) { if ( m_FullErrors ) { for ( int idx = 0 ; idx < m_OpenSQLDocuments.size() ; idx++ ) { SQLDocument doc = (SQLDocument)m_OpenSQLDocuments.elementAt(idx); SQLWarning warn = doc.checkWarnings(); if ( warn != null ) setError(null, doc, warn); } } return(buildErrorDocument()); }
/** * Create an XConnection object with just a driver and database URL. * @param exprContext * @param driver JDBC driver of the form foo.bar.Driver. * @param dbURL database URL of the form jdbc:subprotocol:subname. * */ public XBooleanStatic connect( ExpressionContext exprContext, String driver, String dbURL ) { try { init(driver, dbURL, new Properties()); return new XBooleanStatic(true); } catch(SQLException e) { setError(e,exprContext); return new XBooleanStatic(false); } catch (Exception e) { setError(e,exprContext); return new XBooleanStatic(false); } }
/** * Create an XConnection object with user ID and password. * @param exprContext * @param driver JDBC driver of the form foo.bar.Driver. * @param dbURL database URL of the form jdbc:subprotocol:subname. * @param user user ID. * @param password connection password. * */ public XBooleanStatic connect( ExpressionContext exprContext, String driver, String dbURL, String user, String password ) { try { Properties prop = new Properties(); prop.put("user", user); prop.put("password", password); init(driver, dbURL, prop); return new XBooleanStatic(true); } catch(SQLException e) { setError(e,exprContext); return new XBooleanStatic(false); } catch (Exception e) { setError(e,exprContext); return new XBooleanStatic(false); } }
/** * @param exprContext * @param list * */ public XBooleanStatic connect( ExpressionContext exprContext, NodeList list ) { try { initFromElement( (Element) list.item(0) ); return new XBooleanStatic(true); } catch(SQLException e) { setError(e, exprContext); return new XBooleanStatic(false); } catch (Exception e) { setError(e,exprContext); return new XBooleanStatic(false); } }
/** * @param exprContext * @param protocolElem * */ public XBooleanStatic connect( ExpressionContext exprContext, Element protocolElem ) { try { initFromElement(protocolElem); return new XBooleanStatic(true); } catch(SQLException e) { setError(e,exprContext); return new XBooleanStatic(false); } catch (Exception e) { setError(e,exprContext); return new XBooleanStatic(false); } }
if ( warn != null ) m_XConnection.setError(null, null, warn);
setError(e, doc, doc.checkWarnings());
setError(e, exprContext); return new XBooleanStatic(false);
setError(e, doc, doc.checkWarnings());
m_XConnection.setError(e, this, checkWarnings());
/** * Provide access to the last error that occued. This error * may be over written when the next operation occurs. * */ public DTM getError( ) { if ( m_FullErrors ) { for ( int idx = 0 ; idx < m_OpenSQLDocuments.size() ; idx++ ) { SQLDocument doc = (SQLDocument)m_OpenSQLDocuments.elementAt(idx); SQLWarning warn = doc.checkWarnings(); if ( warn != null ) setError(null, doc, warn); } } return(buildErrorDocument()); }
/** * Provide access to the last error that occued. This error * may be over written when the next operation occurs. * */ public DTM getError( ) { if ( m_FullErrors ) { for ( int idx = 0 ; idx < m_OpenSQLDocuments.size() ; idx++ ) { SQLDocument doc = (SQLDocument)m_OpenSQLDocuments.elementAt(idx); SQLWarning warn = doc.checkWarnings(); if ( warn != null ) setError(null, doc, warn); } } return(buildErrorDocument()); }
/** * Provide access to the last error that occued. This error * may be over written when the next operation occurs. * */ public DTM getError( ) { if ( m_FullErrors ) { for ( int idx = 0 ; idx < m_OpenSQLDocuments.size() ; idx++ ) { SQLDocument doc = (SQLDocument)m_OpenSQLDocuments.elementAt(idx); SQLWarning warn = doc.checkWarnings(); if ( warn != null ) setError(null, doc, warn); } } return(buildErrorDocument()); }
/** * @param exprContext * @param list * */ public XBooleanStatic connect( ExpressionContext exprContext, NodeList list ) { try { initFromElement( (Element) list.item(0) ); return new XBooleanStatic(true); } catch(SQLException e) { setError(e, exprContext); return new XBooleanStatic(false); } catch (Exception e) { setError(e,exprContext); return new XBooleanStatic(false); } }
/** * @param exprContext * @param list * */ public XBooleanStatic connect( ExpressionContext exprContext, NodeList list ) { try { initFromElement( (Element) list.item(0) ); return new XBooleanStatic(true); } catch(SQLException e) { setError(e, exprContext); return new XBooleanStatic(false); } catch (Exception e) { setError(e,exprContext); return new XBooleanStatic(false); } }
/** * @param exprContext * @param protocolElem * */ public XBooleanStatic connect( ExpressionContext exprContext, Element protocolElem ) { try { initFromElement(protocolElem); return new XBooleanStatic(true); } catch(SQLException e) { setError(e,exprContext); return new XBooleanStatic(false); } catch (Exception e) { setError(e,exprContext); return new XBooleanStatic(false); } }