Save This Page
Home » jboss-5.0.0.CR1-src » org.jboss.ejb.plugins.cmp » jdbc » metadata » [javadoc | source]
org.jboss.ejb.plugins.cmp.jdbc.metadata
public final class: JDBCAutomaticQueryMetaData [javadoc | source]
java.lang.Object
   org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCAutomaticQueryMetaData

All Implemented Interfaces:
    JDBCQueryMetaData

This immutable class contains information about an automatically generated query. This class is a place holder used to make an automaticlly generated query look more like a user specified query. This class only contains a referance to the method used to invoke this query.
Constructor:
 public JDBCAutomaticQueryMetaData(Method method,
    JDBCReadAheadMetaData readAhead,
    Class qlCompiler,
    boolean lazyResultSetLoading) 
    Constructs a JDBCAutomaticQueryMetaData which is invoked by the specified method.
    Parameters:
    method - the method which invokes this query
    readAhead: Read - ahead meta data.
Method from org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCAutomaticQueryMetaData Summary:
equals,   getMethod,   getQLCompilerClass,   getReadAhead,   hashCode,   isLazyResultSetLoading,   isResultTypeMappingLocal,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCAutomaticQueryMetaData Detail:
 public boolean equals(Object o) 
    Compares this JDBCAutomaticQueryMetaData against the specified object. Returns true if the objects are the same. Two JDBCAutomaticQueryMetaData are the same if they are both invoked by the same method.
 public Method getMethod() 
 public Class getQLCompilerClass() 
 public JDBCReadAheadMetaData getReadAhead() 
    Gets the read ahead metadata for the query.
 public int hashCode() 
    Returns a hashcode for this JDBCAutomaticQueryMetaData. The hashcode is computed by the method which invokes this query.
 public boolean isLazyResultSetLoading() 
 public boolean isResultTypeMappingLocal() 
 public String toString() 
    Returns a string describing this JDBCAutomaticQueryMetaData. The exact details of the representation are unspecified and subject to change, but the following may be regarded as typical:

    "[JDBCAutomaticQueryMetaData: method=public org.foo.User findByName(java.lang.String)]"