net.sf.farrago.defimpl
Class FarragoDefaultSessionPersonality.ParamValidator

java.lang.Object
  extended by net.sf.farrago.defimpl.FarragoDefaultSessionPersonality.ParamValidator
Enclosing class:
FarragoDefaultSessionPersonality

public class FarragoDefaultSessionPersonality.ParamValidator
extends Object

ParamValidator is a basic session parameter validator


Field Summary
private static int BOOLEAN_TYPE
           
private static int DIRECTORY_TYPE
           
private static int INT_TYPE
           
private static int LONG_TYPE
           
private  Map<String,FarragoDefaultSessionPersonality.ParamDesc> params
           
private static int STRING_TYPE
           
 
Constructor Summary
FarragoDefaultSessionPersonality.ParamValidator()
           
 
Method Summary
 void registerBoolParam(String name, boolean nullability)
           
 void registerDirectoryParam(String name, boolean nullability)
           
 void registerIntParam(String name, boolean nullability)
           
 void registerIntParam(String name, boolean nullability, int start, int end)
           
 void registerLongParam(String name, boolean nullability, long start, long end)
           
 void registerStringParam(String name, boolean nullability)
           
 String validate(FarragoSessionDdlValidator ddlValidator, String name, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BOOLEAN_TYPE

private static final int BOOLEAN_TYPE
See Also:
Constant Field Values

INT_TYPE

private static final int INT_TYPE
See Also:
Constant Field Values

STRING_TYPE

private static final int STRING_TYPE
See Also:
Constant Field Values

DIRECTORY_TYPE

private static final int DIRECTORY_TYPE
See Also:
Constant Field Values

LONG_TYPE

private static final int LONG_TYPE
See Also:
Constant Field Values

params

private Map<String,FarragoDefaultSessionPersonality.ParamDesc> params
Constructor Detail

FarragoDefaultSessionPersonality.ParamValidator

public FarragoDefaultSessionPersonality.ParamValidator()
Method Detail

registerBoolParam

public void registerBoolParam(String name,
                              boolean nullability)

registerIntParam

public void registerIntParam(String name,
                             boolean nullability)

registerIntParam

public void registerIntParam(String name,
                             boolean nullability,
                             int start,
                             int end)

registerLongParam

public void registerLongParam(String name,
                              boolean nullability,
                              long start,
                              long end)

registerStringParam

public void registerStringParam(String name,
                                boolean nullability)

registerDirectoryParam

public void registerDirectoryParam(String name,
                                   boolean nullability)

validate

public String validate(FarragoSessionDdlValidator ddlValidator,
                       String name,
                       String value)