Package com.dotmarketing.business

Examples of com.dotmarketing.business.DotStateException


    return getInodesOfClassByCondition(c, condition, 0, 0);
  }

  public static java.util.List getInodesOfClassByCondition(Class c, String condition, 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+"' and " + condition);
View Full Code Here


    return new java.util.ArrayList();
  }

  public static Object getInodeOfClassByCondition(Class c, String condition) {
    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+"' and " + condition);
View Full Code Here

  }

  public static java.util.List getInodesOfClassByConditionAndOrderBy(Class c, String condition, String orderby,
      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+"' and " + condition + " order by " + orderby);
View Full Code Here

    return new java.util.ArrayList();
  }

  public static java.util.List getInodesOfClass(Class c, int maxRows) {
    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.setMaxResults(maxRows);
View Full Code Here

    return getInodesOfClass(c, orderBy, 0, 0);
  }

  public static java.util.List getInodesOfClass(Class c, String orderBy, 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+"' order by " + orderBy);
View Full Code Here

    return new java.util.ArrayList();
  }

  public static Object getObject(long x, Class c) {
    if( c.equals(Identifier.class)){
      throw new DotStateException("Identifiers are no longer Inodes!");
    }
    Object obj ;
    try {
      obj = new HibernateUtil(c).load(x);
    } catch (DotHibernateException e) {
View Full Code Here

    return getParentOfClass(String.valueOf(i.getInode()), c);
  }

  public static Object getParentOfClass(String i, Class c) {
    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);
      String sql = "SELECT {" + tableName + ".*} from " + tableName + " " + tableName + ", tree tree, inode "
View Full Code Here

    }
  }

  public static java.util.List getParentsOfClassNoLock(Inode p, Class c) {
    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);
      String sql = "SELECT {" + tableName + ".*} from " + tableName + " " + tableName
View Full Code Here

    return new java.util.ArrayList();
  }

  public static Object getParentOfClassByRelationType(Inode p, Class c, String relationType) {
    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 getParentsOfClassByCondition(Inode p, Class c, String condition) {
    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

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.