Examples of PersistenceEngine


Examples of jfix.db4o.engine.PersistenceEngine

   * File.separator, the given database-name will be used as default directory
   * for the database-file.
   */
  public static void open(String database) {
    try {
      PersistenceEngine engine = (PersistenceEngine) Class.forName(
          persistenceEngineClassName).newInstance();
      engine.open(database);
      odb = new ObjectDatabase(engine);
      odb.open();
    } catch (Exception e) {
      e.printStackTrace();
      throw new RuntimeException(e);
View Full Code Here

Examples of org.boxsql.persistenceEngine.PersistenceEngine

  }

  public BoxSQL(String fileName, Connection conn) {
    GlobalSettings.setGlobalSettings(fileName);
    te = new TemplateEngine();
    pe = new PersistenceEngine(conn);
  }
View Full Code Here

Examples of org.boxsql.persistenceEngine.PersistenceEngine

  }

  public BoxSQL(String fileName) {
    GlobalSettings.setGlobalSettings(fileName);
    te = new TemplateEngine();
    pe = new PersistenceEngine();
  }
View Full Code Here

Examples of org.boxsql.persistenceEngine.PersistenceEngine

    te = null;
    pe = null;
  }

  public final Connection getConnection() {
    pe = pe != null ? pe : new PersistenceEngine();
    return pe.getConn();

  }
View Full Code Here

Examples of org.freezedry.persistence.PersistenceEngine

//      e.printStackTrace();
//    }
   
//    final int[] test = new int[] { 3, 1, 4, 1, 5, 9, 2, 6, 5, 3 };
    final int[][] test = new int[][] { { 3, 1 }, { 4, 1 }, { 5, 9 }, { 2, 6 }, { 5, 3 } };
    final PersistenceEngine engine = new PersistenceEngine();
    final InfoNode rootNode = engine.createSemanticModel( test );
    System.out.println( rootNode.treeToString() );

    try( final PrintWriter printWriter = new PrintWriter( new FileWriter( "test.xml" ) ) )
    {
      final XmlWriter writer = new XmlWriter();
View Full Code Here

Examples of org.freezedry.persistence.PersistenceEngine

    final InputStream inputStream = new BufferedInputStream( new FileInputStream( "test.xml" ) );
    final Reader input = new InputStreamReader( inputStream );
    final InfoNode infoNode = reader.read( inputClazz, input );
    System.out.println( infoNode.simpleTreeToString() );
   
    final PersistenceEngine engine = new PersistenceEngine();
    final Object reperson = engine.parseSemanticModel( inputClazz, infoNode );
    System.out.println( reperson );
  }
View Full Code Here

Examples of org.freezedry.persistence.PersistenceEngine

    final JsonReader reader = new JsonReader();
    final Class< ? > inputClazz = int[].class;
    final InfoNode infoNode = reader.read( inputClazz, input );
    System.out.println( infoNode.simpleTreeToString() );
   
    final PersistenceEngine engine = new PersistenceEngine();
    final Object reperson = engine.parseSemanticModel( inputClazz, infoNode );
    System.out.println( reperson );
  }
View Full Code Here

Examples of pt.webdetails.cpf.persistence.PersistenceEngine

    }
  };

  private ViewEngine() {
    // initialize orientDb and initialize org.pentaho.cdf.views.View
    PersistenceEngine pe = PersistenceEngine.getInstance();
    if ( !pe.classExists( View.class.getName() ) ) {
      pe.initializeClass( View.class.getName() );
    }
  }
View Full Code Here

Examples of pt.webdetails.cpf.persistence.PersistenceEngine

    try {
      JSONObject json = new JSONObject( view );
      viewObj.fromJSON( json );
      viewObj.setUser( user );
      PersistenceEngine pe = PersistenceEngine.getInstance();
      pe.store( viewObj );
    } catch ( JSONException e ) {
      logger.error( e );
      return RESULT_ERROR;
    }
    return RESULT_OK;
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.