|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.jelly.TagSupport
net.sf.jameleon.LocationAwareTagSupport
net.sf.jameleon.JameleonTagSupport
net.sf.jameleon.function.FunctionTag
net.sf.jameleon.sql.AbstractSqlTag
public abstract class AbstractSqlTag
An abstract class used to execute SQL.
| Field Summary | |
|---|---|
protected String |
jdbcDriver
The jdbc driver |
protected String |
jdbcPassword
The jdbc password |
protected String |
jdbcUrl
The jdbc url |
protected String |
jdbcUsername
The jdbc username |
protected String |
sqlVarName
|
| Fields inherited from class net.sf.jameleon.function.FunctionTag |
|---|
addt, breakPoint, expectException, expectFailure, fResults, functionDelay, functionId, lastFileWritten, log, NO_DELAY, params, postcondition, precondition, st, state, tct, vpt |
| Fields inherited from class net.sf.jameleon.JameleonTagSupport |
|---|
attributes, broker, contextVars, fp, unsupportedAttributes |
| Fields inherited from class net.sf.jameleon.LocationAwareTagSupport |
|---|
columnNumber, elementTagName, lineNumber, scriptFileName |
| Fields inherited from class org.apache.commons.jelly.TagSupport |
|---|
body, context, hasTrimmed, parent, shouldTrim |
| Constructor Summary | |
|---|---|
AbstractSqlTag()
|
|
| Method Summary | |
|---|---|
protected void |
destroy()
|
protected abstract void |
executeSql(Connection conn,
String sql)
|
protected Connection |
getConnection()
Gets a connection to the database desired or a CSV file. |
String |
getSql()
|
protected void |
init()
|
void |
testBlock()
Contains the actual testing of the function point. |
protected void |
validate()
This method is called before the testBlock method is called. |
| Methods inherited from class net.sf.jameleon.JameleonTagSupport |
|---|
cleanVariablesInContext, createAttributes, describeAttributes, getAttributeBroker, getAttributes, getAttributeType, getClassAttributes, getFunctionalPoint, getUnsupportedAttributes, loadFunctionalPoint, resetFunctionalPoint, setAttribute, setVariableInContext, testForUnsupportedAttributesCaught |
| Methods inherited from class net.sf.jameleon.LocationAwareTagSupport |
|---|
getColumnNumber, getElementName, getFileName, getLineNumber, setColumnNumber, setElementName, setFileName, setLineNumber |
| Methods inherited from class org.apache.commons.jelly.TagSupport |
|---|
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.commons.jelly.Tag |
|---|
getBody, getContext, getParent, invokeBody, setBody, setContext, setParent |
| Field Detail |
|---|
protected String sqlVarName
protected String jdbcDriver
protected String jdbcUrl
protected String jdbcUsername
protected String jdbcPassword
| Constructor Detail |
|---|
public AbstractSqlTag()
| Method Detail |
|---|
public void testBlock()
FunctionTag
testBlock in class FunctionTag
protected void validate()
throws MissingAttributeException
FunctionTag
validate in class FunctionTagMissingAttributeException - - When a required attribute is not set.
protected abstract void executeSql(Connection conn,
String sql)
throws SQLException
SQLException
protected Connection getConnection()
throws SQLException
SQLExceptionpublic String getSql()
protected void init()
protected void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||