Coalevo Logo

net.coalevo.empp.model
Class BaseDataAccessIQExtension

java.lang.Object
  extended by net.coalevo.empp.model.BaseDataAccessIQExtension
All Implemented Interfaces:
DataAccessIQExtension, IQNamespaceExtension, NamespaceExtension, Recyclable

public abstract class BaseDataAccessIQExtension
extends java.lang.Object
implements DataAccessIQExtension

Abstract class that provides the base for

Version:
0.0.1 (31/01/2009)
Author:
Dieter Wimberger (wimpi)

Field Summary
static java.lang.String ATTR_NAME
           
static java.lang.String ELEMENT_PARAM
           
static java.lang.String ELEMENT_PARAMS
           
static java.lang.String ELEMENT_QUERY
           
 
Fields inherited from interface net.coalevo.empp.model.DataAccessIQExtension
TYPE_DELETE, TYPE_GET, TYPE_PUT
 
Constructor Summary
BaseDataAccessIQExtension()
           
 
Method Summary
 java.lang.String getParameter(java.lang.String key)
          Returns the parameter with the given key.
 boolean hasParameters()
          Tests if there is any parameter available for the query.
 boolean isDelete()
          Tests if this DataAccessIQExtension is of DataAccessIQExtension.TYPE_DELETE.
 boolean isGet()
          Tests if this DataAccessIQExtension is of DataAccessIQExtension.TYPE_GET.
 boolean isPut()
          Tests if this DataAccessIQExtension is of DataAccessIQExtension.TYPE_PUT.
 void readQuery(javax.xml.stream.XMLStreamReader reader)
          Reads the query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.coalevo.empp.model.NamespaceExtension
getNamespace, readExtensionSpecific, writeExtensionSpecific
 
Methods inherited from interface net.coalevo.empp.util.Recyclable
recycle
 

Field Detail

ELEMENT_QUERY

public static final java.lang.String ELEMENT_QUERY
See Also:
Constant Field Values

ELEMENT_PARAMS

public static final java.lang.String ELEMENT_PARAMS
See Also:
Constant Field Values

ELEMENT_PARAM

public static final java.lang.String ELEMENT_PARAM
See Also:
Constant Field Values

ATTR_NAME

public static final java.lang.String ATTR_NAME
See Also:
Constant Field Values
Constructor Detail

BaseDataAccessIQExtension

public BaseDataAccessIQExtension()
Method Detail

getParameter

public java.lang.String getParameter(java.lang.String key)
Description copied from interface: DataAccessIQExtension
Returns the parameter with the given key.

Specified by:
getParameter in interface DataAccessIQExtension
Parameters:
key - a parameter key.
Returns:
the value bound to the key as String.

hasParameters

public boolean hasParameters()
Description copied from interface: DataAccessIQExtension
Tests if there is any parameter available for the query.

Specified by:
hasParameters in interface DataAccessIQExtension
Returns:
true if available, false otherwise.

isGet

public boolean isGet()
Description copied from interface: DataAccessIQExtension
Tests if this DataAccessIQExtension is of DataAccessIQExtension.TYPE_GET.

Specified by:
isGet in interface DataAccessIQExtension
Returns:
true it of DataAccessIQExtension.TYPE_GET, false otherwise.

isDelete

public boolean isDelete()
Description copied from interface: DataAccessIQExtension
Tests if this DataAccessIQExtension is of DataAccessIQExtension.TYPE_DELETE.

Specified by:
isDelete in interface DataAccessIQExtension
Returns:
true it of DataAccessIQExtension.TYPE_DELETE, false otherwise.

isPut

public boolean isPut()
Description copied from interface: DataAccessIQExtension
Tests if this DataAccessIQExtension is of DataAccessIQExtension.TYPE_PUT.

Specified by:
isPut in interface DataAccessIQExtension
Returns:
true it of DataAccessIQExtension.TYPE_PUT, false otherwise.

readQuery

public void readQuery(javax.xml.stream.XMLStreamReader reader)
               throws javax.xml.stream.XMLStreamException
Description copied from interface: DataAccessIQExtension
Reads the query.

Specified by:
readQuery in interface DataAccessIQExtension
Parameters:
reader - the reader.
Throws:
javax.xml.stream.XMLStreamException - if the stream is malformed or an IO error occurs.

Coalevo Logo

(c) 2004-2009 VFI (http://www.vfi.or.at)