Deprecated API


Contents
Deprecated Interfaces
railo.runtime.op.Printable
          this interface is replaced with interface Dumpable 
railo.runtime.type.UserDefinedFunction
          replaced with UDF 
 

Deprecated Classes
railo.runtime.functions.component.ComponentInfo
          use function GetMetaData instead 
railo.runtime.functions.system.FileExists
          replace with railo.runtime.functions.file.FileExists 
railo.transformer.bytecode.visitor.ForConditionIntVisitor
          replaced with ForIntVisitor 
railo.runtime.functions.system.GetFileFromPath
          replaced wih #GetFileFromPath 
railo.runtime.type.List
          BACKCOMP this class only exists for backward compatibility to code genrated for .ra files, DO NOT USE 
railo.runtime.functions.dateTime.NowServer
          removed with no replacement 
railo.runtime.search.lucene2.query.Simple
          no longer in use The simple query is the default query type and is appropriate for the vast majority of searches. When entering text on a search form, you perform a simple query by entering a word or comma-delimited strings, with optional wildcard characters. Verity treats each comma as a logical OR. If you omit the commas, Verity treats the expression as a phrase. 
railo.runtime.functions.dynamicEvaluation.UnserializeJava
          use instead EvaluateJava 
railo.commons.lang.URLEncoder
          use instead railo.commons.net.URLEncoder 
 

Deprecated Methods
railo.runtime.search.lucene2.LuceneSearchCollection._getAnalyzer(String)
          see SearchUtil.getAnalyzer(String language); 
railo.runtime.type.Query.addColumn(String, Array)
          use instead Query.addColumn(railo.runtime.type.Collection.Key, Array) 
railo.runtime.type.Query.addColumn(String, Array, int)
          use instead Query.addColumn(railo.runtime.type.Collection.Key, Array, int) 
railo.runtime.debug.DebuggerPro.addQuery(Query, String, String, SQL, int, PageSource, int)
          use instead addQuery(Query query,String datasource,String name,SQL sql, int recordcount, PageSource src,long time) 
railo.runtime.ComponentImpl.afterCall(PageContext, Variables)
          replaced with afterConstructor(PageContext pc, Variables parent) 
railo.runtime.op.Constants.Boolean(boolean)
          use Boolean.valueOf() instead 
railo.runtime.util.VariableUtil.callFunctionWithNamedValues(PageContext, Object, String, Object[])
          use instead callFunctionWithNamedValues(PageContext pc, Object coll, Collection.Key key, Object[] args) 
railo.runtime.util.VariableUtil.callFunctionWithoutNamedValues(PageContext, Object, String, Object[])
          use instead callFunctionWithoutNamedValues(PageContext pc, Object coll, Collection.Key key, Object[] args) 
railo.commons.io.res.Resource.canRead()
          use instead #isReadable() 
railo.commons.io.res.Resource.canWrite()
          use instead #isWriteable() 
railo.runtime.PageContext.compile(String)
          use instead compile(PageSource pageSource) 
railo.runtime.type.Collection.containsKey(String)
          use instead Collection.containsKey(railo.runtime.type.Collection.Key) 
railo.runtime.util.Excepton.createCustomTypeException(String, String, String, String)
          use instead createCustomTypeException(String message, String detail, String errorcode, String customType, String extendedInfo); 
railo.runtime.util.Excepton.createFunctionException(PageContext, String, String, String, String)
          use instead createFunctionException(PageContext pc,String functionName, int badArgumentPosition, String badArgumentName, String message, String detail)) 
railo.commons.io.res.Resource.createNewFile()
          use instead #createFile(boolean) 
railo.runtime.util.Creation.createQuery(DatasourceConnection, SQL, int, String)
          replaced with Creation.createQuery(DatasourceConnection, SQL, int, int, int, String) 
railo.runtime.util.Creation.createQuery(String[], int, String)
          usse instead createQuery(Collection.Key[] columns, int rows, String name) 
railo.commons.io.res.Resource.delete()
          replaced with method remove(boolean) 
railo.runtime.PageContext.doInclude(PageSource)
          use other doInclude methods 
railo.commons.net.URLEncoder.encode(String)
          The resulting string may vary depending on the platform's default encoding. Instead, use the encode(String,String) method to specify the encoding. 
railo.runtime.type.Query.executionTime()
          use getExecutionTime() instead 
railo.runtime.type.util.ListUtil.first(String, String)
          use instead first(String list, String delimiter, boolean ignoreEmpty) 
railo.runtime.type.QueryColumn.get(int)
          use instead get(int row, Object defaultValue) 
railo.runtime.PageContext.get(Object, String)
          use instead PageContext.get(Object, railo.runtime.type.Collection.Key) 
railo.runtime.PageContext.get(Object, String, Object)
          use instead PageContext.get(Object, railo.runtime.type.Collection.Key, Object) 
railo.runtime.util.VariableUtil.get(PageContext, Object, String, Object)
          use instead get(PageContext pc, Object coll, Collection.Key key, Object defaultValue); 
railo.runtime.type.Collection.get(String)
          use instead Collection.get(railo.runtime.type.Collection.Key) 
railo.runtime.type.Collection.get(String, Object)
          use instead Collection.get(railo.runtime.type.Collection.Key, Object) 
railo.runtime.exp.IPageException.getAddional()
          use instead getAdditional(); 
railo.runtime.type.scope.ScopeContext.getAllSessionScopes(PageContext, String)
          use instead getAllSessionScopes(String appName) 
railo.runtime.type.Query.getAt(String, int)
          use instead Query.getAt(railo.runtime.type.Collection.Key, int) 
railo.runtime.type.Query.getAt(String, int, Object)
          use instead Query.getAt(railo.runtime.type.Collection.Key, int, Object) 
railo.runtime.type.scope.Undefined.getCascading(String)
          use instead Undefined.getCascading(railo.runtime.type.Collection.Key) 
railo.runtime.exp.IPageException.getCatchBlock(PageContext)
          use instead getCatchBlock(Config config); 
railo.runtime.PageContext.getCollection(Object, String)
          use instead PageContext.getCollection(Object, railo.runtime.type.Collection.Key, Object) 
railo.runtime.PageContext.getCollection(Object, String, Object)
          use instead PageContext.getCollection(Object, railo.runtime.type.Collection.Key, Object) 
railo.runtime.type.scope.Undefined.getCollection(String)
          use instead Undefined.getCollection(railo.runtime.type.Collection.Key) 
railo.runtime.sql.old.SimpleCharStream.getColumn()
          Method getColumn is deprecated 
railo.runtime.type.Query.getColumn(String)
          use instead Query.getColumn(railo.runtime.type.Collection.Key) 
railo.runtime.type.Query.getColumn(String, QueryColumn)
          use instead Query.getColumn(railo.runtime.type.Collection.Key, QueryColumn) 
com.allaire.cfx.Query.getColumns()
          use instead getColumnNamesAsString() 
org.opencfml.cfx.Query.getColumns()
          use instead getColumnNamesAsString(); 
railo.runtime.db.DataSourceManager.getConnection(PageContext, String, String, String)
          use instead getConnection(PageContext pc,DataSource ds, String user, String pass) 
railo.runtime.search.SearchResulItem.getCustom1()
          use instead getCustom(int index) 
railo.runtime.search.SearchResulItem.getCustom2()
          use instead getCustom(int index) 
railo.runtime.search.SearchResulItem.getCustom3()
          use instead getCustom(int index) 
railo.runtime.search.SearchResulItem.getCustom4()
          use instead getCustom(int index) 
railo.runtime.util.QueryStack.getDataFromACollection(Collection.Key)
          use instead QueryStack.getDataFromACollection(PageContext,Collection.Key) 
railo.runtime.util.QueryStack.getDataFromACollection(String)
          use instead QueryStack.getDataFromACollection(PageContext,String) 
railo.runtime.config.Config.getDebugTemplate()
          use instead getDebugEntry(ip, defaultValue) 
railo.runtime.config.Config.getDumpWriter(String)
          use instead getDumpWriter(String key,int defaultType) 
railo.runtime.util.ResourceUtil.getExtension(Resource)
          use instead getExtension(Resource res, String defaultValue); 
railo.runtime.util.ResourceUtil.getExtension(String)
          use instead getExtension(String strFile, String defaultValue); 
railo.runtime.spooler.ExecutionPlan.getIntervall()
          use instead getInterval(); 
railo.runtime.type.ref.Reference.getKeyAsString()
          use instead Reference.getKey() 
railo.runtime.type.scope.Session.getLastAccess()
            
railo.intergral.fusiondebug.server.FDControllerImpl.getLicenseInformation()
          use instead FDControllerImpl.getLicenseInformation(String) 
railo.runtime.sql.old.SimpleCharStream.getLine()
          Method getLine is deprecated 
railo.runtime.type.FunctionValue.getName()
          use instead getNameAsString(); 
railo.runtime.type.UDF.getOwnerComponent()
            
railo.runtime.config.Config.getPageSource(Mapping[], String, boolean)
          use instead getPageSources or getPageSourceExisting 
railo.runtime.config.Config.getPhysical(Mapping[], String, boolean)
          use instead getPhysicalResources or getPhysicalResourceExisting 
railo.runtime.PageContext.getReference(Object, String)
          use instead PageContext.getReference(Object, railo.runtime.type.Collection.Key) 
railo.commons.io.res.util.ResourceUtil.getResource(PageContext, PageSource)
          use instead PageSource.getResourceTranslated(PageContext) 
railo.runtime.PageContext.getThreadScope(String)
          use instead setThreadScope(Collection.Key name,Threads t) 
railo.runtime.type.scope.Session.getTimeSpan()
            
railo.runtime.err.ErrorPage.getTypeAsString()
          use instead getException(); 
railo.runtime.type.util.QueryUtil.getValue(QueryColumn, int)
          use instead QueryColumn.get(int,Object) 
railo.runtime.op.Constants.Integer(int)
          use Integer.valueOf() instead 
railo.commons.io.res.Resource.isArchive()
          use instead Resource.getAttribute(short) 
railo.runtime.op.Decision.isEmpty(String)
          use instead StringUtil.isEmpty(String) 
railo.runtime.op.Decision.isEmpty(String, boolean)
          use instead StringUtil.isEmpty(String) 
railo.runtime.op.Decision.isGUID(Object)
          use instead isGUId(Object) 
railo.commons.io.res.Resource.isHidden()
          use instead Resource.getAttribute(short) 
railo.runtime.lock.LockData.isReadOnly()
            
railo.commons.io.res.Resource.isSystem()
          use instead Resource.getAttribute(short) 
railo.runtime.MappingImpl.isTrusted()
           
railo.runtime.op.Decision.isUUID(Object)
          use instead isUUId(Object obj) 
railo.runtime.type.Collection.keys()
          use instead keyIterator() 
railo.runtime.type.util.ListUtil.last(String, String)
          use instead last(String list, String delimiter, boolean ignoreEmpty) 
railo.commons.io.res.Resource.mkdir()
          use #createDirectory(boolean) 
railo.commons.io.res.Resource.mkdirs()
          use #createDirectory(boolean) 
railo.runtime.type.Iterator.next()
          use instead Iterator.next(int) 
railo.runtime.type.scope.Scope.release()
          use instead release(PageContext) 
railo.runtime.type.Query.removeColumn(String)
          use instead Query.removeColumn(railo.runtime.type.Collection.Key) 
railo.runtime.type.Query.removeColumnEL(String)
          use instead Query.removeColumnEL(railo.runtime.type.Collection.Key) 
railo.commons.io.res.Resource.renameTo(Resource)
          use instead #moveTo(Resource) 
railo.runtime.type.Iterator.reset()
          use instead Iterator.reset(int) 
railo.runtime.converter.ScriptConvertable.serialize()
          use instead serialize(Set done 
railo.runtime.PageContext.set(Object, String, Object)
          use instead PageContext.set(Object, railo.runtime.type.Collection.Key, Object) 
railo.runtime.type.Collection.set(String, Object)
          use instead Collection.set(railo.runtime.type.Collection.Key, Object) 
railo.commons.io.res.Resource.setArchive(boolean)
          use instead Resource.setAttribute(short, boolean) 
railo.runtime.type.Query.setAt(String, int, Object)
          use instead Query.setAtEL(railo.runtime.type.Collection.Key, int, Object) 
railo.runtime.type.Query.setAtEL(String, int, Object)
          use instead Query.setAtEL(railo.runtime.type.Collection.Key, int, Object) 
railo.runtime.tag.StoredProc.setBlockfactor(int)
          replaced with setBlockfactor(double) 
railo.runtime.tag.Content.setContent(byte[])
          replaced with #setVariable(String) 
railo.runtime.type.scope.Cookie.setCookie(Collection.Key, Object, int, boolean, String, String)
            
railo.runtime.type.scope.Cookie.setCookie(Collection.Key, Object, Object, boolean, String, String)
            
railo.runtime.type.scope.Cookie.setCookieEL(Collection.Key, Object, int, boolean, String, String)
            
railo.runtime.ext.tag.DynamicAttributes.setDynamicAttribute(String, String, Object)
          use instead setDynamicAttribute(String uri, Collection.Key localName, Object value) 
railo.runtime.util.VariableUtil.setEL(PageContext, Object, String, Object)
          use instead setEL(PageContext pc, Object coll, Collection.Key key,Object value); 
railo.runtime.type.Collection.setEL(String, Object)
          use instead Collection.setEL(railo.runtime.type.Collection.Key, Object) 
railo.runtime.tag.Setting.setEnablecfoutputonly(boolean)
          this method is replaced by the method setEnablecfoutputonly(Object enablecfoutputonly) 
railo.runtime.tag.Cookie.setExpires(String)
          replaced with setExpires(Object expires):void 
railo.commons.io.res.Resource.setHidden(boolean)
          use instead Resource.setAttribute(short, boolean) 
railo.runtime.CFMLFactory.setLabel(String)
          no replacement 
railo.runtime.PageContext.setLocale(String)
          use instead PageContext.setLocale(Locale) 
railo.runtime.tag.Throw.setMessage(String)
          this method should no longer be used. 
railo.commons.io.res.Resource.setReadOnly()
          use instead Resource.setWritable(boolean) 
railo.commons.io.res.Resource.setSystem(boolean)
          use instead Resource.setAttribute(short, boolean) 
railo.runtime.PageContext.setThreadScope(String, Threads)
          use instead setThreadScope(Collection.Key name,Threads t) 
railo.runtime.tag.Cache.setTimeout(Object)
          this attribute is deprecated and will ignored in this tag 
railo.runtime.err.ErrorPage.setTypeAsString(String)
          use instead setException(String exception); 
railo.runtime.type.Query.sort(String)
          use instead Query.sort(railo.runtime.type.Collection.Key) 
railo.runtime.type.Query.sort(String, int)
          use instead Query.sort(railo.runtime.type.Collection.Key, int) 
railo.runtime.type.Array.sort(String, String)
          use instead sort(Comparator comp) 
railo.runtime.text.xml.XMLCaster.toNode(Object)
          replaced with toRawNode 
railo.runtime.PageContext.touch(Object, String)
          use instead PageContext.touch(Object, railo.runtime.type.Collection.Key) 
 

Deprecated Constructors
railo.runtime.type.FunctionArgumentImpl(Collection.Key, String, boolean, int, boolean, String, String, StructImpl)
          use other constructor 
railo.runtime.type.FunctionArgumentImpl(String, String, boolean)
          use other constructor 
railo.runtime.type.FunctionArgumentImpl(String, String, boolean, double, boolean, String, String, StructImpl)
          use other constructor 
railo.runtime.type.FunctionArgumentImpl(String, String, boolean, double, String, String, StructImpl)
          use other constructor 
railo.runtime.type.FunctionArgumentImpl(String, String, boolean, int, boolean, String, String, StructImpl)
          use other constructor 
railo.runtime.type.FunctionArgumentImpl(String, String, boolean, int, String, String, StructImpl)
          use other constructor 
railo.runtime.type.FunctionArgumentImpl(String, String, boolean, String, String)
          use other constructor 
railo.runtime.type.FunctionArgumentImpl(String, String, boolean, String, String, StructImpl)
          use other constructor 
railo.runtime.type.FunctionArgumentImpl(String, String, short, boolean, int, boolean, String, String, StructImpl)
          use other constructor 
railo.runtime.type.QueryImpl(String[], int, String)
          use instead QueryImpl(Collection.Key[] columnKeys, int rowNumber,String name) 
railo.runtime.type.UDFPropertiesImpl(PageSource, FunctionArgument[], int, String, short, String, boolean, int)
          only supported for very old compile templates in .ra archives 
railo.runtime.type.UDFPropertiesImpl(PageSource, FunctionArgument[], int, String, short, String, boolean, int, String, String, String, Boolean, Boolean, long, StructImpl)
          only supported for old compile templates in .ra archives 
railo.runtime.type.UDFPropertiesImpl(PageSource, FunctionArgument[], int, String, String, String, boolean, int, String, String, String, Boolean, Boolean, long, StructImpl)
          only supported for old compile templates in .ra archives 
 



Copyright © 2012 Railo