scriptella.configuration
Class OnErrorEl
java.lang.Object
scriptella.configuration.XmlConfigurableBase
scriptella.configuration.OnErrorEl
- All Implemented Interfaces:
- XmlConfigurable
public class OnErrorEl
- extends XmlConfigurableBase
Represents <onerror> xml element.
- Version:
- 1.0
- Author:
- Fyodor Kupolov
| Methods inherited from class scriptella.configuration.XmlConfigurableBase |
assertRequiredFieldPresent, assertRequiredFieldPresent, findGetter, findSetter, getLocation, load, loadClass, setLocation, setLocation, setPatternProperty, setPatternProperty, setProperty, setProperty, setRequiredProperty, setRequiredProperty |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
content
protected DialectBasedContentEl content
OnErrorEl
public OnErrorEl()
OnErrorEl
public OnErrorEl(XmlElement element)
configure
public void configure(XmlElement element)
- Description copied from interface:
XmlConfigurable
- Configures the class using specified XML element.
- Parameters:
element - XML element.
getType
public java.util.regex.Pattern getType()
- Returns:
- Regular expression pattern to match exception type.
setType
public void setType(java.util.regex.Pattern type)
getMessage
public java.util.regex.Pattern getMessage()
- Returns:
- Regular expression pattern to match exception message
setMessage
public void setMessage(java.util.regex.Pattern message)
getCodes
public java.util.Set<java.lang.String> getCodes()
- Returns:
- set of vendor codes/sql states.
setCodes
public void setCodes(java.util.Set<java.lang.String> codes)
isRetry
public boolean isRetry()
- Returns:
- true if statement which caused a problem should be retried after onerror handler. Default value if false.
setRetry
public void setRetry(boolean retry)
getContent
public ContentEl getContent(DialectIdentifier id)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © Copyright 2006-2009 The Scriptella Project Team.