|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.jdo.oql.ParamInfo
public class ParamInfo
A class to store and check information about numbered query parameters.
Constructor Summary | |
---|---|
ParamInfo(java.lang.String userDefinedType,
java.lang.String systemType,
JDOFieldDescriptor desc,
java.lang.ClassLoader classLoader)
Creates a new ParamInfo. |
Method Summary | |
---|---|
void |
check(java.lang.String userDefinedType,
java.lang.String systemType)
Checks whether the userDefinedType and systemType match those previousle specified in the constructor. |
TypeConvertor |
getConvertor()
|
java.lang.String |
getConvertorParam()
Returns the convertor parameter. |
java.lang.Class |
getFieldType()
Returns the Java field type |
java.lang.Class |
getSQLType()
Returns the SQL type |
java.lang.Class |
getTheClass()
Accessor method for _class. |
boolean |
isUserDefined()
Specifies whether this parameter was specified in the OQL with a User defined type, like $(int)1. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParamInfo(java.lang.String userDefinedType, java.lang.String systemType, JDOFieldDescriptor desc, java.lang.ClassLoader classLoader) throws QueryException
userDefinedType
- The user defined type, empty string if undefined.systemType
- The system generated typedesc
- JDO field descriptor.classLoader
- ClassLoader instance, null if not specified.
QueryException
- if the user defined type cannot be converted to the
systemType or if the type is not found.Method Detail |
---|
public void check(java.lang.String userDefinedType, java.lang.String systemType) throws QueryException
userDefinedType
- The user defined type, empty string if undefined.systemType
- The system generated type
QueryException
- if the user defined type is not the same as the
one prevuiously specified in the constructor, or if the systemType is
not convertable to the original systemType.public boolean isUserDefined()
public java.lang.Class getTheClass()
public java.lang.Class getFieldType()
public java.lang.Class getSQLType()
public TypeConvertor getConvertor()
public java.lang.String getConvertorParam()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |