Package com.dotmarketing.business

Examples of com.dotmarketing.business.DotStateException


    return getChildrenClassOrderByRandom(p, c, 0, 0);
  }

  public static java.util.List getChildrenClassOrderByRandom(Inode p, Class c, int limit, int offset) {
    if( c.equals(Identifier.class)){
      throw new DotStateException("Identifiers are no longer Inodes!");
    }
    try {
      String tableName = ((Inode) c.newInstance()).getType();
      HibernateUtil dh = new HibernateUtil(c);
View Full Code Here


  public static java.util.List getChildrenClassByCondition(String p1, String p2, Class c, String condition, int limit,
      int offset) {
    try {
      if( c.equals(Identifier.class)){
        throw new DotStateException("Identifiers are no longer Inodes!");
      }
      String tableName = ((Inode) c.newInstance()).getType();
      HibernateUtil dh = new HibernateUtil(c);

      String sql = "SELECT {" + tableName + ".*} from " + tableName + " " + tableName
View Full Code Here

  }

  public static java.util.List getChildrenClassByConditionAndOrderBy(String[] inodes, Class c, String condition,
      String orderBy) {
    if( c.equals(Identifier.class)){
      throw new DotStateException("Identifiers are no longer Inodes!");
    }
    if (inodes == null || inodes.length == 0) {
      return InodeFactory.getInodesOfClassByConditionAndOrderBy(c, condition, orderBy);
    }
View Full Code Here

  }

  public static java.util.List getChildrenClassByConditionAndOrderBy(String p1, String p2, Class c, String condition,
      String orderBy, int limit, int offset) {
    if( c.equals(Identifier.class)){
      throw new DotStateException("Identifiers are no longer Inodes!");
    }
    try {
      String tableName = ((Inode) c.newInstance()).getType();
      HibernateUtil dh = new HibernateUtil(c);
View Full Code Here

  }

  public static java.util.List getChildrenClassByConditionAndOrderBy(List inodes, Class c, String condition,
      String orderBy, int limit, int offset) {
    if( c.equals(Identifier.class)){
      throw new DotStateException("Identifiers are no longer Inodes!");
    }
    if (inodes == null || inodes.size() == 0) {
      return InodeFactory.getInodesOfClassByConditionAndOrderBy(c, condition, orderBy);

    }
View Full Code Here

  }

  public static java.util.List getChildrenClassByCondition(List inodes, Class c, String condition, int limit,
      int offset) {
    if( c.equals(Identifier.class)){
      throw new DotStateException("Identifiers are no longer Inodes!");
    }

    try {

      String tableName = ((Inode) c.newInstance()).getType();
View Full Code Here

  }

  public static java.util.List getChildrenClassByConditionAndOrderBy(String p, Class c, String condition,
      String orderby, int limit, int offset) {
    if( c.equals(Identifier.class)){
      throw new DotStateException("Identifiers are no longer Inodes!");
    }
    try {
      String tableName = ((Inode) c.newInstance()).getType();
      HibernateUtil dh = new HibernateUtil(c);
View Full Code Here

  }

  public static Inode getInode(String x, Class c) {

    if( c.equals(Identifier.class)){
      throw new DotStateException("Identifiers are no longer Inodes!");
    }else if( c.equals(Folder.class)){
      throw new DotStateException("You should use the FolderAPI to get folder information");
    }else if(c.equals(Inode.class)){
      Logger.debug(InodeFactory.class, "You should not send Inode.class to getInode.  Send the extending class instead (inode:" + x + ")" );
      //Thread.dumpStack();
      DotConnect dc = new DotConnect();
      dc.setSQL("select type from inode where inode = ?");
View Full Code Here

    return (Inode) new HibernateUtil(c).load(x);
  }*/

  public static java.util.List getInodesOfClass(Class c) {
    if( c.equals(Identifier.class)){
      throw new DotStateException("Identifiers are no longer Inodes!");
    }
    return getInodesOfClass(c, 0, 0);
  }
View Full Code Here

    return getInodesOfClass(c, 0, 0);
  }

  public static java.util.List getInodesOfClass(Class c, int limit, int offset) {
    if( c.equals(Identifier.class)){
      throw new DotStateException("Identifiers are no longer Inodes!");
    }
    try {
      HibernateUtil dh = new HibernateUtil(c);
      String type = ((Inode) c.newInstance()).getType();
      dh.setQuery("from inode in class " + c.getName()+" where inode.type='"+type+"'");
View Full Code Here

TOP

Related Classes of com.dotmarketing.business.DotStateException

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.