Package org.hotrod.dynamicsql.parameters
Class ParameterOccurrence
- java.lang.Object
-
- org.hotrod.dynamicsql.parameters.ParameterOccurrence
-
- Direct Known Subclasses:
ParameterInjectionOccurence,ParameterNotNullableOccurrence,ParameterNotNullableUpdatableOccurrence,ParameterNullableOccurrence,VariableOccurrence
public abstract class ParameterOccurrence extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected TypeConverter<?,?>converterprotected Objectvalue
-
Constructor Summary
Constructors Modifier Constructor Description protectedParameterOccurrence(String name, Integer index, Object value, TypeConverter<?,?> converter)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidapplyTo(PreparedStatement ps, int ordinal, Connection conn)StringgetName()ObjectgetValue()
-
-
-
Field Detail
-
value
protected Object value
-
converter
protected TypeConverter<?,?> converter
-
-
Constructor Detail
-
ParameterOccurrence
protected ParameterOccurrence(String name, Integer index, Object value, TypeConverter<?,?> converter)
-
-
Method Detail
-
getName
public String getName()
-
getValue
public Object getValue()
-
applyTo
public abstract void applyTo(PreparedStatement ps, int ordinal, Connection conn) throws SQLException
- Throws:
SQLException
-
-