Examples of loadAsArray()


Examples of railo.runtime.orm.ORMSession.loadAsArray()

public class EntityLoad {
 
  public static Object call(PageContext pc, String name) throws PageException {
   
    ORMSession session=ORMUtil.getSession(pc);
    return session.loadAsArray(pc,name,new StructImpl());
  }
 
  public static Object call(PageContext pc, String name,Object idOrFilter) throws PageException {
    return call(pc, name, idOrFilter, Boolean.FALSE);
  }
View Full Code Here

Examples of railo.runtime.orm.ORMSession.loadAsArray()

      if(Decision.isCastableToBoolean(uniqueOrOptions)){
        // id,unique=true
        if(Caster.toBooleanValue(uniqueOrOptions))
          return session.load(pc,name, Caster.toString(idOrFilter));
        // id,unique=false
        return session.loadAsArray(pc,name, Caster.toString(idOrFilter));
      }
      else if(Decision.isString(uniqueOrOptions)){
        return session.loadAsArray(pc,name,Caster.toString(idOrFilter),Caster.toString(uniqueOrOptions));
      }
     
View Full Code Here

Examples of railo.runtime.orm.ORMSession.loadAsArray()

          return session.load(pc,name, Caster.toString(idOrFilter));
        // id,unique=false
        return session.loadAsArray(pc,name, Caster.toString(idOrFilter));
      }
      else if(Decision.isString(uniqueOrOptions)){
        return session.loadAsArray(pc,name,Caster.toString(idOrFilter),Caster.toString(uniqueOrOptions));
      }
     
      // id,options
      return session.loadAsArray(pc,name,Caster.toString(idOrFilter));
    }
View Full Code Here

Examples of railo.runtime.orm.ORMSession.loadAsArray()

      else if(Decision.isString(uniqueOrOptions)){
        return session.loadAsArray(pc,name,Caster.toString(idOrFilter),Caster.toString(uniqueOrOptions));
      }
     
      // id,options
      return session.loadAsArray(pc,name,Caster.toString(idOrFilter));
    }
   
    // filter,[unique|sortorder]
    if(Decision.isSimpleValue(uniqueOrOptions)){
      // filter,unique
View Full Code Here

Examples of railo.runtime.orm.ORMSession.loadAsArray()

    if(Decision.isSimpleValue(uniqueOrOptions)){
      // filter,unique
      if(Decision.isBoolean(uniqueOrOptions)){
        if(Caster.toBooleanValue(uniqueOrOptions))
          return session.load(pc,name,Caster.toStruct(idOrFilter));
        return session.loadAsArray(pc,name,Caster.toStruct(idOrFilter));
      }
      // filter,sortorder
      return session.loadAsArray(pc,name,Caster.toStruct(idOrFilter),(Struct)null,Caster.toString(uniqueOrOptions));
    }
    // filter,options
View Full Code Here

Examples of railo.runtime.orm.ORMSession.loadAsArray()

        if(Caster.toBooleanValue(uniqueOrOptions))
          return session.load(pc,name,Caster.toStruct(idOrFilter));
        return session.loadAsArray(pc,name,Caster.toStruct(idOrFilter));
      }
      // filter,sortorder
      return session.loadAsArray(pc,name,Caster.toStruct(idOrFilter),(Struct)null,Caster.toString(uniqueOrOptions));
    }
    // filter,options
    return session.loadAsArray(pc,name,Caster.toStruct(idOrFilter),Caster.toStruct(uniqueOrOptions));
  }
 
View Full Code Here

Examples of railo.runtime.orm.ORMSession.loadAsArray()

      }
      // filter,sortorder
      return session.loadAsArray(pc,name,Caster.toStruct(idOrFilter),(Struct)null,Caster.toString(uniqueOrOptions));
    }
    // filter,options
    return session.loadAsArray(pc,name,Caster.toStruct(idOrFilter),Caster.toStruct(uniqueOrOptions));
  }
 
 
 
  public static Object call(PageContext pc, String name,Object filter, Object order, Object options) throws PageException {
View Full Code Here

Examples of railo.runtime.orm.ORMSession.loadAsArray()

 
 
 
  public static Object call(PageContext pc, String name,Object filter, Object order, Object options) throws PageException {
    ORMSession session=ORMUtil.getSession(pc);
    return session.loadAsArray(pc,name,Caster.toStruct(filter),Caster.toStruct(options),Caster.toString(order));
  }
}
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.