/** * Add an untyped value to the parameter list. * @param value * */ public void addParameter( String value ) { addParameterWithType(value, null); }
/** */ public ConnectionPoolManager( ) { init(); }
/** * @param exprContext * @param driver * @param dbURL */ public XConnection( ExpressionContext exprContext, String driver, String dbURL ) { connect(exprContext, driver, dbURL); }
/** * Build up an Error Exception with just the Standard Error Information * @param mgr * @param ident * @param error */ public SQLErrorDocument( DTMManager mgr, int ident, Exception error ) { super(mgr, ident); createExpandedNameTable(); buildBasicStructure(error); }
/** * 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); }
/** * @param v The parameter value. * @param t The type of the parameter. */ public QueryParameter( String v, String t ) { m_name = null; m_value = v; m_output = false; setTypeName(t); }
/** */ public ObjectArray( ) { // // Default constructor will work with a minimal fixed size // init(10); }
/** * The SQLStatement Parser will be created as a psuedo SINGLETON per * XConnection. Since we are only caching the Query and its parsed results * we may be able to use this as a real SINGLETON. It all depends on how * Statement Caching will play out. */ public SQLQueryParser() { init(); }
/** Used to set the parameter type when the type information is provided in the query. * @param newType The parameter type. * */ public void setTypeName( String newType ) { m_type = map_type(newType); m_typeName = newType; }
/** * @param size * */ private void init( int size ) { m_minArraySize = size; m_currentArray = new _ObjectArray(m_minArraySize); }
/** * A common routine that allocates an Object from the Object Array. * One of the common bugs in this code was to allocate an Object and * not incerment m_size, using this method will assure that function. * @param o * */ private int allocateNodeObject( Object o ) { // Need to keep this counter going even if we don't use it. m_size++; return m_ObjectArray.append(o); }
/** * See enableDefaultConnectionPool * * @deprecated Use setFeature("default-pool-enabled", "false"); */ public void disableDefaultConnectionPool( ) { if (DEBUG) System.out.println("Disabling Default Connection Pool"); m_DefaultPoolingEnabled = false; if (m_ConnectionPool == null) return; if (!m_IsDefaultPool) return; m_ConnectionPool.setPoolEnabled(false); }
/** * */ protected void finalize( ) { if (DEBUG) System.out.println("In XConnection, finalize"); try { close(); } catch(Exception e) { // Empty We are final Anyway } }
/** * Execute a parameterized query statement by instantiating an * @param exprContext * @param queryString the SQL query. * @return XStatement implements NodeIterator. * @throws SQLException * @link org.apache.xalan.lib.sql.XStatement XStatement} * object. The XStatement executes the query, and uses the result set * to create a * @link org.apache.xalan.lib.sql.RowSet RowSet}, * a row-set element. */ public DTM pquery( ExpressionContext exprContext, String queryString ) { return(pquery(exprContext, queryString, null)); }
/** * @param exprContext * @param driver * @param dbURL * @param protocolElem */ public XConnection( ExpressionContext exprContext, String driver, String dbURL, Element protocolElem ) { connect(exprContext, driver, dbURL, protocolElem); }
public QueryParameter( String name, String value, String type, boolean out_flag ) { m_name = name; m_value = value; m_output = out_flag; setTypeName(type); }
/** * @param minArraySize The size of the Arrays stored in the Vector */ public ObjectArray( final int minArraySize ) { init(minArraySize); }
/** * @param exprContext * @param list */ public XConnection( ExpressionContext exprContext, NodeList list ) { connect(exprContext, list); }
/** * @param exprContext * @param driver * @param dbURL * @param user * @param password */ public XConnection( ExpressionContext exprContext, String driver, String dbURL, String user, String password ) { connect(exprContext, driver, dbURL, user, password); }
/** * Constructs a new XConnection and attempts to connect to a datasource as * defined in the * <code>connect(ExpressionContext exprContext, String connPoolName)</code> * method. * <code>org.apache.xalan.lib.sql.ConnectionPool</code> or a JNDI datasource. * * @param exprContext Context automatically passed from the XSLT sheet. * @param name The name of the ConnectionPool or the JNDI DataSource path. * */ public XConnection( ExpressionContext exprContext, String connPoolName ) { connect(exprContext, connPoolName); }