org.oXML.extras.db
Class Query

java.lang.Object
  extended byorg.oXML.extras.db.Query

public class Query
extends java.lang.Object

Encapsulates a db-to-xml Mapping - comprises of one complete mapping with: a StatementTemplate representing the db query,

See Also:
StatementTemplate

Constructor Summary
Query(StatementTemplate statement, Name connectionName, Variable[] params)
           
Query(StatementTemplate statement, Template target, Name connectionName, Variable[] params)
           
 
Method Summary
 void execute(RuntimeContext context)
           
 Name getConnectionName()
           
 void setParameter(Name name, Node value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Query

public Query(StatementTemplate statement,
             Name connectionName,
             Variable[] params)

Query

public Query(StatementTemplate statement,
             Template target,
             Name connectionName,
             Variable[] params)
Method Detail

getConnectionName

public Name getConnectionName()

setParameter

public void setParameter(Name name,
                         Node value)

execute

public void execute(RuntimeContext context)
             throws ObjectBoxException
Throws:
ObjectBoxException