org.apache.velocity.app.event.implement
Class EscapeSqlReference
java.lang.Object
   org.apache.velocity.app.event.implement.EscapeReference
org.apache.velocity.app.event.implement.EscapeReference
       org.apache.velocity.app.event.implement.EscapeSqlReference
org.apache.velocity.app.event.implement.EscapeSqlReference
- All Implemented Interfaces: 
- EventHandler, ReferenceInsertionEventHandler, RuntimeServicesAware
- public class EscapeSqlReference 
- extends EscapeReference
Escapes the characters in a String to be suitable to pass to an SQL query.
- Since:
- 1.5
- Author:
- wglass
- See Also:
- StringEscapeUtils
 
 
 
| Method Summary | 
| protected  String | escape(Object text)Escapes the characters in a String to be suitable to pass to an SQL query.
 | 
| protected  String | getMatchAttribute()Specify the configuration attribute that specifies the
 regular expression.
 | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
EscapeSqlReference
public EscapeSqlReference()
escape
protected String escape(Object text)
- Escapes the characters in a String to be suitable to pass to an SQL query.
 
- 
- Specified by:
- escapein class- EscapeReference
 
- 
- Parameters:
- text-
- Returns:
- An escaped string.
- See Also:
- StringEscapeUtils
 
getMatchAttribute
protected String getMatchAttribute()
- Description copied from class: EscapeReference
- Specify the configuration attribute that specifies the
 regular expression.  Ideally should be in a form
 eventhandler.escape.XYZ.match
 where XYZis the type of escaping being done.
 
 
- 
- Specified by:
- getMatchAttributein class- EscapeReference
 
- 
- Returns:
- attribute "eventhandler.escape.sql.match"
 
Copyright © 2000-2008 The Apache Software Foundation. All Rights Reserved.