|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.ext.tag.TagImpl
railo.runtime.ext.tag.BodyTagImpl
railo.runtime.ext.tag.BodyTagTryCatchFinallyImpl
railo.runtime.tag.Query
public final class Query
Passes SQL statements to a data source. Not limited to queries.
Field Summary |
---|
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
Query()
|
Method Summary | |
---|---|
static Object |
_call(PageContext pc,
String hql,
Object params,
boolean unique,
Struct queryOptions)
|
int |
doAfterBody()
|
int |
doEndTag()
|
void |
doFinally()
|
void |
doInitBody()
|
int |
doStartTag()
|
String |
getName()
|
void |
release()
|
void |
setBlockfactor(double blockfactor)
set the value blockfactor Specifies the maximum number of rows to fetch at a time from the server. |
void |
setCachedafter(DateTime cachedafter)
set the value cachedafter This is the age of which the query data can be |
void |
setCachedwithin(TimeSpan cachedwithin)
set the value cachedwithin |
void |
setCachename(String cachename)
set the value cachename This is specific to JTags, and allows you to give the cache a specific name |
void |
setConnectstring(String connectstring)
set the value connectstring |
void |
setDatasource(String datasource)
set the value datasource The name of the data source from which this query should retrieve data. |
void |
setDbname(String dbname)
set the value dbname The database name, Sybase System 11 driver and SQLOLEDB provider only. |
void |
setDbserver(String dbserver)
set the value dbserver For native database drivers and the SQLOLEDB provider, specifies the name of the database server computer. |
void |
setDbtype(String dbtype)
set the value dbtype The database driver type. |
void |
setDebug(boolean debug)
set the value debug Used for debugging queries. |
void |
setLazy(boolean lazy)
|
void |
setMaxrows(double maxrows)
set the value maxrows Specifies the maximum number of rows to return in the record set. |
void |
setName(String name)
set the value name The name query. |
void |
setOrmoptions(Struct ormoptions)
|
void |
setParam(SQLItem item)
|
void |
setPassword(String password)
set the value password If specified, password overrides the password value specified in the data source setup. |
void |
setProvider(String provider)
set the value provider COM provider, OLE-DB only. |
void |
setProviderdsn(String providerdsn)
set the value providerdsn Data source name for the COM provider, OLE-DB only. |
void |
setPsq(boolean psq)
|
void |
setResult(String result)
|
void |
setReturntype(String strReturntype)
|
void |
setTimeout(double timeout)
set the value timeout The maximum number of milliseconds for the query to execute before returning an error indicating that the query has timed-out. |
void |
setTimezone(String timezone)
|
void |
setUnique(boolean unique)
|
void |
setUsername(String username)
set the value username If specified, username overrides the username value specified in the data source setup. |
Methods inherited from class railo.runtime.ext.tag.BodyTagTryCatchFinallyImpl |
---|
doCatch |
Methods inherited from class railo.runtime.ext.tag.BodyTagImpl |
---|
setBodyContent |
Methods inherited from class railo.runtime.ext.tag.TagImpl |
---|
getParent, required, required, required, required, setPageContext, setPageContext, setParent |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
---|
getParent, setPageContext, setParent |
Constructor Detail |
---|
public Query()
Method Detail |
---|
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class BodyTagImpl
Tag.release()
public void setOrmoptions(Struct ormoptions)
public void setReturntype(String strReturntype) throws ApplicationException
ApplicationException
public void setUnique(boolean unique)
public void setResult(String result)
result
- the result to setpublic void setPsq(boolean psq)
psq
- set preserver single quotepublic void setPassword(String password)
password
- value to setpublic void setDatasource(String datasource) throws PageException
datasource
- value to set
PageException
public void setTimeout(double timeout)
timeout
- value to setpublic void setCachedafter(DateTime cachedafter)
cachedafter
- value to setpublic void setCachename(String cachename)
cachename
- value to setpublic void setCachedwithin(TimeSpan cachedwithin)
cachedwithin
- value to setpublic void setLazy(boolean lazy)
public void setProviderdsn(String providerdsn) throws ApplicationException
providerdsn
- value to set
ApplicationException
public void setConnectstring(String connectstring) throws ApplicationException
connectstring
- value to set
ApplicationException
public void setTimezone(String timezone) throws ExpressionException
ExpressionException
public void setBlockfactor(double blockfactor)
blockfactor
- value to setpublic void setDbtype(String dbtype)
dbtype
- value to setpublic void setDebug(boolean debug)
debug
- value to setpublic void setDbname(String dbname)
dbname
- value to set
ApplicationException
public void setMaxrows(double maxrows)
maxrows
- value to setpublic void setUsername(String username)
username
- value to setpublic void setProvider(String provider)
provider
- value to set
ApplicationException
public void setDbserver(String dbserver)
dbserver
- value to set
ApplicationException
public void setName(String name)
name
- value to setpublic String getName()
public void setParam(SQLItem item)
item
- public int doStartTag() throws PageException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class TagImpl
PageException
Tag.doStartTag()
public void doFinally()
doFinally
in interface javax.servlet.jsp.tagext.TryCatchFinally
doFinally
in class BodyTagTryCatchFinallyImpl
BodyTagTryCatchFinallyImpl.doFinally()
public int doEndTag() throws PageException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class TagImpl
PageException
Tag.doEndTag()
public static Object _call(PageContext pc, String hql, Object params, boolean unique, Struct queryOptions) throws PageException
PageException
public void doInitBody()
doInitBody
in interface javax.servlet.jsp.tagext.BodyTag
doInitBody
in class BodyTagImpl
BodyTag.doInitBody()
public int doAfterBody()
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
in class BodyTagImpl
IterationTag.doAfterBody()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |