biz.hammurapi.sqlc
Class QueryEntry

java.lang.Object
  extended by biz.hammurapi.sqlc.StatementEntry
      extended by biz.hammurapi.sqlc.QueryEntry
All Implemented Interfaces:
ColumnHolder

public class QueryEntry
extends StatementEntry
implements ColumnHolder

Version:
$Revision: 1.6 $
Author:
Pavel Vlasov

Field Summary
 
Fields inherited from class biz.hammurapi.sqlc.StatementEntry
description, hasNullableParameters, name, parameters, sql, task
 
Constructor Summary
QueryEntry()
           
 
Method Summary
 void addConfiguredColumn(ColumnType colType)
          Column type.
 java.util.Collection getColTypes()
           
 void setGenerateMutators(boolean generateMutators)
          If 'true' (default) then mutators (setters) are generated along with accessors (getters) in row interface.
 void setSingleRow(boolean isSingleRow)
          Set it to true if query always yield a single row, of if you are interesed in only the first row from returned resultset.
 void setSmart(boolean isSmart)
          Forces generation of smart interface implementation.
 void setSmartBase(java.lang.String smartBase)
          Base class (fully qualified name) for generated smart implementation.
 
Methods inherited from class biz.hammurapi.sqlc.StatementEntry
addConfiguredParameter, addText, getParamTypes, getUseSqlTypes, setDescription, setHasNullableParameters, setName, setParameters, setParamTypes, setStatementText, setUseSqlTypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryEntry

public QueryEntry()
Method Detail

setSmartBase

public void setSmartBase(java.lang.String smartBase)
Base class (fully qualified name) for generated smart implementation. Default is biz.hammurapi.sql.DatabaseObject The base class is supposed to have same constructors and methods as DatabaseObject. The idea is to subclass DatabaseObject to introduce additional qualities like audit, metrics, security, ... whithout changing class' contract. Applies only if isSmart==true. If not set explicitly the value is inherited from the task.

Parameters:
smartBase - The smartBase to set.

setSmart

public void setSmart(boolean isSmart)
Forces generation of smart interface implementation. Default is true.

Parameters:
isSmart -

setGenerateMutators

public void setGenerateMutators(boolean generateMutators)
If 'true' (default) then mutators (setters) are generated along with accessors (getters) in row interface.

Parameters:
generateMutator -

setSingleRow

public void setSingleRow(boolean isSingleRow)
Set it to true if query always yield a single row, of if you are interesed in only the first row from returned resultset.

Parameters:
isSingleRow -

addConfiguredColumn

public void addConfiguredColumn(ColumnType colType)
Column type. Overrides type reported by database.

Specified by:
addConfiguredColumn in interface ColumnHolder
Parameters:
paramType -

getColTypes

public java.util.Collection getColTypes()


Copyright © 2003 Hammurapi Group. All Rights Reserved.