Package ru.curs.celesta.dbutils.adaptors
Interface StaticDataAdaptor
- All Known Implementing Classes:
DBAdaptor,FirebirdAdaptor,H2Adaptor,MSSQLAdaptor,OpenSourceDbAdaptor,OraAdaptor,PostgresAdaptor
public interface StaticDataAdaptor
-
Method Summary
Modifier and TypeMethodDescriptionintcompareStrings(String left, String right) Compares strings by DB.selectStaticStrings(List<String> data, String columnName, String orderBy) Selects list of static strings in specified order.
-
Method Details
-
selectStaticStrings
Selects list of static strings in specified order.- Parameters:
data- List of String to selectcolumnName- name of result columnorderBy- expression to concatenate after "ORDER BY"- Returns:
List
-
compareStrings
Compares strings by DB.- Parameters:
left- left stringright- right string- Returns:
-1 if left < right, 0 if left == right, 1 if left > right
-