Package org.exolab.castor.jdo.oql

Examples of org.exolab.castor.jdo.oql.ParseTreeWalker


        }

        TransactionContext trans = ((AbstractDatabaseImpl) _database).getTransaction();
        DbMetaInfo dbInfo = trans.getConnectionInfo(_dbEngine);

        ParseTreeWalker walker = new ParseTreeWalker(_dbEngine, parseTree,
                _database.getClassLoader(), dbInfo);

        _objClass = walker.getObjClass();
        _clsDesc = walker.getClassDescriptor();
        _expr = walker.getQueryExpression();
        _paramInfo = walker.getParamInfo();
        _projectionType = walker.getProjectionType();
        _projectionInfo = walker.getProjectionInfo();

        // create the types array and fill it
        _bindTypes = new Class[_paramInfo.size()];
        int paramIndex = 0;
        for (Enumeration e = _paramInfo.elements(); e.hasMoreElements(); ) {
View Full Code Here


        _dbEngine = _dbImpl.getLockEngine();
        if ( _dbEngine == null )
            throw new QueryException( "Could not get a persistence engine" );

        ParseTreeWalker walker = new ParseTreeWalker(_dbEngine, parseTree, _dbImpl.getClassLoader());

        _objClass = walker.getObjClass();
        _clsDesc = walker.getClassDescriptor();
        _expr = walker.getQueryExpression();
        _paramInfo = walker.getParamInfo();
        _projectionType = walker.getProjectionType();
        _pathInfo = walker.getPathInfo();


        //port param info types back to the format of old bind types.
        //first get the maximum SQL param.
        int max = 0;
View Full Code Here

TOP

Related Classes of org.exolab.castor.jdo.oql.ParseTreeWalker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.