private static void getPropertyIndexes(Class<?> entityClazz, Map<String, PropertyIndex> pis,
            List<String> columnsNameToBeIndexed, Map<String, com.impetus.kundera.index.Index> columnsToBeIndexed)
    {
        for (Field f : entityClazz.getDeclaredFields())
        {
            if (f.isAnnotationPresent(Column.class))
            {
                String fieldName = f.getName();
                if (columnsToBeIndexed != null && !columnsToBeIndexed.isEmpty()
                        && columnsToBeIndexed.containsKey(fieldName))
                {
                    com.impetus.kundera.index.Index indexedColumn = columnsToBeIndexed.get(fieldName);
                    pis.put(indexedColumn.name(),
                            populatePropertyIndex(indexedColumn.name(), indexedColumn.type(), indexedColumn.max(),
                                    indexedColumn.min(), f));
                }
                else if (columnsNameToBeIndexed != null && !columnsNameToBeIndexed.isEmpty()
                        && columnsNameToBeIndexed.contains(fieldName))
                {
                    pis.put(fieldName, populatePropertyIndex(fieldName, null, null, null, f));
                }
            }
        }
    }
private static void getPropertyIndexes ( Class < ? > entityClazz , Map < String , PropertyIndex > pis , List < String > columnsNameToBeIndexed , Map < String , com . impetus . kundera . index . Index > columnsToBeIndexed ) { for ( Field f : entityClazz . getDeclaredFields ( ) ) { if ( f . isAnnotationPresent ( Column . class ) ) { String fieldName = f . getName ( ) ; if ( columnsToBeIndexed != null && ! columnsToBeIndexed . isEmpty ( ) && columnsToBeIndexed . containsKey ( fieldName ) ) { com . impetus . kundera . index . Index indexedColumn = columnsToBeIndexed . get ( fieldName ) ; pis . put ( indexedColumn . name ( ) , populatePropertyIndex ( indexedColumn . name ( ) , indexedColumn . type ( ) , indexedColumn . max ( ) , indexedColumn . min ( ) , f ) ) ; } else if ( columnsNameToBeIndexed != null && ! columnsNameToBeIndexed . isEmpty ( ) && columnsNameToBeIndexed . contains ( fieldName ) ) { pis . put ( fieldName , populatePropertyIndex ( fieldName , null , null , null , f ) ) ; } } } }
@param entityClazz
@param pis
@param columnsNameToBeIndexed
@param columnsToBeIndexed