net.sf.csutils.core.query.impl
Class XQueryCsqlStatement

java.lang.Object
  extended by net.sf.csutils.core.query.impl.XQueryCsqlStatement
All Implemented Interfaces:
CsqlStatement

public class XQueryCsqlStatement
extends java.lang.Object
implements CsqlStatement


Constructor Summary
XQueryCsqlStatement(java.lang.String pXQuery, java.util.List<QName> pObjectTypes, java.util.List<AbstractQueryGenerator.Parameter> pParameters, int pParameterOffset)
           
 
Method Summary
protected  java.lang.String bindParam(javax.xml.xquery.XQExpression pExpression, java.lang.String pVar, java.lang.Object pObject)
           
protected  java.lang.String bindParams(javax.xml.xquery.XQExpression pExpression)
           
 XQueryCsqlStatement clone(RegistryFacade pFacade)
          Creates a cloned instance of this XQueryCsqlStatement.
 java.util.List<javax.xml.registry.infomodel.RegistryObject[]> executeArrayQuery()
           
 java.util.List<javax.xml.registry.infomodel.RegistryObject> executeQuery()
           
 java.lang.String getXQuery()
           
 void setBoolean(int pNum, boolean pValue)
           
 void setBoolean(java.lang.String pName, boolean pValue)
           
 void setByte(int pNum, byte pValue)
           
 void setByte(java.lang.String pName, byte pValue)
           
 void setDate(int pNum, java.util.Calendar pCalendar)
           
 void setDate(java.lang.String pName, java.util.Calendar pCalendar)
           
 void setDateTime(int pNum, java.util.Calendar pCalendar)
           
 void setDateTime(java.lang.String pName, java.util.Calendar pCalendar)
           
 void setDouble(int pNum, double pValue)
           
 void setDouble(java.lang.String pName, double pValue)
           
 void setFloat(int pNum, float pValue)
           
 void setFloat(java.lang.String pName, float pValue)
           
 void setInt(int pNum, int pValue)
           
 void setInt(java.lang.String pName, int pValue)
           
 void setLong(int pNum, long pValue)
           
 void setLong(java.lang.String pName, long pValue)
           
 void setShort(int pNum, short pValue)
           
 void setShort(java.lang.String pName, short pValue)
           
 void setString(int pNum, java.lang.String pValue)
           
 void setString(java.lang.String pName, java.lang.String pValue)
           
 void setTime(int pNum, java.util.Calendar pCalendar)
           
 void setTime(java.lang.String pName, java.util.Calendar pCalendar)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XQueryCsqlStatement

public XQueryCsqlStatement(java.lang.String pXQuery,
                           java.util.List<QName> pObjectTypes,
                           java.util.List<AbstractQueryGenerator.Parameter> pParameters,
                           int pParameterOffset)
Method Detail

clone

public XQueryCsqlStatement clone(RegistryFacade pFacade)
Creates a cloned instance of this XQueryCsqlStatement.

Specified by:
clone in interface CsqlStatement

setString

public void setString(int pNum,
                      java.lang.String pValue)
Specified by:
setString in interface CsqlStatement

setString

public void setString(java.lang.String pName,
                      java.lang.String pValue)
Specified by:
setString in interface CsqlStatement

setByte

public void setByte(int pNum,
                    byte pValue)
Specified by:
setByte in interface CsqlStatement

setByte

public void setByte(java.lang.String pName,
                    byte pValue)
Specified by:
setByte in interface CsqlStatement

setShort

public void setShort(int pNum,
                     short pValue)
Specified by:
setShort in interface CsqlStatement

setShort

public void setShort(java.lang.String pName,
                     short pValue)
Specified by:
setShort in interface CsqlStatement

setInt

public void setInt(int pNum,
                   int pValue)
Specified by:
setInt in interface CsqlStatement

setInt

public void setInt(java.lang.String pName,
                   int pValue)
Specified by:
setInt in interface CsqlStatement

setLong

public void setLong(int pNum,
                    long pValue)
Specified by:
setLong in interface CsqlStatement

setLong

public void setLong(java.lang.String pName,
                    long pValue)
Specified by:
setLong in interface CsqlStatement

setFloat

public void setFloat(int pNum,
                     float pValue)
Specified by:
setFloat in interface CsqlStatement

setFloat

public void setFloat(java.lang.String pName,
                     float pValue)
Specified by:
setFloat in interface CsqlStatement

setDouble

public void setDouble(int pNum,
                      double pValue)
Specified by:
setDouble in interface CsqlStatement

setDouble

public void setDouble(java.lang.String pName,
                      double pValue)
Specified by:
setDouble in interface CsqlStatement

setDateTime

public void setDateTime(int pNum,
                        java.util.Calendar pCalendar)
Specified by:
setDateTime in interface CsqlStatement

setDateTime

public void setDateTime(java.lang.String pName,
                        java.util.Calendar pCalendar)
Specified by:
setDateTime in interface CsqlStatement

setDate

public void setDate(int pNum,
                    java.util.Calendar pCalendar)
Specified by:
setDate in interface CsqlStatement

setDate

public void setDate(java.lang.String pName,
                    java.util.Calendar pCalendar)
Specified by:
setDate in interface CsqlStatement

setTime

public void setTime(int pNum,
                    java.util.Calendar pCalendar)
Specified by:
setTime in interface CsqlStatement

setTime

public void setTime(java.lang.String pName,
                    java.util.Calendar pCalendar)
Specified by:
setTime in interface CsqlStatement

setBoolean

public void setBoolean(int pNum,
                       boolean pValue)
Specified by:
setBoolean in interface CsqlStatement

setBoolean

public void setBoolean(java.lang.String pName,
                       boolean pValue)
Specified by:
setBoolean in interface CsqlStatement

getXQuery

public java.lang.String getXQuery()

bindParam

protected java.lang.String bindParam(javax.xml.xquery.XQExpression pExpression,
                                     java.lang.String pVar,
                                     java.lang.Object pObject)
                              throws javax.xml.xquery.XQException,
                                     javax.xml.registry.JAXRException
Throws:
javax.xml.xquery.XQException
javax.xml.registry.JAXRException

bindParams

protected java.lang.String bindParams(javax.xml.xquery.XQExpression pExpression)
                               throws javax.xml.registry.JAXRException,
                                      javax.xml.xquery.XQException
Throws:
javax.xml.registry.JAXRException
javax.xml.xquery.XQException

executeArrayQuery

public java.util.List<javax.xml.registry.infomodel.RegistryObject[]> executeArrayQuery()
                                                                                throws javax.xml.registry.JAXRException
Specified by:
executeArrayQuery in interface CsqlStatement
Throws:
javax.xml.registry.JAXRException

executeQuery

public java.util.List<javax.xml.registry.infomodel.RegistryObject> executeQuery()
                                                                         throws javax.xml.registry.JAXRException
Specified by:
executeQuery in interface CsqlStatement
Throws:
javax.xml.registry.JAXRException


Copyright © 2009-2010. All Rights Reserved.