Methods Summary |
---|
public boolean | getHasLocalReturnTypeMapping()
return (returnTypeMapping == RETURN_LOCAL_TYPES);
|
public boolean | getHasNoReturnTypeMapping()
return (returnTypeMapping == NO_RETURN_TYPE_MAPPING);
|
public boolean | getHasRemoteReturnTypeMapping()
return (returnTypeMapping == RETURN_REMOTE_TYPES);
|
public boolean | getHasSQL()
return (this.sql != null);
|
public boolean | getIsEjbQl()
return (query != null);
|
public java.lang.String | getQuery()Get the EJB-QL query (ejb-ql XML element)
return query;
|
public java.lang.reflect.Method | getQueryMethod()
return method;
|
public MethodDescriptor | getQueryMethodDescriptor()
return methodDescriptor;
|
public int | getReturnTypeMapping()
return returnTypeMapping;
|
public java.lang.String | getSQL()
return sql;
|
public void | print(java.lang.StringBuffer toStringBuffer)
toStringBuffer.append("Query ");
if(getQueryMethodDescriptor() != null)
getQueryMethodDescriptor().print(toStringBuffer);
toStringBuffer.append("\n");
if (getHasSQL()) {
toStringBuffer.append("SQL : ").append(getSQL());
return;
}
if (getIsEjbQl()) {
toStringBuffer.append("EJB QL: ").append(query);
return;
}
toStringBuffer.append(" No query associated");
|
public void | setHasLocalReturnTypeMapping()
returnTypeMapping = RETURN_LOCAL_TYPES;
|
public void | setHasNoReturnTypeMapping()
returnTypeMapping = NO_RETURN_TYPE_MAPPING;
|
public void | setHasRemoteReturnTypeMapping()
returnTypeMapping = RETURN_REMOTE_TYPES;
|
public void | setQuery(java.lang.String query)Set the EJB-QL query (ejb-ql XML element). If query parameter
is null, or has no content, getIsEjbQl will return false.
Otherwise, getIsEjbQl will return true.
_logger.log(Level.FINE,"input query = '" + query + "'");
String newQuery = (query != null) ? query.trim() : null;
if( (newQuery != null) && newQuery.equals("") ) {
newQuery = null;
}
if( newQuery == null ) {
_logger.log(Level.FINE,"query has no content -- setting to NULL");
} else {
_logger.log(Level.FINE,"setting query to '" + newQuery + "'");
}
this.query = newQuery;
|
public void | setQueryMethod(java.lang.reflect.Method m)public void setQueryMethod(MethodDescriptor md)
{
this.methodDescriptor = md;
}
public MethodDescriptor getQueryMethod()
{
return methodDescriptor;
}
this.method = m;
|
public void | setQueryMethodDescriptor(MethodDescriptor m)
methodDescriptor = m;
|
public void | setSQL(java.lang.String sql)
this.sql = sql;
|