|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.taglib.storage.jdbc.JDBCConnectionTag
public class JDBCConnectionTag
JDBCConnectionTag is the tag handler class for the sas:JDBCConnection custom tag . JDBCConnectionTag is invoked by the JSP page to evaluate the sas:JDBCConnection custom tag during the execution of the page. Tag handler methods are called by the JSP page implementation class at various points during the evaluation of the tag. The tag handler methods in turn call methods on the underlying JDBC Connection, com.sas.storage.jdbc.JDBCConnection, to execute methods.
JSP custom tags provide an alternative to using the TransformationBeans. Visit the Custom Tag Library Reference for additional information on the sas:JDBCConnection custom tag.
For More Information:
Visit the AppDev Studio Developer's Site to access step-by-step examples, white papers and additional usage information at http://support.sas.com/rnd/appdev/.
Examples for this class may be found on the Examples Site.
Note: A snapshot of the AppDev Studio Developers Site is installed on your local Web server when you install AppDev Studio. To access the site from webAF, select Help -> Developer Site .
JDBCConnection
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
RB_KEY
Localization String Key for the ConnectionTag |
Fields inherited from class com.sas.taglib.BaseBodyTag |
---|
DELIMITERS |
Constructor Summary | |
---|---|
JDBCConnectionTag()
|
Method Summary | |
---|---|
protected void |
applyAttributes()
Apply JDBCConnection properties to the underlying com.sas.storage.jdbc.JDBCConnection object |
int |
doEndTag()
Process the end tag. |
int |
doStartTag()
Processes the start tag for this instance. |
boolean |
getAutoCommit()
Returns the auto-commit mode for the connection. |
java.lang.String |
getCatalog()
Returns the connection's current catalog name. |
java.lang.String |
getConnectionInfo()
Returns the String representing the Properties object used to get a java.sql.Connection from the DriverManager. |
java.lang.String |
getDatabaseURL()
Returns the database url used to get a connection from the DriverManager. |
java.lang.String |
getDriverName()
Returns the name of the JDBC Driver class to be used for the JDBC Connection. |
java.lang.String |
getLoginCommand()
Returns the String representing the Command object to be executed before attempting to load the JDBC Driver or find a Connection. |
java.lang.String |
getPassword()
Get the password used to get a java.sql.Connection from the DriverManager. |
int |
getTransactionIsolation()
Returns the desired transaction isolation level for the Jdbc Connection. |
java.lang.String |
getTypeMap()
Returns the String representing the type map that will be used for custom mapping of SQL structured types and distinct types. |
java.lang.String |
getUsername()
Get the username used to get a java.sql.Connection from the DriverManager. |
protected void |
initialize(boolean includeAttributes)
Initializes attributes and variables for this tag handler. |
boolean |
isReadOnly()
Returns true if the connection is in read-only mode, false otherwise. |
void |
setAutoCommit(boolean autoCommit)
Sets the auto-commit mode for the connection. |
void |
setCatalog(java.lang.String catalog)
Sets a catalog name in order to select a subspace of the Connection's database in which to work. |
void |
setConnectionInfo(java.lang.String connectionInfo)
Sets the String representing the Properties object used to get a java.sql.Connection from the DriverManager. |
void |
setDatabaseURL(java.lang.String databaseURL)
Sets the the database url used to get a connection from the DriverManager. |
void |
setDriverName(java.lang.String driverName)
Sets the name of the JDBC Driver class to be used for the JDBC Connection. |
void |
setLoginCommand(java.lang.String loginCommand)
Sets the String representing the Command object to be executed before attempting to load the JDBC Driver or find a Connection. |
void |
setPassword(java.lang.String password)
Set the password used to get a java.sql.Connection from the DriverManager. |
void |
setReadOnly(boolean readOnly)
Puts the connection in read-only mode as a hint to enable database optimizations. |
void |
setTransactionIsolation(int transactionIsolation)
Sets the desired transaction isolation level for the Jdbc Connection. |
void |
setTypeMap(java.lang.String typeMap)
Sets the String representing the type map that will be used for custom mapping of SQL structured types and distinct types. |
void |
setUsername(java.lang.String username)
Set the username used to get a java.sql.Connection from the DriverManager. |
Field Detail |
---|
public static final java.lang.String RB_KEY
Constructor Detail |
---|
public JDBCConnectionTag()
Method Detail |
---|
protected void initialize(boolean includeAttributes)
initialize
in class BaseBodyTag
includeAttributes
- Set to true if attributes are to be set to default values.public void setConnectionInfo(java.lang.String connectionInfo)
connectionInfo
- the String representing the Properties object used in obtaining a ConnectiongetConnectionInfo()
public java.lang.String getConnectionInfo()
setConnectionInfo(java.lang.String)
public void setLoginCommand(java.lang.String loginCommand)
loginCommand
- the String representing the login commandgetLoginCommand()
public java.lang.String getLoginCommand()
setLoginCommand(java.lang.String)
public void setDriverName(java.lang.String driverName)
driverName
- the name of the JDBC Driver classgetDriverName()
public java.lang.String getDriverName()
setDriverName(java.lang.String)
public void setPassword(java.lang.String password)
password
- passwordgetPassword()
public java.lang.String getPassword()
setPassword(java.lang.String)
public void setDatabaseURL(java.lang.String databaseURL)
databaseURL
- the String representing the database url used to obtain a java.sql.ConnectiongetDatabaseURL()
public java.lang.String getDatabaseURL()
setDatabaseURL(java.lang.String)
public void setUsername(java.lang.String username)
username
- usernamegetUsername()
public java.lang.String getUsername()
setUsername(java.lang.String)
public boolean isReadOnly()
setReadOnly(boolean)
public void setReadOnly(boolean readOnly)
readOnly
- indicates if the connection should be in read-only mode.Connection.setReadOnly(boolean)
public java.lang.String getCatalog()
setCatalog(java.lang.String)
public void setCatalog(java.lang.String catalog)
catalog
- the name of the catalog to selectConnection.setCatalog(java.lang.String)
public java.lang.String getTypeMap()
setTypeMap(java.lang.String)
public void setTypeMap(java.lang.String typeMap)
typeMap
- the String representing the type map used for custom mapping
of SQL structured types and distinct typesConnection.setTypeMap(java.util.Map>)
public boolean getAutoCommit()
setAutoCommit(boolean)
public void setAutoCommit(boolean autoCommit)
Connection.setAutoCommit(boolean)
,
getAutoCommit()
public int getTransactionIsolation()
setTransactionIsolation(int)
public void setTransactionIsolation(int transactionIsolation)
transactionIsolation
- the desired transaction isolataion level for the Jdbc ConnectionConnection.setTransactionIsolation(int)
protected void applyAttributes() throws javax.servlet.jsp.JspException
applyAttributes
in class BaseBodyTag
javax.servlet.jsp.JspException
- Thrown if a JspException occurs.public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class BaseBodyTag
javax.servlet.jsp.JspException
- Thrown if a JspException occurs.BaseBodyTag.setInstantiate(boolean)
,
TagSupport.doStartTag()
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |