org.ow2.jonas.generators.genic
Class VcParamWhere
java.lang.Object
org.ow2.jonas.generators.genic.VcParamWhere
public class VcParamWhere
- extends Object
This class is the "Velocity context" for a parameter of a where clause of finder method for CMP1 only,
used in the Velocity Templates.
- Author:
- Helene Joanin : Initial developer
getName
public String getName()
- Returns:
- Returns the name of the parameter (ie "p1")
getTypeName
public String getTypeName()
- Returns:
- Returns the type's name of the parameter
getSqlTypeName
public String getSqlTypeName()
- Returns:
- Returns the SQL type's name of the parameter
getSqlSetMethod
public String getSqlSetMethod()
- Returns:
- Returns the SQL setter method associated to the parameter
hasNotPrimitiveType
public boolean hasNotPrimitiveType()
- Returns:
- Returns true if the parameter's type is not a java primitive type
hasBigIntegerType
public boolean hasBigIntegerType()
- Returns:
- Returns true if the parameter's type is java.math.BigInteger
hasSerializableType
public boolean hasSerializableType()
- Returns:
- Returns true if the parameter's type is Serializable
hasJavaLangTypeExceptString
public boolean hasJavaLangTypeExceptString()
- Returns:
- true if the parameter's type is a java.lang.* type except java.lang.string
toString
public String toString()
- Overrides:
toString
in class Object
- Returns:
- Returns a string representation of the VcParamWhere object to debug use
Copyright © 2010 OW2 Consortium. All Rights Reserved.