java.io.Serializable
public class NamedNativeQuery
extends java.lang.Object
implements java.io.Serializable
Constructor | Description |
---|---|
NamedNativeQuery() |
Modifier and Type | Method | Description |
---|---|---|
void |
addQueryHint(int index,
QueryHint vQueryHint) |
|
void |
addQueryHint(QueryHint vQueryHint) |
|
java.util.Enumeration<? extends QueryHint> |
enumerateQueryHint() |
Method enumerateQueryHint.
|
java.lang.String |
getName() |
Returns the value of field 'name'.
|
java.lang.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.
|
java.lang.String |
getResultClass() |
Returns the value of field 'resultClass'.
|
java.lang.String |
getResultSetMapping() |
Returns the value of field 'resultSetMapping'.
|
boolean |
isValid() |
Method isValid.
|
java.util.Iterator<? extends QueryHint> |
iterateQueryHint() |
Method iterateQueryHint.
|
void |
marshal(java.io.Writer out) |
|
void |
marshal(org.xml.sax.ContentHandler handler) |
|
void |
removeAllQueryHint() |
|
boolean |
removeQueryHint(QueryHint vQueryHint) |
Method removeQueryHint.
|
QueryHint |
removeQueryHintAt(int index) |
Method removeQueryHintAt.
|
void |
setName(java.lang.String name) |
Sets the value of field 'name'.
|
void |
setQuery(java.lang.String query) |
Sets the value of field 'query'.
|
void |
setQueryHint(int index,
QueryHint vQueryHint) |
|
void |
setQueryHint(QueryHint[] vQueryHintArray) |
|
void |
setResultClass(java.lang.String resultClass) |
Sets the value of field 'resultClass'.
|
void |
setResultSetMapping(java.lang.String resultSetMapping) |
Sets the value of field 'resultSetMapping'.
|
static NamedNativeQuery |
unmarshal(java.io.Reader reader) |
Method unmarshal.
|
void |
validate() |
public void addQueryHint(QueryHint vQueryHint) throws java.lang.IndexOutOfBoundsException
vQueryHint
- java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addQueryHint(int index, QueryHint vQueryHint) throws java.lang.IndexOutOfBoundsException
index
- vQueryHint
- java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic java.util.Enumeration<? extends QueryHint> enumerateQueryHint()
public java.lang.String getName()
public java.lang.String getQuery()
public QueryHint getQueryHint(int index) throws java.lang.IndexOutOfBoundsException
index
- java.lang.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 java.lang.String getResultClass()
public java.lang.String getResultSetMapping()
public boolean isValid()
public java.util.Iterator<? extends QueryHint> iterateQueryHint()
public void marshal(java.io.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(org.xml.sax.ContentHandler handler) throws java.io.IOException, MarshalException, ValidationException
handler
- java.io.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(java.lang.String name)
name
- the value of field 'name'.public void setQuery(java.lang.String query)
query
- the value of field 'query'.public void setQueryHint(int index, QueryHint vQueryHint) throws java.lang.IndexOutOfBoundsException
index
- vQueryHint
- java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setQueryHint(QueryHint[] vQueryHintArray)
vQueryHintArray
- public void setResultClass(java.lang.String resultClass)
resultClass
- the value of field 'resultClass'.public void setResultSetMapping(java.lang.String resultSetMapping)
resultSetMapping
- the value of field 'resultSetMapping'public static NamedNativeQuery unmarshal(java.io.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 schemaIntalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com