Package com.dotmarketing.business.query

Examples of com.dotmarketing.business.query.SQLQueryFactory.execute()


      return systemHost;
    }

    try {
      SQLQueryFactory factory = new SQLQueryFactory("SELECT * FROM Host WHERE isSystemHost = 1");
      List<Map<String, Serializable>> hosts = factory.execute();
      if(hosts.size() == 0) {
        createSystemHost();
      } else {
        systemHost = new Host(conFac.find((String)hosts.get(0).get("inode")));
      }
View Full Code Here


  private synchronized Host createSystemHost() throws DotDataException,
  DotSecurityException {

    SQLQueryFactory factory = new SQLQueryFactory("SELECT * FROM Host WHERE isSystemHost = 1");
    List<Map<String, Serializable>> hosts = factory.execute();
    User systemUser = APILocator.getUserAPI().getSystemUser();
    if(hosts.size() == 0) {
      Host systemHost = new Host();
      systemHost.setDefault(false);
      systemHost.setHostname("system");
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.