Class JDBCValueMappings
java.lang.Object
de.hybris.platform.persistence.property.JDBCValueMappings
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic interfacestatic interfacestatic classstatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Integerstatic final Stringfinal JDBCValueMappings.ValueReader<PK,?> final JDBCValueMappings.ValueWriter<PK,?> final JDBCValueMappings.ValueReader<String,?> final JDBCValueMappings.ValueWriter<String,?> static final Integerstatic final String -
Method Summary
Modifier and TypeMethodDescriptionstatic final Class<?>convertPrimitiveTypes(Class<?> c) final PreparedStatementfillStatement(PreparedStatement stmt, List values) getDumpPropertyCountQuery(String dumpTableName, String name, int typeCode) getDumpPropertyMovalQuery(String dumpTableName, String name, int typeCode) static JDBCValueMappingsstatic <JALO,DB> JDBCValueMappings.ValueReader<JALO, DB> getJDBCValueReader(Class<? extends JALO> javaClass) static <JALO,DB> JDBCValueMappings.ValueWriter<JALO, DB> getJDBCValueWriter(Class<? extends JALO> javaClass) getQueryResults(ResultSet rs, List resultClasses, int start, int count) static final intfinal intgetTotalCount(ResultSet rs, JDBCValueMappings.RowFetchResult rfr, int start, int count, Connection con, TranslatedQuery.ExecutableQuery executableQuery, boolean rsWasLimited) use this to get total row count after callinggetQueryResults(ResultSet, List, int, int).final intgetTotalCount(ResultSet rs, JDBCValueMappings.RowFetchResult rfr, int start, int count, Connection con, TranslatedQuery.ExecutableQuery executableQuery, boolean rsWasLimited, List<Hint> hints) use this to get total row count after calling#getQueryResults(ResultSet, List, int, int, List<Hint>).intgetTotalCountFromCountQuery(Connection con, String query, List values) intgetTotalCountFromCountQuery(Connection con, String query, List values, List<Hint> hints) getValueReader(Class<?> javaClass) getValueWriter(Class<?> javaClass) voidstatic booleanprocessRows(ResultSet rs, List<Class<?>> resultClasses, int start, int count, Consumer<Object> rowConsumer) static byte[]stringToByteArray(String str) converts strings like 0AB10CFF3A to a byte array
-
Field Details
-
T
-
F
-
UNLOC_TABLE_POSTFIX
-
LOC_TABLE_POSTFIX
-
PK_WRITER
-
PK_READER
-
STRING_WRITER
-
STRING_READER
-
-
Method Details
-
getInstance
-
convertPrimitiveTypes
-
getValueReader
public final JDBCValueMappings.ValueReader getValueReader(Class<?> javaClass) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
getValueWriter
public final JDBCValueMappings.ValueWriter getValueWriter(Class<?> javaClass) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
getJDBCValueReader
public static <JALO,DB> JDBCValueMappings.ValueReader<JALO,DB> getJDBCValueReader(Class<? extends JALO> javaClass) -
getJDBCValueWriter
public static <JALO,DB> JDBCValueMappings.ValueWriter<JALO,DB> getJDBCValueWriter(Class<? extends JALO> javaClass) -
fillStatement
public final PreparedStatement fillStatement(PreparedStatement stmt, List values) throws SQLException - Throws:
SQLException
-
getQueryResults
public final JDBCValueMappings.RowFetchResult getQueryResults(ResultSet rs, List resultClasses, int start, int count) throws SQLException - Throws:
SQLException
-
getTotalCount
public final int getTotalCount(ResultSet rs, JDBCValueMappings.RowFetchResult rfr, int start, int count, Connection con, TranslatedQuery.ExecutableQuery executableQuery, boolean rsWasLimited) throws SQLException use this to get total row count after callinggetQueryResults(ResultSet, List, int, int). make sure that the samestartandcountsettings are used as forgetQueryResults- Throws:
SQLException
-
getTotalCount
public final int getTotalCount(ResultSet rs, JDBCValueMappings.RowFetchResult rfr, int start, int count, Connection con, TranslatedQuery.ExecutableQuery executableQuery, boolean rsWasLimited, List<Hint> hints) throws SQLException use this to get total row count after calling#getQueryResults(ResultSet, List, int, int, List<Hint>). make sure that the samestartandcountsettings are used as forgetQueryResults- Throws:
SQLException
-
getTotalCountFromCountQuery
public int getTotalCountFromCountQuery(Connection con, String query, List values) throws SQLException - Throws:
SQLException
-
getTotalCountFromCountQuery
public int getTotalCountFromCountQuery(Connection con, String query, List values, List<Hint> hints) throws SQLException - Throws:
SQLException
-
getScrollableThreshold
public static final int getScrollableThreshold() -
processRows
public org.apache.commons.lang3.tuple.Pair<Boolean,Integer> processRows(ResultSet rs, List<Class<?>> resultClasses, int start, int count, Consumer<Object> rowConsumer) throws SQLException - Throws:
SQLException
-
initJavaRWMapping
public void initJavaRWMapping() -
stringToByteArray
converts strings like 0AB10CFF3A to a byte array -
pkToSQL
-
getDumpPropertyMovalQuery
-
getDumpPropertyCountQuery
-
isChar2CharMappingEnabled
public static boolean isChar2CharMappingEnabled()
-