public final class Query extends BodyTagTryCatchFinallyImpl
Constructor and Description |
---|
Query() |
Modifier and Type | Method and Description |
---|---|
static Object |
_call(PageContext pc,
String hql,
Object params,
boolean unique,
Struct queryOptions) |
int |
doAfterBody() |
int |
doEndTag() |
void |
doInitBody() |
int |
doStartTag() |
String |
getName() |
Object |
getReturnVariable() |
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(Object cachedwithin) |
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(Object 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 |
setNestinglevel(double nestingLevel) |
void |
setOrmoptions(Struct ormoptions) |
void |
setParam(SQLItem item) |
void |
setParams(Object params) |
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 |
setReturnVariable(boolean setReturnVariable) |
void |
setTimeout(Object 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.
|
doCatch, doFinally
setBodyContent
getParent, required, required, required, required, setPageContext, setPageContext, setParent
public Query()
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class BodyTagImpl
public void setOrmoptions(Struct ormoptions)
public void setReturntype(String strReturntype) throws ApplicationException
ApplicationException
public void setUnique(boolean unique)
public void setPsq(boolean psq)
psq
- set preserver single quotepublic void setPassword(String password)
password
- value to setpublic void setDatasource(Object datasource) throws PageException, ClassException
datasource
- value to setClassException
PageException
public void setTimeout(Object timeout) throws PageException
timeout
- value to setPageException
public 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 setCachedwithin(Object cachedwithin) throws PageException
PageException
public void setLazy(boolean lazy)
public void setProviderdsn(String providerdsn) throws ApplicationException
providerdsn
- value to setApplicationException
public void setConnectstring(String connectstring) throws ApplicationException
connectstring
- value to setApplicationException
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 setApplicationException
public void setMaxrows(double maxrows)
maxrows
- value to setpublic void setUsername(String username)
username
- value to setpublic void setProvider(String provider)
provider
- value to setApplicationException
public void setDbserver(String dbserver)
dbserver
- value to setApplicationException
public void setName(String name)
name
- value to setpublic void setNestinglevel(double nestingLevel)
public int doStartTag() throws PageException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class TagImpl
PageException
public int doEndTag() throws PageException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class TagImpl
PageException
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
public int doAfterBody()
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
in class BodyTagImpl
public void setReturnVariable(boolean setReturnVariable)
public Object getReturnVariable()
Copyright © 2015 Lucee