railo.runtime.util
Interface Creation

All Known Implementing Classes:
CreationImpl

public interface Creation

Creation of different Objects


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 delimeter, boolean removeEmptyItem, boolean trim)
          creates and returns a array based on a string list
 ClusterEntry createClusterEntry(Collection.Key key, Serializable value, int offset)
           
 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 seond, 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 file, boolean isHtml)
          creates and returns a xml Document instance
 Document createDocument(String xml, boolean isHtml)
          creates and returns a xml Document instance
 Collection.Key createKey(String key)
          creates a collecton Key out of a String
 Query createQuery(DatasourceConnection dc, SQL sql, int maxrow, int fetchsize, int timeout, String name)
           
 Query createQuery(DatasourceConnection dc, SQL sql, int maxrow, String name)
          Deprecated. replaced with createQuery(DatasourceConnection, SQL, int, int, int, String)
 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
 

Method Detail

createArray

Array createArray()
creates and returns a array instance

Returns:
array

createArray

Array createArray(String list,
                  String delimeter,
                  boolean removeEmptyItem,
                  boolean trim)
creates and returns a array based on a string list

Returns:
array

createDateTime

DateTime createDateTime(long time)
creates and returns a DateTime instance

Parameters:
time -
Returns:
DateTime

createDateTime

DateTime createDateTime(int year,
                        int month,
                        int day,
                        int hour,
                        int minute,
                        int seond,
                        int millis)
                        throws PageException
creates and returns a DateTime instance

Parameters:
year -
month -
day -
hour -
minute -
seond -
millis -
Returns:
DateTime
Throws:
PageException

createDate

Date createDate(long time)
creates and returns a Date instance

Parameters:
time -
Returns:
DateTime

createDate

Date createDate(int year,
                int month,
                int day)
                throws PageException
creates and returns a Date instance

Parameters:
year -
month -
day -
Returns:
DateTime
Throws:
PageException

createTime

Time createTime(long time)
creates and returns a Time instance

Parameters:
time -
Returns:
DateTime

createTime

Time createTime(int hour,
                int minute,
                int second,
                int millis)
creates and returns a Time instance

Parameters:
hour -
minute -
second -
millis -
Returns:
DateTime

createTimeSpan

TimeSpan createTimeSpan(int day,
                        int hour,
                        int minute,
                        int second)
creates and returns a TimeSpan instance

Parameters:
day -
hour -
minute -
second -
Returns:
TimeSpan

createArray

Array createArray(int dimension)
                  throws PageException
creates and returns a array instance

Parameters:
dimension -
Returns:
array
Throws:
PageException

createStruct

Struct createStruct()
creates and returns a struct instance

Returns:
struct

createStruct

Struct createStruct(int type)

createQuery

Query createQuery(String[] columns,
                  int rows,
                  String name)
creates a query object with given data

Parameters:
columns -
rows -
name -
Returns:
created query Object

createQuery

Query createQuery(DatasourceConnection dc,
                  SQL sql,
                  int maxrow,
                  String name)
                  throws PageException
Deprecated. replaced with createQuery(DatasourceConnection, SQL, int, int, int, String)

creates a query object with a resultset from a sql query

Parameters:
dc - Connection to a database
name -
sql - sql to execute
maxrow - maxrow for the resultset
Throws:
PageException

createQuery

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

createDocument

Document createDocument()
                        throws PageException
creates and returns a xml Document instance

Returns:
struct
Throws:
PageException

createDocument

Document createDocument(Resource file,
                        boolean isHtml)
                        throws PageException
creates and returns a xml Document instance

Parameters:
file -
isHtml -
Returns:
struct
Throws:
PageException

createDocument

Document createDocument(String xml,
                        boolean isHtml)
                        throws PageException
creates and returns a xml Document instance

Parameters:
xml -
isHtml -
Returns:
struct
Throws:
PageException

createDocument

Document createDocument(InputStream is,
                        boolean isHtml)
                        throws PageException
creates and returns a xml Document instance

Parameters:
is -
isHtml -
Returns:
struct
Throws:
PageException

createKey

Collection.Key createKey(String key)
creates a collecton Key out of a String

Parameters:
key -

createRemoteClientTask

SpoolerTask createRemoteClientTask(ExecutionPlan[] plans,
                                   RemoteClient remoteClient,
                                   Struct attrColl,
                                   String callerId,
                                   String type)

createClusterEntry

ClusterEntry createClusterEntry(Collection.Key key,
                                Serializable value,
                                int offset)

createResource

Resource createResource(String path,
                        boolean existing)
                        throws PageException
Throws:
PageException


Copyright © 2012 Railo