railo.runtime.op
Class CreationImpl

java.lang.Object
  extended by railo.runtime.op.CreationImpl
All Implemented Interfaces:
Serializable, Creation

public final class CreationImpl
extends Object
implements Creation, Serializable

implemention of the ctration object

See Also:
Serialized Form

Method Summary
 Array createArray()
          creates and returns a array instance
 Array createArray(int dimension)
          creates and returns a array instance
 Array createArray(String list, String delimiter, boolean removeEmptyItem, boolean trim)
          creates and returns a array based on a string list
 ClusterEntry createClusterEntry(Collection.Key key, Serializable value, int offset)
           
 Component createComponentFromName(PageContext pc, String fullName)
          creates a component object from (Full)Name, for example railo.extensions.net.HTTPUtil
 Component createComponentFromPath(PageContext pc, String path)
          creates a component object from a absolute local path, for example /Users/susi/Projects/Sorglos/wwwrooot/railo/extensions/net/HTTPUtil.cfc
 Date createDate(int year, int month, int day)
          creates and returns a Date instance
 Date createDate(long time)
          creates and returns a Date instance
 DateTime createDateTime(int year, int month, int day, int hour, int minute, int second, int millis)
          creates and returns a DateTime instance
 DateTime createDateTime(long time)
          creates and returns a DateTime instance
 Document createDocument()
          creates and returns a xml Document instance
 Document createDocument(InputStream is, boolean isHTML)
          creates and returns a xml Document instance
 Document createDocument(Resource res, boolean isHTML)
          creates and returns a xml Document instance
 Document createDocument(String xml, boolean isHTML)
          creates and returns a xml Document instance
 javax.servlet.http.HttpServletRequest createHttpServletRequest(File contextRoot, String serverName, String scriptName, String queryString, javax.servlet.http.Cookie[] cookies, Map<String,Object> headers, Map<String,String> parameters, Map<String,Object> attributes, javax.servlet.http.HttpSession session)
           
 javax.servlet.http.HttpServletResponse createHttpServletResponse(OutputStream io)
           
 Collection.Key createKey(String key)
          creates a collecton Key out of a String
 PageContext createPageContext(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp, OutputStream out)
           
 Query createQuery(Collection.Key[] columns, int rows, String name)
          creates a query object with given data
 Query createQuery(DatasourceConnection dc, SQL sql, int maxrow, int fetchsize, int timeout, String name)
           
 Query createQuery(DatasourceConnection dc, SQL sql, int maxrow, String name)
          creates a query object with a resultset from a sql query
 Query createQuery(String[] columns, int rows, String name)
          creates a query object with given data
 SpoolerTask createRemoteClientTask(ExecutionPlan[] plans, RemoteClient remoteClient, Struct attrColl, String callerId, String type)
           
 Resource createResource(String path, boolean existing)
           
 Struct createStruct()
          creates and returns a struct instance
 Struct createStruct(int type)
           
 Time createTime(int hour, int minute, int second, int millis)
          creates and returns a Time instance
 Time createTime(long time)
          creates and returns a Time instance
 TimeSpan createTimeSpan(int day, int hour, int minute, int second)
          creates and returns a TimeSpan instance
static Creation getInstance(CFMLEngine engine)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Creation getInstance(CFMLEngine engine)
Returns:
singleton instance

createArray

public Array createArray()
Description copied from interface: Creation
creates and returns a array instance

Specified by:
createArray in interface Creation
Returns:
array

createArray

public Array createArray(String list,
                         String delimiter,
                         boolean removeEmptyItem,
                         boolean trim)
Description copied from interface: Creation
creates and returns a array based on a string list

Specified by:
createArray in interface Creation
Returns:
array

createArray

public Array createArray(int dimension)
                  throws PageException
Description copied from interface: Creation
creates and returns a array instance

Specified by:
createArray in interface Creation
Returns:
array
Throws:
PageException

createStruct

public Struct createStruct()
Description copied from interface: Creation
creates and returns a struct instance

Specified by:
createStruct in interface Creation
Returns:
struct

createStruct

public Struct createStruct(int type)
Specified by:
createStruct in interface Creation

createQuery

public Query createQuery(String[] columns,
                         int rows,
                         String name)
Description copied from interface: Creation
creates a query object with given data

Specified by:
createQuery in interface Creation
Returns:
created query Object

createQuery

public Query createQuery(Collection.Key[] columns,
                         int rows,
                         String name)
                  throws DatabaseException
Description copied from interface: Creation
creates a query object with given data

Specified by:
createQuery in interface Creation
Returns:
created query Object
Throws:
DatabaseException

createQuery

public Query createQuery(DatasourceConnection dc,
                         SQL sql,
                         int maxrow,
                         String name)
                  throws PageException
Description copied from interface: Creation
creates a query object with a resultset from a sql query

Specified by:
createQuery in interface Creation
Parameters:
dc - Connection to a database
sql - sql to execute
maxrow - maxrow for the resultset
Throws:
PageException

createQuery

public Query createQuery(DatasourceConnection dc,
                         SQL sql,
                         int maxrow,
                         int fetchsize,
                         int timeout,
                         String name)
                  throws PageException
Specified by:
createQuery in interface Creation
Parameters:
dc - Connection to a database
sql - sql to execute
maxrow - maxrow for the resultset
Returns:
created Query
Throws:
PageException

createDateTime

public DateTime createDateTime(long time)
Description copied from interface: Creation
creates and returns a DateTime instance

Specified by:
createDateTime in interface Creation
Returns:
DateTime

createTimeSpan

public TimeSpan createTimeSpan(int day,
                               int hour,
                               int minute,
                               int second)
Description copied from interface: Creation
creates and returns a TimeSpan instance

Specified by:
createTimeSpan in interface Creation
Returns:
TimeSpan

createDate

public Date createDate(long time)
Description copied from interface: Creation
creates and returns a Date instance

Specified by:
createDate in interface Creation
Returns:
DateTime

createTime

public Time createTime(long time)
Description copied from interface: Creation
creates and returns a Time instance

Specified by:
createTime in interface Creation
Returns:
DateTime

createDateTime

public DateTime createDateTime(int year,
                               int month,
                               int day,
                               int hour,
                               int minute,
                               int second,
                               int millis)
                        throws ExpressionException
Description copied from interface: Creation
creates and returns a DateTime instance

Specified by:
createDateTime in interface Creation
Returns:
DateTime
Throws:
ExpressionException

createDate

public Date createDate(int year,
                       int month,
                       int day)
                throws ExpressionException
Description copied from interface: Creation
creates and returns a Date instance

Specified by:
createDate in interface Creation
Returns:
DateTime
Throws:
ExpressionException

createTime

public Time createTime(int hour,
                       int minute,
                       int second,
                       int millis)
Description copied from interface: Creation
creates and returns a Time instance

Specified by:
createTime in interface Creation
Returns:
DateTime

createDocument

public Document createDocument()
                        throws PageException
Description copied from interface: Creation
creates and returns a xml Document instance

Specified by:
createDocument in interface Creation
Returns:
struct
Throws:
PageException

createDocument

public Document createDocument(Resource res,
                               boolean isHTML)
                        throws PageException
Description copied from interface: Creation
creates and returns a xml Document instance

Specified by:
createDocument in interface Creation
Returns:
struct
Throws:
PageException

createDocument

public Document createDocument(String xml,
                               boolean isHTML)
                        throws PageException
Description copied from interface: Creation
creates and returns a xml Document instance

Specified by:
createDocument in interface Creation
Returns:
struct
Throws:
PageException

createDocument

public Document createDocument(InputStream is,
                               boolean isHTML)
                        throws PageException
Description copied from interface: Creation
creates and returns a xml Document instance

Specified by:
createDocument in interface Creation
Returns:
struct
Throws:
PageException

createKey

public Collection.Key createKey(String key)
Description copied from interface: Creation
creates a collecton Key out of a String

Specified by:
createKey in interface Creation

createRemoteClientTask

public SpoolerTask createRemoteClientTask(ExecutionPlan[] plans,
                                          RemoteClient remoteClient,
                                          Struct attrColl,
                                          String callerId,
                                          String type)
Specified by:
createRemoteClientTask in interface Creation

createClusterEntry

public ClusterEntry createClusterEntry(Collection.Key key,
                                       Serializable value,
                                       int offset)
Specified by:
createClusterEntry in interface Creation

createResource

public Resource createResource(String path,
                               boolean existing)
                        throws PageException
Specified by:
createResource in interface Creation
Throws:
PageException

createHttpServletRequest

public javax.servlet.http.HttpServletRequest createHttpServletRequest(File contextRoot,
                                                                      String serverName,
                                                                      String scriptName,
                                                                      String queryString,
                                                                      javax.servlet.http.Cookie[] cookies,
                                                                      Map<String,Object> headers,
                                                                      Map<String,String> parameters,
                                                                      Map<String,Object> attributes,
                                                                      javax.servlet.http.HttpSession session)
Specified by:
createHttpServletRequest in interface Creation

createHttpServletResponse

public javax.servlet.http.HttpServletResponse createHttpServletResponse(OutputStream io)
Specified by:
createHttpServletResponse in interface Creation

createPageContext

public PageContext createPageContext(javax.servlet.http.HttpServletRequest req,
                                     javax.servlet.http.HttpServletResponse rsp,
                                     OutputStream out)
Specified by:
createPageContext in interface Creation

createComponentFromName

public Component createComponentFromName(PageContext pc,
                                         String fullName)
                                  throws PageException
Description copied from interface: Creation
creates a component object from (Full)Name, for example railo.extensions.net.HTTPUtil

Specified by:
createComponentFromName in interface Creation
Parameters:
pc - Pagecontext for loading the CFC
Returns:
loaded cfc
Throws:
PageException

createComponentFromPath

public Component createComponentFromPath(PageContext pc,
                                         String path)
                                  throws PageException
Description copied from interface: Creation
creates a component object from a absolute local path, for example /Users/susi/Projects/Sorglos/wwwrooot/railo/extensions/net/HTTPUtil.cfc

Specified by:
createComponentFromPath in interface Creation
Parameters:
pc - Pagecontext for loading the CFC
path - path of the cfc example:/Users/susi/Projects/Sorglos/wwwrooot/railo/extensions/net/HTTPUtil.cfc
Returns:
loaded cfc
Throws:
PageException


Copyright © 2012 Railo