public static synchronized void addCachedDatabaseConfigs ( Collection < DatabaseTableConfig < ? > > configs ) { Map < Class < ? > , DatabaseTableConfig < ? > > newMap ; if ( configMap == null ) { newMap = new HashMap < Class < ? > , DatabaseTableConfig < ? > > ( ) ; } else { newMap = new HashMap < Class < ? > , DatabaseTableConfig < ? > > ( configMap ) ; } for ( DatabaseTableConfig < ? > config : configs ) { newMap . put ( config . getDataClass ( ) , config ) ; logger . info ( "Loaded configuration for {}" , config . getDataClass ( ) ) ; } configMap = newMap ; }
This adds database table configurations to the internal cache which can be used to speed up DAO construction . This is especially true of Android and other mobile platforms .