|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector
edu.stanford.slac.aida.lib.util.common._DaReference
edu.stanford.slac.aida.lib.da.DaReference
public class DaReference
This class encapsulates a reference to a given AIDA query, including parameters. It can be parsed, compiled and executed using relevant methods.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class edu.stanford.slac.aida.lib.util.common._DaReference |
|---|
_DaReference.Type |
| Field Summary |
|---|
| Fields inherited from class edu.stanford.slac.aida.lib.util.common._DaReference |
|---|
attribute, bounds, instance, m_args, m_err, m_ref, m_refI, name, type |
| Fields inherited from class java.util.Vector |
|---|
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
DaReference()
Creates a new instance of DaReference. |
|
DaReference(java.lang.String target)
Constructor of a DaReference that takes a target string as a parameter. |
|
DaReference(java.lang.String target,
DaObject da)
This constructor creates a DaReference object, parses the given AIDA Query Specification and then compiles it against a valid DaObject (Data Access Object) |
|
| Method Summary | |
|---|---|
int |
getCount()
Get the number of Aida Data Provider services that would partake in processing the query of this DaReference. |
int[] |
getServices()
Get the Service IDs of the Aida Data Providers that would partake in processing the query of this DaReference. |
int |
getType()
Get the expected type of the object that this query would return. |
protected void |
init()
Initialise the DaReference object |
void |
setCount(int count)
Set count of elements in the array that is expected to be returned from this DaReference. |
void |
setParam(java.lang.String parmlist)
Set parameters for an Aida query in one string. |
void |
setParam(java.lang.String name,
java.lang.String value)
Set a single parameter for this DaReference. |
void |
setTarget(java.lang.String target)
To set the target of this DaReference. |
void |
setType(int type)
Set the type data expected from this DaReference. |
| Methods inherited from class java.util.Vector |
|---|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
iterator, listIterator, listIterator |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
iterator, listIterator, listIterator |
| Constructor Detail |
|---|
public DaReference()
public DaReference(java.lang.String target)
throws edu.stanford.slac.except.UndefinedNameException
target - This is the string representation of the AIDA
Query that is to be referenced by this object
edu.stanford.slac.except.UndefinedNameException
public DaReference(java.lang.String target,
DaObject da)
throws edu.stanford.slac.except.UndefinedNameException
target - AIDA Query Specification that specifies the required
target Data Access.da - A data access object with with to compile
the DaReference target string
edu.stanford.slac.except.UndefinedNameException| Method Detail |
|---|
public void setTarget(java.lang.String target)
throws edu.stanford.slac.except.UndefinedNameException
setTarget in class _DaReferencetarget - AIDA Query Specification that specifies the required
target Data Access.
edu.stanford.slac.except.UndefinedNameExceptionprotected void init()
init in class _DaReferencepublic void setParam(java.lang.String parmlist)
"parm=value;parm=value;parm=value".
parmlist - String containing parameter/value pairs in the form.
PARAMETER=VALUE;PARAMETER=VALUE...
public void setParam(java.lang.String name,
java.lang.String value)
name - Name of the parameter whose value is being setvalue - The value of the parameter being set.
This is always specified as a string and is converted as
necessary.public void setType(int type)
type - A DaValue.Type code specifying the expected return type of the
queryDaValue.Typepublic void setCount(int count)
count - The expected length of the array to be returnedpublic int getType()
public int[] getServices()
public int getCount()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||