Class DOFWUtils

java.lang.Object
org.eclnt.ccee.db.dofw.util.DOFWUtils
All Implemented Interfaces:
ICCEEConstants

public class DOFWUtils extends Object implements ICCEEConstants
  • Constructor Details

    • DOFWUtils

      public DOFWUtils()
  • Method Details

    • splitUpQueryColVals

      public static DOFWUtils.SplitUpColVals splitUpQueryColVals(Object... colVals)
      Split the object array into the conditions array and the order-by array. The split is done by searching the String ICCEEConstants.ORDERBY as delimiter.
    • quc

      public static String quc(String contextName, String columnName)
      Query update column. - This function is used when building the actual SQL statement: column names by default are written without modification into the SQL statement - some DB servers require some surrounding quotes. Example: if using case-sensitive column names with Oracle, then column names have to be surrounded by \".
    • qut

      public static String qut(String contextName, String tableName)
      Query update table. - Transfers the table name while writing the SQL statement. The table name might be embedded into some \"-characters (dependent on DB server). And schema information might be prepended.
    • replaceVariables

      public static DOFWUtils.ReplaceResult replaceVariables(String contextName, Class clazz, String s)
    • findPropertiesInColumns

      public static List<DOFWProperty> findPropertiesInColumns(Class clazz, String[] colSelections)
    • replacePropertyNames

      public static String replacePropertyNames(String contextName, Class clazz, String s)
    • parseICCEEConstant

      public static String parseICCEEConstant(String s)
      Converts the text of a ICCEEConstants-constant into a correpsonding constant representation. Background: all operations with ICCEEConstants are done by directling accessing the pointer - e.g. all checks for equality are done using "==" and not using ".equals(..)".
    • checkIfPropertyHasCenturyColumn

      public static boolean checkIfPropertyHasCenturyColumn(DOFWProperty property)
    • transferSortStringIntoDOFWQueryObjects

      public static Object[] transferSortStringIntoDOFWQueryObjects(String query)
    • transferSortStringIntoDOFWQueryObjects

      public static Object[] transferSortStringIntoDOFWQueryObjects(String[] query)
    • transferQueryStringIntoDOFWQueryObjects

      public static Object[] transferQueryStringIntoDOFWQueryObjects(String className, String query)
      Parameters:
      query - Example: "att1 IS 4711 and att2 IS Harry and att3 IS 'Harry Hirsch'
    • transferQueryStringIntoDOFWQueryObjects

      public static Object[] transferQueryStringIntoDOFWQueryObjects(String className, String[] query)
      Same as transferQueryStringIntoDOFWQueryObjects(String, String) but now query is passed as array of string tokens.
    • transferKeyPathIntoQuery

      public static Object[] transferKeyPathIntoQuery(String keyPath, Class beanClass)
    • checkIfKeyOfObjectsIsSame

      public static boolean checkIfKeyOfObjectsIsSame(Object bean1, Object bean2)
    • resolveKeyPathForBean

      public static String resolveKeyPathForBean(Object bean)
    • resolveKeyPathForBean

      public static String resolveKeyPathForBean(Object bean, String delimiter)