Package com.dotmarketing.business

Examples of com.dotmarketing.business.DotStateException


    return new java.util.ArrayList();
  }

  public static java.util.List getParentsOfClassByConditionSorted(Inode p, Class c, String condition, String sortOrder) {
    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 getParentsOfClass(Inode p, Class c) {
    return getParentsOfClass( p,  c, "");
  }
  public static java.util.List getParentsOfClass(Inode p, Class c, String sortOrder) {
    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

    return new java.util.ArrayList();
  }

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

     */
  }

  public static void deleteInode(Object o) throws DotHibernateException {
    if(Identifier.class.equals(o.getClass())){
      throw new DotStateException("Identifiers are no longer Inodes!");
    }
    Inode inode = (Inode) o;
    if(inode ==null || !UtilMethods.isSet(inode.getInode())){
     
      Logger.error(Inode.class, "Empty Inode Passed in");
View Full Code Here

      db.getResult();
  }

  public static void deleteChildrenOfClass(Inode parent, Class c) {
    if( c.equals(Identifier.class)){
      throw new DotStateException("Identifiers are no longer Inodes!");
    }
    java.util.List children = getChildrenClass(parent, c);
    java.util.Iterator childrenIter = children.iterator();

    while (childrenIter.hasNext()) {
View Full Code Here

    return countChildrenOfClass(i, c, 0, 5);
  }

  public static int countChildrenOfClass(Inode i, 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();
      DotConnect db = new DotConnect();
View Full Code Here

    }
  }

  public static Map<String,Integer> countChildrenOfClass(Inode i, Class<? extends Inode>[] inodeClasses) {
    if(Identifier.class.equals(i.getClass())){
      throw new DotStateException("Identifiers are no longer Inodes!");
    }
    try {
      Map<String,Integer> statistics = new HashMap<String,Integer>();

      if( inodeClasses != null && inodeClasses.length > 0 ) {
View Full Code Here

  }

 
  public static List getChildrenOfClassByRelationType(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 List getChildrenOfClassByRelationTypeAndCondition(String inode, Class c, String relationType,
      String condition, String orderBy) {
    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

    return getInodesOfClassByConditionAndOrderBy(c,condition,orderby,limit,0,direction);
  }

  public static java.util.List getInodesOfClassByConditionAndOrderBy(Class c, String condition, String orderby,int limit,int offset,String direction) {
    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();
      String query = "from inode in class " + c.getName();
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.