Examples of SQLEngine


Examples of org.boxsql.persistenceEngine.SQLEngine

   * @param clazz
   *            Class to bind object to.
   * @return List
   */
  public final List getList(final Class className) {
    SQLEngine sql = new SQLEngine();
    return pe.getList(sql.getSelect(className), className);
  }
View Full Code Here

Examples of org.boxsql.persistenceEngine.SQLEngine

   *           Object to persisti
   *
   * @return int
   */
  public final int executeAutoUpdate(final Object obj) {
    SQLEngine sql = new SQLEngine();
    return pe.update(sql.getUpdate(obj));
  }
View Full Code Here

Examples of org.exolab.castor.jdo.engine.SQLEngine

        }

        ClassMolder clsMold = (ClassMolder) _clsMolders.get(extName);
        if (clsMold != null) {
            me.setExtends(clsMold);
            SQLEngine sql = ((SQLEngine) me.getPersistence());
            if (sql == null) {
                throw new MappingException(
                        "Class " + me + " extends on " + extName
                        + " which is not persistence capable!");
            }
            sql.setExtends((SQLEngine) clsMold.getPersistence());
            return true;
        }

        if (_needExtendsClassMolder == null) {
            _needExtendsClassMolder = new Vector();
View Full Code Here

Examples of org.exolab.castor.jdo.engine.SQLEngine

        }
       
        try {
            Persistence sqlEngine = (SQLEngine) _classDescriptorToPersistence.get(clsDesc);
            if (sqlEngine == null) {
                sqlEngine = new SQLEngine(clsDesc, this, null);
                _classDescriptorToPersistence.put(clsDesc, sqlEngine);
            }
            return sqlEngine;
        } catch (MappingException except) {
            _log.fatal(Messages.format("jdo.fatalException", except));
View Full Code Here

Examples of org.exolab.castor.jdo.engine.SQLEngine

            throw new IllegalArgumentException("Null classname not allowed!");

        ClassMolder clsMold = (ClassMolder) clsMolders.get( extName );
        if ( clsMold != null ) {
            me.setExtends( clsMold );
            SQLEngine sql = ((SQLEngine)me.getPersistence());
            if ( sql == null )
                throw new MappingException("Class "+me+" extends on "+extName+" which is not persistence capable!");
            sql.setExtends((SQLEngine)clsMold.getPersistence() );
            return true;
        }

        if ( needExtendsClassMolder == null )
            needExtendsClassMolder = new Vector();
View Full Code Here

Examples of org.exolab.castor.jdo.engine.SQLEngine

        throws MappingException
    {
        if ( ! ( clsDesc instanceof JDOClassDescriptor ) )
            return null;
        try {
            return new SQLEngine( (JDOClassDescriptor) clsDesc, logInterceptor, this, null);
        } catch ( MappingException except ) {
            if ( logInterceptor != null )
                logInterceptor.exception( except );
            return null;
        }
View Full Code Here

Examples of org.exolab.castor.jdo.engine.SQLEngine

            throw new IllegalArgumentException("Null classname not allowed!");

        ClassMolder clsMold = (ClassMolder) clsMolders.get( extName );
        if ( clsMold != null ) {
            me.setExtends( clsMold );
            SQLEngine sql = ((SQLEngine)me.getPersistence());
            if ( sql == null )
                throw new MappingException("Class "+me+" extends on "+extName+" which is not persistence capable!");
            sql.setExtends((SQLEngine)clsMold.getPersistence() );
            return true;
        }

        if ( needExtendsClassMolder == null )
            needExtendsClassMolder = new Vector();
View Full Code Here

Examples of org.gdbms.parser.SQLEngine

    while (!sql.equals("quit")) {
      long t1 = System.currentTimeMillis();
      ByteArrayInputStream bytes = new ByteArrayInputStream(sql
          .getBytes());
      SQLEngine parser = new SQLEngine(bytes);

      try {
        parser.SQLStatement();

        Node root = parser.getRootNode();
        Adapter rootAdapter = Utilities.buildTree(root.jjtGetChild(0),
            sql, ds);

        ParseTreeFrame parseTree = new ParseTreeFrame();
        parseTree.setTreeModel(new GDBMSParseTreeModel(
View Full Code Here

Examples of org.gdbms.parser.SQLEngine

   *             If the execution of the statement fails
   */
  public DataSource executeSQL(String sql) throws SyntaxException,
      DriverLoadException, NoSuchTableException, ExecutionException {
    ByteArrayInputStream bytes = new ByteArrayInputStream(sql.getBytes());
    SQLEngine parser = new SQLEngine(bytes);

    try {
      parser.SQLStatement();
    } catch (ParseException e) {
      throw new SyntaxException(e);
    }

    Node root = parser.getRootNode();
    Adapter rootAdapter = Utilities.buildTree(root.jjtGetChild(0), sql,
        this);

    Utilities.simplify(rootAdapter);

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.