| org.andromda.translation.ocl.query.QueryTranslator org.andromda.translation.ocl.query.EjbQLTranslator
EjbQLTranslator | public class EjbQLTranslator extends QueryTranslator (Code) | | Performs translation to the following:
author: Chad Brandon |
Method Summary | |
protected String | getCounter() Returns a String representing an incrementing number. | public void | preProcess() Called by super class to reset any objects. | protected String | replaceCounterPattern(String fragment) Handles the replacemenht of the references to 'counter' with the incrementing counter (currently just used for
EJB-QL translation) --> may want to find a cleaner way to do this. | protected String | replaceFragment(String fragment, String replacement, int index) Checks to see if the replacement is an argument and if so replaces the {index} in the fragment with the
'argument' fragment from the template. |
getCounter | protected String getCounter()(Code) | | Returns a String representing an incrementing number. It increments and returns the next value each time this
method is called.
String the counter represented by a String. |
preProcess | public void preProcess()(Code) | | Called by super class to reset any objects.
|
replaceCounterPattern | protected String replaceCounterPattern(String fragment)(Code) | | Handles the replacemenht of the references to 'counter' with the incrementing counter (currently just used for
EJB-QL translation) --> may want to find a cleaner way to do this.
|
replaceFragment | protected String replaceFragment(String fragment, String replacement, int index)(Code) | | Checks to see if the replacement is an argument and if so replaces the {index} in the fragment with the
'argument' fragment from the template. Otherwise replaces the {index} with the passed in replacement value.
Parameters: fragment - Parameters: replacement - Parameters: index - String the fragment with any replacements. |
Methods inherited from org.andromda.translation.ocl.query.QueryTranslator | public void handleDotOperation(String translation, Object node)(Code)(Java Doc) public void handleIncludes(String translation, Object node)(Code)(Java Doc) public void handleIsLike(String translation, Object node)(Code)(Java Doc) public void handleLogicalExpression(String translation, Object node)(Code)(Java Doc) public void handleRelationalExpression(String translation, Object node)(Code)(Java Doc) public void handleSelect(String translation, Object node)(Code)(Java Doc) public void handleSortedBy(String translation, Object node)(Code)(Java Doc) public void handleSubSelect(String translation, Object node)(Code)(Java Doc) public void inAFeatureCall(AFeatureCall expression)(Code)(Java Doc) public void inALogicalExpressionTail(ALogicalExpressionTail logicalExpressionTail)(Code)(Java Doc) public void inAParenthesesPrimaryExpression(AParenthesesPrimaryExpression expression)(Code)(Java Doc) public void inAPropertyCallExpression(APropertyCallExpression expression)(Code)(Java Doc) public void inARelationalExpressionTail(ARelationalExpressionTail relationalExpressionTail)(Code)(Java Doc) public void inAStandardDeclarator(AStandardDeclarator declarator)(Code)(Java Doc) protected boolean isInitialDeclarator()(Code)(Java Doc) public void outAParenthesesPrimaryExpression(AParenthesesPrimaryExpression expression)(Code)(Java Doc) public void postProcess()(Code)(Java Doc) public void preProcess()(Code)(Java Doc) protected String replaceFragment(String fragment, String replacement, int index)(Code)(Java Doc)
|
|
|