Package com.sap.cds.jdbc.generic
Class AbstractValueBinder
java.lang.Object
com.sap.cds.jdbc.generic.AbstractValueBinder
- All Implemented Interfaces:
ValueBinder
- Direct Known Subclasses:
GenericBinder
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sap.cds.jdbc.spi.ValueBinder
ValueBinder.Getter<T extends Object>, ValueBinder.Setter -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractValueBinder(int timestampFractionalSeconds, TimeZone timeZone) -
Method Summary
Modifier and TypeMethodDescriptionprotected BooleangetBoolean(ResultSet result, int i) protected Calendarprotected Doubleprotected Floatprotected abstract InstantgetInstant(ResultSet result, int i) protected Integerprotected abstract InputStreamgetLargeBinary(ResultSet result, int i) protected abstract ReadergetLargeString(ResultSet result, int i) protected abstract LocalDategetLocalDate(ResultSet result, int i) protected abstract LocalTimegetLocalTime(ResultSet result, int i) protected Longprotected CdsVectorgetRealVector(ResultSet result, int i) protected Short<T> ValueBinder.Getter<T>getter(CdsBaseType cdsType, boolean isMediaType) <T> TgetValue(ResultSet result, int i, CdsBaseType cdsType, boolean isMediaType) protected abstract voidsetInstant(PreparedStatement pstmt, int i, Instant instant) protected abstract voidsetLargeBinary(PreparedStatement result, int i, InputStream stream) protected abstract voidsetLargeString(PreparedStatement result, int i, Reader reader) protected voidsetLocalDate(PreparedStatement pstmt, int i, Object localDate) protected abstract voidsetLocalDate(PreparedStatement pstmt, int i, LocalDate localDate) protected voidsetLocalTime(PreparedStatement pstmt, int i, Object localTime) protected abstract voidsetLocalTime(PreparedStatement pstmt, int i, LocalTime localTime) protected voidsetRealVector(PreparedStatement pstmt, int i, Object vector) setter(CdsBaseType cdsType) voidsetValue(PreparedStatement pstmt, int i, CdsBaseType cdsType, Object value) protected voidsetValue(PreparedStatement pstmt, int i, Object value)
-
Field Details
-
UTC
-
-
Constructor Details
-
AbstractValueBinder
-
-
Method Details
-
getter
- Specified by:
getterin interfaceValueBinder
-
getValue
public <T> T getValue(ResultSet result, int i, CdsBaseType cdsType, boolean isMediaType) throws SQLException - Specified by:
getValuein interfaceValueBinder- Throws:
SQLException
-
setValue
public void setValue(PreparedStatement pstmt, int i, CdsBaseType cdsType, Object value) throws SQLException - Specified by:
setValuein interfaceValueBinder- Throws:
SQLException
-
setter
- Specified by:
setterin interfaceValueBinder
-
setValue
- Throws:
SQLException
-
setRealVector
- Throws:
SQLException
-
getRealVector
- Throws:
SQLException
-
setLocalTime
- Throws:
SQLException
-
setLocalTime
protected abstract void setLocalTime(PreparedStatement pstmt, int i, LocalTime localTime) throws SQLException - Throws:
SQLException
-
setLocalDate
- Throws:
SQLException
-
setLocalDate
protected abstract void setLocalDate(PreparedStatement pstmt, int i, LocalDate localDate) throws SQLException - Throws:
SQLException
-
setInstant
protected abstract void setInstant(PreparedStatement pstmt, int i, Instant instant) throws SQLException - Throws:
SQLException
-
setLargeBinary
protected abstract void setLargeBinary(PreparedStatement result, int i, InputStream stream) throws SQLException - Throws:
SQLException
-
getLocalTime
- Throws:
SQLException
-
getLocalDate
- Throws:
SQLException
-
getInstant
- Throws:
SQLException
-
setLargeString
protected abstract void setLargeString(PreparedStatement result, int i, Reader reader) throws SQLException - Throws:
SQLException
-
getLargeString
- Throws:
SQLException
-
getLargeBinary
- Throws:
SQLException
-
getBoolean
- Throws:
SQLException
-
getDouble
- Throws:
SQLException
-
getShort
- Throws:
SQLException
-
getInt
- Throws:
SQLException
-
getLong
- Throws:
SQLException
-
getFloat
- Throws:
SQLException
-
getCalendarForDefaultTimeZone
-