railo.runtime.tag
Class Insert

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

public final class Insert
extends TagImpl

Inserts records in data sources.


Field Summary
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
Insert()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
static String getDatasource(PageContext pageContext, String datasource)
           
static Struct getMeta(DatasourceConnection dc, String tableQualifier, String tableOwner, String tableName)
           
 void release()
           
 void setDatasource(String datasource)
          set the value datasource Name of the data source that contains your table.
 void setFormfields(String formfields)
          set the value formfields A comma-separated list of form fields to insert.
 void setPassword(String password)
          set the value password If specified, password overrides the password value specified in the ODBC setup.
 void setTablename(String tablename)
          set the value tablename Name of the table you want the form fields inserted in.
 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

Insert

public Insert()
Method Detail

release

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

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 Name of the data source that contains your table.

Parameters:
datasource - 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

setFormfields

public void setFormfields(String formfields)
set the value formfields A comma-separated list of form fields to insert. If this attribute is not specified, all fields in the form are included in the operation.

Parameters:
formfields - 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

setTablename

public void setTablename(String tablename)
set the value tablename Name of the table you want the form fields inserted in.

Parameters:
tablename - 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()
             throws PageException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class TagImpl
Throws:
PageException
See Also:
Tag.doEndTag()

getDatasource

public static String getDatasource(PageContext pageContext,
                                   String datasource)
                            throws ApplicationException
Throws:
ApplicationException

getMeta

public static Struct getMeta(DatasourceConnection dc,
                             String tableQualifier,
                             String tableOwner,
                             String tableName)
                      throws SQLException
Throws:
SQLException


Copyright © 2012 Railo