public class DRegularExpression
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
log
Used for logging.
|
Constructor and Description |
---|
DRegularExpression() |
Modifier and Type | Method and Description |
---|---|
static void |
deleteRegularExpression(int regularExpressionID)
Deletes a regular expression from the database.
|
static java.sql.ResultSet |
getAllRegularExpressions()
Get all regular expressions from the database.
|
static int |
setRegularExpression(int regularExpressionID,
java.lang.String name,
java.lang.String expression,
java.lang.String description)
Saves a regular expression to the database.
|
public static int setRegularExpression(int regularExpressionID, java.lang.String name, java.lang.String expression, java.lang.String description)
regularExpressionID
- The ID of the regular expression.name
- The name of the regular expression.expression
- The actual content of the regular expression.description
- A description of the regular expression.public static java.sql.ResultSet getAllRegularExpressions()
ResultSet
containing all of the regular expressions.public static void deleteRegularExpression(int regularExpressionID)
regularExpressionID
- The ID of the regular expression.