Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.makumba.db.makumba
Class AttributeParametrizer

    java.lang.Object
      org.makumba.db.makumba.AttributeParametrizer

    public class AttributeParametrizer

extends Object

Map $name to $n

Field Summary
`(package private) List<String>` | `argumentNames` names of all arguments, to keep an order
`(package private) String` | `oql`

Constructor Summary
`AttributeParametrizer(String oql, boolean acceptColon)` build a parametrizer from an OQL query, in the given database and with the given example arguments

Method Summary
`Object[]` | `getTansformedParams(Map<String,Object> a)` execute the query
`String` | `getTransformedQuery(Map<String,Object> args)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### argumentNames

    List<String> argumentNames

  names of all arguments, to keep an order

### oql

    String oql

Constructor Detail

### AttributeParametrizer

    public AttributeParametrizer(String oql,
                                 boolean acceptColon)
                          throws LogicException

  build a parametrizer from an OQL query, in the given database and with the given example arguments

  Parameters:
    `acceptColon` - accept colon, or just dollar parameters
  Throws:
    `LogicException`

Method Detail

### getTransformedQuery

    public String getTransformedQuery(Map<String,Object> args)

### getTansformedParams

    public Object[] getTansformedParams(Map<String,Object> a)

  execute the query

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Docs generated on 2009-02-25 14:20