Package org.sql2o.quirks
Interface Quirks
- All Known Implementing Classes:
NoQuirks
public interface Quirks
Interface for JDBC driver specific quirks.
See
NoQuirks
for defaults.- Since:
- 4/6/14
- Author:
- aldenquimby@gmail.com
-
Method Summary
Modifier and TypeMethodDescriptionvoid
closeStatement
(Statement statement) <E> Converter
<E> converterOf
(Class<E> ofClass) getColumnName
(ResultSetMetaData meta, int colIdx) boolean
void
setParameter
(PreparedStatement statement, int paramIdx, boolean value) void
setParameter
(PreparedStatement statement, int paramIdx, int value) void
setParameter
(PreparedStatement statement, int paramIdx, long value) void
setParameter
(PreparedStatement statement, int paramIdx, InputStream value) void
setParameter
(PreparedStatement statement, int paramIdx, Boolean value) void
setParameter
(PreparedStatement statement, int paramIdx, Integer value) void
setParameter
(PreparedStatement statement, int paramIdx, Long value) void
setParameter
(PreparedStatement statement, int paramIdx, Object value) void
setParameter
(PreparedStatement statement, int paramIdx, String value) void
setParameter
(PreparedStatement statement, int paramIdx, Time value) void
setParameter
(PreparedStatement statement, int paramIdx, Timestamp value) void
setParameter
(PreparedStatement statement, int paramIdx, UUID value)
-
Method Details
-
converterOf
- Type Parameters:
E
-- Parameters:
ofClass
-- Returns:
- converter for class
-
getColumnName
- Returns:
- name of column at index
colIdx
for result setmeta
- Throws:
SQLException
-
returnGeneratedKeysByDefault
boolean returnGeneratedKeysByDefault()- Returns:
- true if queries should return generated keys by default, false otherwise
-
setParameter
- Throws:
SQLException
-
setParameter
- Throws:
SQLException
-
setParameter
- Throws:
SQLException
-
setParameter
- Throws:
SQLException
-
setParameter
- Throws:
SQLException
-
setParameter
- Throws:
SQLException
-
setParameter
- Throws:
SQLException
-
setParameter
- Throws:
SQLException
-
setParameter
- Throws:
SQLException
-
setParameter
- Throws:
SQLException
-
setParameter
- Throws:
SQLException
-
setParameter
- Throws:
SQLException
-
getRSVal
- Throws:
SQLException
-
closeStatement
- Throws:
SQLException
-
getSqlParameterParsingStrategy
SqlParameterParsingStrategy getSqlParameterParsingStrategy()
-