1 56 package org.objectstyle.cayenne.modeler.dialog.datadomain; 57 58 import org.objectstyle.cayenne.access.DataRowStore; 59 import org.objectstyle.cayenne.modeler.util.MapModel; 60 import org.scopemvc.core.Selector; 61 62 65 public class CacheSyncConfigModel extends MapModel { 66 67 private static final String [] storedProperties = 68 new String [] { DataRowStore.EVENT_BRIDGE_FACTORY_PROPERTY }; 69 70 public static final Selector FACTORY_CLASS_SELECTOR = 72 Selector.fromString("factoryClass"); 73 74 public String [] supportedProperties() { 75 return storedProperties; 76 } 77 78 public Selector selectorForKey(String key) { 79 return (DataRowStore.EVENT_BRIDGE_FACTORY_PROPERTY.equals(key)) 80 ? FACTORY_CLASS_SELECTOR 81 : null; 82 } 83 84 public String defaultForKey(String key) { 85 return null; 86 } 87 88 public String getFactoryClass() { 89 return getProperty(DataRowStore.EVENT_BRIDGE_FACTORY_PROPERTY); 90 } 91 92 public void setFactoryClass(String factoryClass) { 93 setProperty(DataRowStore.EVENT_BRIDGE_FACTORY_PROPERTY, factoryClass); 94 } 95 } 96 | Popular Tags |