sf logo

sf.qof.parser
Class ParameterDefinitionImpl

java.lang.Object
  extended by sf.qof.parser.ParameterDefinitionImpl
All Implemented Interfaces:
Definition, ParameterDefinition

public class ParameterDefinitionImpl
extends Object
implements ParameterDefinition

Default implementation of a parameter definition.


Constructor Summary
ParameterDefinitionImpl()
           
 
Method Summary
 String getField()
          Returns the name a field if the parameter is a Java bean.
 int[] getIndexes()
          Returns an array of SQL parameter indexes.
 String[] getNames()
          Returns an array of SQL parameter names (for callable statements).
 int getParameter()
          Returns the index of the parameter in the query method.
 String getPartialDefinitionGroup()
          Returns group name of the partial definition or null.
 int getPartialDefinitionPart()
          Returns the part number of the partial definition.
 String getType()
          Returns the type of the parameter (string, int, etc.).
 boolean isPartialDefinition()
          Returns true is the definition is a partial definition that needs to be combined.
 void setField(String field)
           
 void setIndexes(int[] indexes)
           
 void setNames(String[] names)
           
 void setParameter(int parameter)
           
 void setPartialDefinitionGroup(String partialDefinitionGroup)
           
 void setPartialDefinitionPart(int partialDefinitionPart)
           
 void setType(String type)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParameterDefinitionImpl

public ParameterDefinitionImpl()
Method Detail

getNames

public String[] getNames()
Description copied from interface: ParameterDefinition
Returns an array of SQL parameter names (for callable statements). Can be empty.

Specified by:
getNames in interface ParameterDefinition
Returns:
array of SQL parameter names

getField

public String getField()
Description copied from interface: ParameterDefinition
Returns the name a field if the parameter is a Java bean.

Specified by:
getField in interface ParameterDefinition
Returns:
name of a field in a Java bean parameter.

getIndexes

public int[] getIndexes()
Description copied from interface: ParameterDefinition
Returns an array of SQL parameter indexes. Can be empty.

Specified by:
getIndexes in interface ParameterDefinition
Returns:
array of SQL parameter indexes

getParameter

public int getParameter()
Description copied from interface: ParameterDefinition
Returns the index of the parameter in the query method.

Specified by:
getParameter in interface ParameterDefinition
Returns:
parameter index in query method

getType

public String getType()
Description copied from interface: ParameterDefinition
Returns the type of the parameter (string, int, etc.).

Specified by:
getType in interface Definition
Specified by:
getType in interface ParameterDefinition
Returns:
type of the parameter

setNames

public void setNames(String[] names)

setField

public void setField(String field)

setIndexes

public void setIndexes(int[] indexes)

setParameter

public void setParameter(int parameter)

setType

public void setType(String type)

toString

public String toString()
Overrides:
toString in class Object

getPartialDefinitionGroup

public String getPartialDefinitionGroup()
Description copied from interface: Definition
Returns group name of the partial definition or null.

Specified by:
getPartialDefinitionGroup in interface Definition
Returns:
group name of partial definition or null

setPartialDefinitionGroup

public void setPartialDefinitionGroup(String partialDefinitionGroup)

getPartialDefinitionPart

public int getPartialDefinitionPart()
Description copied from interface: Definition
Returns the part number of the partial definition.

Specified by:
getPartialDefinitionPart in interface Definition
Returns:
part number of the partial definition or 0

setPartialDefinitionPart

public void setPartialDefinitionPart(int partialDefinitionPart)

isPartialDefinition

public boolean isPartialDefinition()
Description copied from interface: Definition
Returns true is the definition is a partial definition that needs to be combined.

Specified by:
isPartialDefinition in interface Definition
Returns:
true if definition is partial

sf logo

Copyright © 2007 brunella ltd. All Rights Reserved.