railo.runtime.tag
Class GridUpdate

java.lang.Object
  extended by railo.runtime.ext.tag.TagImpl
      extended by railo.runtime.tag.GridUpdate
All Implemented Interfaces:
javax.servlet.jsp.tagext.Tag

public final class GridUpdate
extends TagImpl

Used in a cfgrid, cfgridupdate allows you to perform updates to data sources directly from edited grid data. The cfgridupdate tag provides a direct interface with your data source. The cfgridupdate tag applies delete row actions first, then INSERT row actions, and then UPDATE row actions. If an error is encountered, row processing stops.


Field Summary
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
GridUpdate()
          constructor for the tag class
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
 void release()
           
 void setConnectstring(String connectstring)
           
 void setDatasource(String datasource)
          set the value datasource The name of the data source for the update action.
 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 setGrid(String grid)
          set the value grid The name of the cfgrid form element that is the source for the update action.
 void setKeyonly(boolean keyonly)
          set the value keyonly Yes or No.
 void setPassword(String password)
          set the value password If specified, password overrides the password value specified in the ODBC 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 setTablename(String tablename)
          set the value tablename The name of the table to update.
 void setTableowner(String tableowner)
          set the value tableowner For data sources that support table ownership (such as SQL Server, Oracle, and Sybase SQL Anywhere), use this field to specify the owner of the table.
 void setTablequalifier(String tablequalifier)
          set the value tablequalifier For data sources that support table qualifiers, use this field to specify the qualifier for the table.
 void setUsername(String username)
          set the value username If specified, username overrides the username value specified in the ODBC setup.
 
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
 

Constructor Detail

GridUpdate

public GridUpdate()
           throws TagNotSupported
constructor for the tag class

Throws:
TagNotSupported
Method Detail

setPassword

public void setPassword(String password)
set the value password If specified, password overrides the password value specified in the ODBC setup.

Parameters:
password - value to set

setDatasource

public void setDatasource(String datasource)
set the value datasource The name of the data source for the update action.

Parameters:
datasource - value to set

setProviderdsn

public void setProviderdsn(String providerdsn)
set the value providerdsn Data source name for the COM provider (OLE-DB only).

Parameters:
providerdsn - value to set

setKeyonly

public void setKeyonly(boolean keyonly)
set the value keyonly Yes or No. Yes specifies that in the update action, the WHERE criteria is confined to the key values. No specifies that in addition to the key values, the original values of any changed fields are included in the WHERE criteria. Default is Yes.

Parameters:
keyonly - value to set

setTablename

public void setTablename(String tablename)
set the value tablename The name of the table to update.

Parameters:
tablename - value to set

setConnectstring

public void setConnectstring(String connectstring)

setDbtype

public void setDbtype(String dbtype)
set the value dbtype The database driver type

Parameters:
dbtype - value to set

setGrid

public void setGrid(String grid)
set the value grid The name of the cfgrid form element that is the source for the update action.

Parameters:
grid - value to set

setDbname

public void setDbname(String dbname)
set the value dbname The database name (Sybase System 11 driver and SQLOLEDB provider only). If specified, dbName overrides the default database specified in the data source.

Parameters:
dbname - value to set

setUsername

public void setUsername(String username)
set the value username If specified, username overrides the username value specified in the ODBC setup.

Parameters:
username - value to set

setDbserver

public void setDbserver(String dbserver)
set the value dbserver For native database drivers and the SQLOLEDB provider, specifies the name of the database server computer. If specified, dbServer overrides the server specified in the data source.

Parameters:
dbserver - value to set

setTableowner

public void setTableowner(String tableowner)
set the value tableowner For data sources that support table ownership (such as SQL Server, Oracle, and Sybase SQL Anywhere), use this field to specify the owner of the table.

Parameters:
tableowner - value to set

setProvider

public void setProvider(String provider)
set the value provider COM provider (OLE-DB only).

Parameters:
provider - value to set

setTablequalifier

public void setTablequalifier(String tablequalifier)
set the value tablequalifier For data sources that support table qualifiers, use this field to specify the qualifier for the table. The purpose of table qualifiers varies across drivers. For SQL Server and Oracle, the qualifier refers to the name of the database that contains the table. For the Intersolv dBase driver, the qualifier refers to the directory where the DBF files are located.

Parameters:
tablequalifier - value to set

doStartTag

public int doStartTag()
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class TagImpl
See Also:
Tag.doStartTag()

doEndTag

public int doEndTag()
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class TagImpl
See Also:
Tag.doEndTag()

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class TagImpl
See Also:
Tag.release()


Copyright © 2012 Railo