Package de.innovationgate.webgate.api.servers

Examples of de.innovationgate.webgate.api.servers.DatabaseInformation


                   boolean accept = true;
                   if (filter != null) {
                     accept = filter.accept(con);
                   }                                    
                   if (accept) {
                       DatabaseInformation info = new DatabaseInformation(null);
                       info.getOptions().put(Database.OPTION_PATH, dbName);
                       info.setLocation(dbName);
                       dbs.add(info);
                   }
               }
               return dbs;
            }
View Full Code Here


      return createJDBCConnection(null);
    }

    public DatabaseInformation createJDBCDatabase(Map<String, String> options, InputStream ddl) throws WGBackendException {
      String path = options.get(Database.OPTION_PATH);
        DatabaseInformation info = new DatabaseInformation(null);
        info.getOptions().put(Database.OPTION_PATH, path);
        info.setLocation(path);
     
        List<DatabaseInformation> dbs = null;
    try {
      dbs = getAvailableJDBCDatabases((DatabaseFilter)null);
    } catch (WGAPIException e) {
View Full Code Here

                catch (SQLException e) {
                    throw new WGInvalidDatabaseException("Exception when closing connection: " + e.getClass().getName() + " - " + e.getMessage());
                }
            }
           
            DatabaseInformation info = new DatabaseInformation(implClass);
            info.getOptions().put(Database.OPTION_PATH, path);
            info.setLocation(path);
            return info;

           
        }
        catch (Exception e) {
View Full Code Here

                   stmt.execute("use `" + dbName + "`");
                   stmt.close();
                  
                   boolean isDesiredType = (_csOnly ? isContentStore(con) : true);
                   if (isDesiredType == true) {
                       DatabaseInformation info = new DatabaseInformation(WGDatabaseImpl.class);
                       info.getOptions().put(Database.OPTION_PATH, dbName);
                       info.setLocation(dbName);
                       dbs.add(info);
                   }
               }
               return dbs;
            }
View Full Code Here

        else {
            createCustomDB(implClass, dbServer, options);
        }
       
        String path = options.get(Database.OPTION_PATH);
        DatabaseInformation dbInfo = new DatabaseInformation(implClass);
        dbInfo.setLocation(path);
        dbInfo.getOptions().put(Database.OPTION_PATH, path);
        return dbInfo;
       
    }
View Full Code Here

                        continue;
                    }
                }
               

                DatabaseInformation dbInfo = new DatabaseInformation(WGDatabaseImpl.class);
                dbInfo.setLocation(dbName);
                dbInfo.getOptions().put(Database.OPTION_PATH, dbName);
                dbs.add(dbInfo);
            }
        }
       
        return dbs;
View Full Code Here

TOP

Related Classes of de.innovationgate.webgate.api.servers.DatabaseInformation

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.