001 package railo.runtime.functions.orm; 002 003 import railo.runtime.PageContext; 004 import railo.runtime.exp.PageException; 005 import railo.runtime.orm.ORMEngine; 006 import railo.runtime.orm.ORMUtil; 007 import railo.runtime.type.Array; 008 import railo.runtime.type.ArrayImpl; 009 010 public class EntityNameArray{ 011 012 public static Array call(PageContext pc) throws PageException { 013 ORMEngine engine = ORMUtil.getSession(pc).getEngine(); 014 return new ArrayImpl(engine.getEntityNames()); 015 } 016 }