Enum ProcedureCallerFactory.ParameterRegistration
- java.lang.Object
-
- java.lang.Enum<ProcedureCallerFactory.ParameterRegistration>
-
- com.github.marschall.storedprocedureproxy.ProcedureCallerFactory.ParameterRegistration
-
- All Implemented Interfaces:
Serializable
,Comparable<ProcedureCallerFactory.ParameterRegistration>
- Enclosing class:
- ProcedureCallerFactory<T>
public static enum ProcedureCallerFactory.ParameterRegistration extends Enum<ProcedureCallerFactory.ParameterRegistration>
Determines how parameters should be registered.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INDEX_AND_TYPE
Binds by index and type.INDEX_ONLY
Binds by index only.NAME_AND_TYPE
Binds by name and type.NAME_ONLY
Binds by name only.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProcedureCallerFactory.ParameterRegistration
valueOf(String name)
Returns the enum constant of this type with the specified name.static ProcedureCallerFactory.ParameterRegistration[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INDEX_ONLY
public static final ProcedureCallerFactory.ParameterRegistration INDEX_ONLY
Binds by index only.- See Also:
PreparedStatement.setObject(int, Object)
-
NAME_ONLY
public static final ProcedureCallerFactory.ParameterRegistration NAME_ONLY
Binds by name only.
-
INDEX_AND_TYPE
public static final ProcedureCallerFactory.ParameterRegistration INDEX_AND_TYPE
Binds by index and type.
-
NAME_AND_TYPE
public static final ProcedureCallerFactory.ParameterRegistration NAME_AND_TYPE
Binds by name and type.
-
-
Method Detail
-
values
public static ProcedureCallerFactory.ParameterRegistration[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ProcedureCallerFactory.ParameterRegistration c : ProcedureCallerFactory.ParameterRegistration.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProcedureCallerFactory.ParameterRegistration valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-