public class NamedQuery extends Object implements Serializable
Constructor and Description |
---|
NamedQuery() |
Modifier and Type | Method and Description |
---|---|
void |
addQueryHint(int index,
QueryHint vQueryHint) |
void |
addQueryHint(QueryHint vQueryHint) |
Enumeration<? extends QueryHint> |
enumerateQueryHint()
Method enumerateQueryHint.
|
String |
getName()
Returns the value of field 'name'.
|
String |
getQuery()
Returns the value of field 'query'.
|
QueryHint[] |
getQueryHint()
Method getQueryHint.Returns the contents of the collection
in an Array.
|
QueryHint |
getQueryHint(int index)
Method getQueryHint.
|
int |
getQueryHintCount()
Method getQueryHintCount.
|
boolean |
isValid()
Method isValid.
|
Iterator<? extends QueryHint> |
iterateQueryHint()
Method iterateQueryHint.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllQueryHint() |
boolean |
removeQueryHint(QueryHint vQueryHint)
Method removeQueryHint.
|
QueryHint |
removeQueryHintAt(int index)
Method removeQueryHintAt.
|
void |
setName(String name)
Sets the value of field 'name'.
|
void |
setQuery(String query)
Sets the value of field 'query'.
|
void |
setQueryHint(int index,
QueryHint vQueryHint) |
void |
setQueryHint(QueryHint[] vQueryHintArray) |
static NamedQuery |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addQueryHint(QueryHint vQueryHint) throws IndexOutOfBoundsException
vQueryHint
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addQueryHint(int index, QueryHint vQueryHint) throws IndexOutOfBoundsException
index
- vQueryHint
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<? extends QueryHint> enumerateQueryHint()
public String getName()
public String getQuery()
public QueryHint getQueryHint(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic QueryHint[] getQueryHint()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public int getQueryHintCount()
public boolean isValid()
public Iterator<? extends QueryHint> iterateQueryHint()
public void marshal(Writer out) throws MarshalException, ValidationException
out
- MarshalException
- if object is
null or if any SAXException is thrown during marshalingValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(ContentHandler handler) throws IOException, MarshalException, ValidationException
handler
- IOException
- if an IOException occurs during
marshalingValidationException
- if this
object is an invalid instance according to the schemaMarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic void removeAllQueryHint()
public boolean removeQueryHint(QueryHint vQueryHint)
vQueryHint
- public QueryHint removeQueryHintAt(int index)
index
- public void setName(String name)
name
- the value of field 'name'.public void setQuery(String query)
query
- the value of field 'query'.public void setQueryHint(int index, QueryHint vQueryHint) throws IndexOutOfBoundsException
index
- vQueryHint
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setQueryHint(QueryHint[] vQueryHintArray)
vQueryHintArray
- public static NamedQuery unmarshal(Reader reader) throws MarshalException, ValidationException
reader
- MarshalException
- if object is
null or if any SAXException is thrown during marshalingValidationException
- if this
object is an invalid instance according to the schemapublic void validate() throws ValidationException
ValidationException
- if this
object is an invalid instance according to the schemaCopyright © 2024. All rights reserved.