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);