Package org.sql2o.quirks
Class NoQuirks
java.lang.Object
org.sql2o.quirks.NoQuirks
- All Implemented Interfaces:
Quirks
- Since:
- 4/6/14
- Author:
- aldenquimby@gmail.com
-
Field Summary
-
Constructor Summary
-
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)
-
Field Details
-
converters
-
-
Constructor Details
-
NoQuirks
-
NoQuirks
public NoQuirks()
-
-
Method Details
-
converterOf
- Specified by:
converterOf
in interfaceQuirks
- Type Parameters:
E
-- Parameters:
ofClass
-- Returns:
- converter for class
-
getColumnName
- Specified by:
getColumnName
in interfaceQuirks
- Returns:
- name of column at index
colIdx
for result setmeta
- Throws:
SQLException
-
returnGeneratedKeysByDefault
public boolean returnGeneratedKeysByDefault()- Specified by:
returnGeneratedKeysByDefault
in interfaceQuirks
- Returns:
- true if queries should return generated keys by default, false otherwise
-
setParameter
public void setParameter(PreparedStatement statement, int paramIdx, Object value) throws SQLException - Specified by:
setParameter
in interfaceQuirks
- Throws:
SQLException
-
setParameter
public void setParameter(PreparedStatement statement, int paramIdx, InputStream value) throws SQLException - Specified by:
setParameter
in interfaceQuirks
- Throws:
SQLException
-
setParameter
- Specified by:
setParameter
in interfaceQuirks
- Throws:
SQLException
-
setParameter
public void setParameter(PreparedStatement statement, int paramIdx, Integer value) throws SQLException - Specified by:
setParameter
in interfaceQuirks
- Throws:
SQLException
-
setParameter
- Specified by:
setParameter
in interfaceQuirks
- Throws:
SQLException
-
setParameter
- Specified by:
setParameter
in interfaceQuirks
- Throws:
SQLException
-
setParameter
public void setParameter(PreparedStatement statement, int paramIdx, String value) throws SQLException - Specified by:
setParameter
in interfaceQuirks
- Throws:
SQLException
-
setParameter
public void setParameter(PreparedStatement statement, int paramIdx, Timestamp value) throws SQLException - Specified by:
setParameter
in interfaceQuirks
- Throws:
SQLException
-
setParameter
- Specified by:
setParameter
in interfaceQuirks
- Throws:
SQLException
-
setParameter
public void setParameter(PreparedStatement statement, int paramIdx, Boolean value) throws SQLException - Specified by:
setParameter
in interfaceQuirks
- Throws:
SQLException
-
setParameter
- Specified by:
setParameter
in interfaceQuirks
- Throws:
SQLException
-
setParameter
public void setParameter(PreparedStatement statement, int paramIdx, boolean value) throws SQLException - Specified by:
setParameter
in interfaceQuirks
- Throws:
SQLException
-
getRSVal
- Specified by:
getRSVal
in interfaceQuirks
- Throws:
SQLException
-
closeStatement
- Specified by:
closeStatement
in interfaceQuirks
- Throws:
SQLException
-
getSqlParameterParsingStrategy
- Specified by:
getSqlParameterParsingStrategy
in interfaceQuirks
-