| java.lang.Object org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCDeclaredQueryMetaData
JDBCDeclaredQueryMetaData | final public class JDBCDeclaredQueryMetaData implements JDBCQueryMetaData(Code) | | Imutable class contains information about a declated query.
author: Dain Sundstrom version: $Revision: 57209 $ |
JDBCDeclaredQueryMetaData | public JDBCDeclaredQueryMetaData(JDBCDeclaredQueryMetaData defaults, JDBCReadAheadMetaData readAhead, Class compiler, boolean lazyResultSetLoading) throws DeploymentException(Code) | | Constructs a JDBCDeclaredQueryMetaData which is defined by the
declared-sql xml element and is invoked by the specified method.
Inherits unspecified values from the defaults.
Parameters: defaults - the default values to use Parameters: readAhead - the read-ahead properties for this query |
JDBCDeclaredQueryMetaData | public JDBCDeclaredQueryMetaData(boolean isResultTypeMappingLocal, Element queryElement, Method method, JDBCReadAheadMetaData readAhead, Class compiler, boolean lazyResultSetLoading) throws DeploymentException(Code) | | Constructs a JDBCDeclaredQueryMetaData which is defined by the
declared-sql xml element and is invoked by the specified method.
Parameters: queryElement - the xml Element which contains the metadata aboutthis query Parameters: method - the method which invokes this query Parameters: readAhead - the read-ahead properties for this query |
equals | public boolean equals(Object o)(Code) | | Compares this JDBCDeclaredQueryMetaData against the specified object.
Returns true if the objects are the same. Two JDBCDeclaredQueryMetaData
are the same if they are both invoked by the same method.
Parameters: o - the reference object with which to compare true if this object is the same as the object argument; falseotherwise |
getAdditionalColumns | public String getAdditionalColumns()(Code) | | Additional columns that should be added to the select clause. For example,
columns that are used in an order by clause.
additional columns that should be added to the select clause |
getAlias | public String getAlias()(Code) | | The alias that is used for the select table.
the alias that is used for the table from which the entity orfield is selected. |
getEJBName | public String getEJBName()(Code) | | The name of the ejb from which the field will be selected.
the name of the ejb from which a field will be selected, or nullif returning a whole ejb |
getFieldName | public String getFieldName()(Code) | | The name of the cmp-field to be selected.
the name of the cmp-field to be selected or null if returning awhole ejb |
getFrom | public String getFrom()(Code) | | Gets the sql FROM clause of this query.
a String which contains the sql FROM clause |
getOrder | public String getOrder()(Code) | | Gets the sql ORDER BY clause of this query.
a String which contains the sql ORDER BY clause |
getOther | public String getOther()(Code) | | Gets other sql code which is appended to the end of the query.
This is userful for supplying hints to the query engine.
a String which contains additional sql code which isappended to the end of the query |
getQLCompilerClass | public Class getQLCompilerClass()(Code) | | |
getReadAhead | public JDBCReadAheadMetaData getReadAhead()(Code) | | Gets the read ahead metadata for the query.
the read ahead metadata for the query. |
getWhere | public String getWhere()(Code) | | Gets the sql WHERE clause of this query.
a String which contains the sql WHERE clause |
hashCode | public int hashCode()(Code) | | Returns a hashcode for this JDBCDeclaredQueryMetaData. The hashcode is
computed by the method which invokes this query.
a hash code value for this object |
isLazyResultSetLoading | public boolean isLazyResultSetLoading()(Code) | | |
isResultTypeMappingLocal | public boolean isResultTypeMappingLocal()(Code) | | |
isSelectDistinct | public boolean isSelectDistinct()(Code) | | Should the select be DISTINCT?
true if the select clause should contain distinct |
toString | public String toString()(Code) | | Returns a string describing this JDBCDeclaredQueryMetaData. The exact
details of the representation are unspecified and subject to change,
but the following may be regarded as typical:
"[JDBCDeclaredQueryMetaData: method=public org.foo.User findByName(
java.lang.String)]"
a string representation of the object |
|
|