Code example for Collection

Methods: getCacheRegionNamegetCollectionTable

0
    /** 
     * Build the value mapping. 
     */ 
    private void buildMapping( Collection mapping )
    { 
        String cacheRegion = mapping.getCacheRegionName();
        String collectionTable = mapping.getCollectionTable().getName();
        TableInvalidation rules = getOrCreateTableRule( collectionTable );
        rules.addCollectionRole( cacheRegion );
    } 
 
    /** 
     * Add invalidation rules. 
     */ 
    private TableInvalidation addTableRule( String tableName, String className )
    { 
        Class entityClass = className != null ? findClass( className ) : null;
        TableInvalidation rule = new TableInvalidation( tableName, entityClass );
        this.rules.addTableRule( rule );
        return rule;
Experience pair programming with AI  Get Codota for Java