Examples of Platform


Examples of net.sf.saxon.Platform

        }
        flags = makeAttributeValueTemplate(flagsAtt);

        if (regex instanceof StringLiteral && flags instanceof StringLiteral) {
            try {
                final Platform platform = Configuration.getPlatform();
                final CharSequence regex = ((StringLiteral)this.regex).getStringValue();
                final CharSequence flagstr = ((StringLiteral)flags).getStringValue();
                final int xmlVersion = getConfiguration().getXMLVersion();
                int flagBits = JRegularExpression.setFlags(flagstr);
                pattern = new JRegularExpression(regex, xmlVersion, RegularExpression.XPATH_SYNTAX, flagBits);
View Full Code Here

Examples of npanday.model.compiler.plugins.Platform

            List platforms = plugin.getPlatforms();
            for ( Iterator j = platforms.iterator(); j.hasNext(); )
            {
                CompilerCapability platformCapability =
                    (CompilerCapability) CompilerCapability.Factory.createDefaultExecutableCapability();
                Platform platform = (Platform) j.next();
                String os = platform.getOperatingSystem();

                platformCapability.setLanguage( language );
                platformCapability.setOperatingSystem( os );
                platformCapability.setPluginClassName( pluginClassName );
                platformCapability.setExecutable( executable );
                platformCapability.setIdentifier( identifier );
                platformCapability.setFrameworkVersions( frameworkVersions );
                platformCapability.setProfile( profile );
                platformCapability.setAssemblyPath( defaultAssemblyPath );
                String arch = platform.getArchitecture();
                CommandFilter filter = plugin.getCommandFilter();
                platformCapability.setCoreAssemblies( coreAssemblies );

                platformCapability.setNetDependencyId( plugin.getNetDependencyId());
View Full Code Here

Examples of objects.Platform

  }
  public static void newLevel() {
    switch (level++) {
    case 1:
      platforms = new Platform[] {
          new Platform(0, Constants.getHeight()-20, Constants.getWidth(), 20, -1),
          new Platform(200, Constants.getHeight()-Shifter.getMaxJumpHeight()*4+40, 25, Constants.getHeight()+180, 0),
          new Platform(0, Constants.getHeight()-Shifter.getMaxJumpHeight(), 200-Shifter.WIDTH*2, 20, 0),
          new Platform(Shifter.WIDTH*2, Constants.getHeight()-Shifter.getMaxJumpHeight()*2+20, 200-Shifter.WIDTH*2, 20, 0),
          new Platform(0, Constants.getHeight()-Shifter.getMaxJumpHeight()*3+40, 200-Shifter.WIDTH*2, 20, 0),
          new Platform(Shifter.WIDTH*2, Constants.getHeight()-Shifter.getMaxJumpHeight()*4+40, 200-Shifter.WIDTH*2, 20, 0),
          new Platform(0, Constants.getHeight()-Shifter.getMaxJumpHeight()*4-Shifter.HEIGHT*2, Constants.getWidth(), 20, 0)
      };
      portals = new Portal[] {
          new FinishPortal(Constants.getWidth()-FinishPortal.DIAMETER-20, Constants.getHeight()-20-FinishPortal.DIAMETER-10, 0)
      };
      break;
View Full Code Here

Examples of oracle.toplink.essentials.internal.databaseaccess.Platform

    /*
     * Set the table qualifier on the reference table if required
     */
    protected void initializeReferenceTable(AbstractSession session) throws DescriptorException {
        Platform platform = session.getDatasourcePlatform();

        if (getReferenceTable() == null) {
            throw DescriptorException.referenceTableNotSpecified(this);
        }

        if (platform.getTableQualifier().length() == 0) {
            return;
        }

        if (getReferenceTable().getTableQualifier().length() == 0) {
            getReferenceTable().setTableQualifier(platform.getTableQualifier());
        }
    }
View Full Code Here

Examples of org.apache.ddlutils.Platform

              generator.addTable(c);
            }
            // get the Database model
      Database database = generator.getDatabase();
 
      Platform platform = PlatformFactory.createNewPlatformInstance(ddlType);
      platform.setDataSource(DB.datasource);
      // siena.ddl can have create/update/ddl
      // if siena.ddl is defined, uses it
      // if not:
      // in dev mode, will be update by default
      // in prod mode, will be none by default
      String ddl = "none";
      if(Play.mode.isDev()){
        ddl = Play.configuration.getProperty("siena.ddl", "update");
        Logger.debug("Siena DDL dev mode: %s", ddl);
      }else if(Play.mode.isProd()){
        ddl = Play.configuration.getProperty("siena.ddl", "none");
        Logger.debug("Siena DDL prod mode: %s", ddl);       
      }

      if("create".equals(ddl)){
          if(Logger.isDebugEnabled()) {
              Logger.debug("Siena DDL Generator SQL: %s", platform.getCreateModelSql(database, false, false));
          }
        // creates tables and do not drop tables and do not continues on error
        try {
          platform.createModel(connection, database, false, false);
        }catch(DatabaseOperationException ex){
          Logger.warn("Siena DDL createTables generated exception:%s", ex.getCause()!=null?ex.getCause():ex.getMessage());
        }
      }else if("update".equals(ddl)){
        Database currentDatabase = platform.readModelFromDatabase(connection, ddlType);
       
        if(!disableJPA){
          // Remove from the current schema those tables that are not known by Siena,
            // since they're likely to be JPA classes.
            // Iterate in reverse order since removeTable() changes the list size.
            for (int i = currentDatabase.getTableCount() - 1; i >= 0; i--) {
                Table table = currentDatabase.getTable(i);
                if(database.findTable(table.getName(), false) == null){
                    Logger.debug("Keeping existing table %s", table.getName());
                    currentDatabase.removeTable(i);
                }
            }
        }
       
        if(Logger.isDebugEnabled()){
            Logger.debug("Siena DDL Generator SQL: %s", platform.getAlterModelSql(currentDatabase, database));
        }

                // alters tables and continues on error
        platform.alterModel(currentDatabase, database, true);
      }
     
      // activate lifecycle or not
      if(useLifecycle()){
        Logger.debug("Siena activating lifecycle management");
View Full Code Here

Examples of org.apache.ddlutils.Platform

      }
 
      // get the Database model
      Database database = generator.getDatabase();
 
      Platform platform = PlatformFactory.createNewPlatformInstance("postgresql");
      Class.forName(driver);
      Connection connection = DriverManager.getConnection(url, username, password);
     
      System.out.println(platform.getAlterTablesSql(connection, database));
     
      // this will perform the database changes
      platform.alterTables(connection, database, true);
 
      connection.close();
     
      pm = new PostgresqlPersistenceManager();
      pm.init(p);
View Full Code Here

Examples of org.apache.ddlutils.Platform

      }
 
      // get the Database model
      Database database = generator.getDatabase();
 
      Platform platform = PlatformFactory.createNewPlatformInstance(dataSource);
      Class.forName("org.drizzle.jdbc.DrizzleDriver");
      Connection connection = DriverManager.getConnection(url);
     
      System.out.println(platform.getAlterTablesSql(connection, database));
     
      // this will perform the database changes
      platform.alterTables(connection, database, true);
 
      connection.close();
     
      pm = new JdbcPersistenceManager();
      pm.init(p);
View Full Code Here

Examples of org.apache.ddlutils.Platform

      }
 
      // get the Database model
      Database database = generator.getDatabase();
 
      Platform platform = PlatformFactory.createNewPlatformInstance("postgresql");
      Class.forName(driver);
      Connection connection = DriverManager.getConnection(url, username, password);
     
      System.out.println(platform.getAlterTablesSql(connection, database));
     
      // this will perform the database changes
      platform.alterTables(connection, database, true);
 
      connection.close();
     
      pm = new PostgresqlPersistenceManager();
      pm.init(p);
View Full Code Here

Examples of org.apache.ddlutils.Platform

      }
 
      // get the Database model
      Database database = generator.getDatabase();
 
      Platform platform = PlatformFactory.createNewPlatformInstance("mysql");
      Class.forName(driver);
      //JdbcDataSource ds = new JdbcDataSource();
      //ds.setURL(url);
      //Connection connection = ds.getConnection();
      Connection connection = DriverManager.getConnection(url, username, password);
     
      System.out.println(platform.getAlterTablesSql(connection, database));
     
      // this will perform the database changes
      platform.alterTables(connection, database, true);
 
      connection.close();
     
      pm = new H2PersistenceManager();
      pm.init(p);
View Full Code Here

Examples of org.apache.ddlutils.Platform

      }
 
      // get the Database model
      Database database = generator.getDatabase();
 
      Platform platform = PlatformFactory.createNewPlatformInstance("mysql");
      Class.forName("com.mysql.jdbc.Driver");
      Connection connection = DriverManager.getConnection(url, username, password);
     
      System.out.println(platform.getAlterTablesSql(connection, database));
     
      // this will perform the database changes
      platform.alterTables(connection, database, true);
 
      connection.close();
     
      pm = new JdbcPersistenceManager();
      pm.init(p);
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.