Examples of Platform


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").newInstance();
      Connection connection = DriverManager.getConnection(url, username, password);
     
      System.out.println(platform.getAlterTablesSql(connection, database));
     
      // this will perform the database changes
      CreationParameters cp = new CreationParameters();
      // to search, it requires MyISAM
      cp.addParameter(database.findTable("discoveries_search"), "ENGINE", "MyISAM");
      cp.addParameter(database.findTable("discoveries_search2"), "ENGINE", "MyISAM");

      platform.alterTables(connection, database, cp, true);
     
 
      connection.close();
     
      pm = new JdbcPersistenceManager();
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

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").newInstance();
      Connection connection = DriverManager.getConnection(url, username, password);
     
      System.out.println(platform.getAlterTablesSql(connection, database));
     
      // this will perform the database changes
      CreationParameters cp = new CreationParameters();
      // to search, it requires MyISAM
      cp.addParameter(database.findTable("discoveries_search"), "ENGINE", "MyISAM");
      cp.addParameter(database.findTable("discoveries_search2"), "ENGINE", "MyISAM");

      platform.alterTables(connection, database, cp, 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.ojb.broker.platforms.Platform

    public void setUp() throws Exception
    {
        super.setUp();

        Platform platform = broker.serviceConnectionManager().getSupportedPlatform();
        /*
        hsqldb does not support Blob/Clob, so we skip test for this DB
        */
        if(platform.getClass().equals(PlatformHsqldbImpl.class))
        {
            skipTest = true;
        }
    }
View Full Code Here

Examples of org.apache.torque.templates.platform.Platform

            ControllerState controllerState,
            String size,
            String scale,
            String defaultValue)
    {
        Platform platform = PlatformFactory.getPlatformFor(
                controllerState.getStringOption(TemplateOptionName.DATABASE));
        SqlType platformSqlType = platform.getSqlTypeForSchemaType(schemaType);
        if (domainType != null)
        {
            if (size == null)
            {
                size = domainType.getSize();
View Full Code Here

Examples of org.applause.lang.applauseDsl.Platform

  public void hasPlatformTypeMapping(final CharSequence sequence, final String typeName, final String mappedName) {
    try {
      final Model model = this._parseHelper.parse(sequence);
      EList<NamedElement> _elements = model.getElements();
      Iterable<Platform> _filter = Iterables.<Platform>filter(_elements, Platform.class);
      final Platform platform = IterableExtensions.<Platform>head(_filter);
      EList<PlatformMapping> _mappings = platform.getMappings();
      PlatformMapping _head = IterableExtensions.<PlatformMapping>head(_mappings);
      final TypeMapping platformMapping = ((TypeMapping) _head);
      DataType _type = platformMapping.getType();
      String _name = _type.getName();
      Matcher<String> _is = CoreMatchers.<String>is("String");
View Full Code Here

Examples of org.codehaus.mojo.appassembler.daemon.script.Platform

                }
                else
                {
                    try
                    {
                        Platform platform = Platform.getInstance( platformName );
                        platform.setBinFileExtension( (String) binFileExtensions.get( platformName ) );
                    }
                    catch ( DaemonGeneratorException e )
                    {
                        getLog().warn( "Unable to set the bin file extension for " + platformName, e );
                    }
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.