org.datanucleus.store.mapped.expression
Interface ExpressionPatternAdapter

All Known Subinterfaces:
DatastoreAdapter

public interface ExpressionPatternAdapter

Interface that allows one datastore adapt pattern expressions

Version:
$Revision: 1.3 $

Method Summary
 java.lang.String getEscapeCharacter()
          The character for escaping characters in pattern expressions.
 ScalarExpression getEscapedPatternExpression(ScalarExpression patternExpression)
          Escape the characters of an expression expanded in word searches.
 java.lang.String getEscapePatternExpression()
          The character for escaping characters in pattern expressions.
 java.lang.String getPatternExpressionAnyCharacter()
          The pattern string for representing one character that is expanded in word searches.
 java.lang.String getPatternExpressionZeroMoreCharacters()
          The pattern string for representing zero or more characters that is expanded in word searches.
 

Method Detail

getEscapedPatternExpression

ScalarExpression getEscapedPatternExpression(ScalarExpression patternExpression)
Escape the characters of an expression expanded in word searches.

Parameters:
patternExpression - The expression
Returns:
the escaped string.

getPatternExpressionAnyCharacter

java.lang.String getPatternExpressionAnyCharacter()
The pattern string for representing one character that is expanded in word searches. Most of databases will use the underscore character.

Returns:
the pattern string.

getPatternExpressionZeroMoreCharacters

java.lang.String getPatternExpressionZeroMoreCharacters()
The pattern string for representing zero or more characters that is expanded in word searches. Most of databases will use the percent sign character.

Returns:
the pattern string.

getEscapePatternExpression

java.lang.String getEscapePatternExpression()
The character for escaping characters in pattern expressions.

Returns:
the character.

getEscapeCharacter

java.lang.String getEscapeCharacter()
The character for escaping characters in pattern expressions.

Returns:
the character.


Copyright © 2010. All Rights Reserved.