public class CachingPhoneDirectoryDao extends AbstractPhoneDirectoryDao implements Initable, Configurable<Properties>, Destroyable
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_GEMFIRE_CACHE_XML_FILE |
static String |
DEFAULT_GEMFIRE_CONFIGURATION_FILE |
static String |
DEFAULT_GEMFIRE_LOG_LEVEL |
static String |
DEFAULT_GEMFIRE_MCAST_PORT |
protected static boolean |
DEFAULT_LAZY_INITIALIZE |
static String |
PHONE_DIRECTORY_CACHE_NAME |
static String |
PHONE_DIRECTORY_REGION_PATH |
| Constructor and Description |
|---|
CachingPhoneDirectoryDao() |
CachingPhoneDirectoryDao(boolean lazyInitialize) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Properties configuration) |
void |
destroy() |
PhoneDirectoryEntry |
find(Person person) |
protected com.gemstone.gemfire.cache.Cache |
getCache() |
static InputStream |
getCacheConfiguration() |
Properties |
getConfiguration() |
static Properties |
getGemFireConfiguration() |
protected String |
getKey(Person person) |
protected String |
getKey(PhoneDirectoryEntry entry) |
protected com.gemstone.gemfire.cache.Region<String,PhoneDirectoryEntry> |
getRegion() |
void |
init() |
boolean |
isConfigured() |
boolean |
isDestroyed() |
boolean |
isInitialized() |
Collection<PhoneDirectoryEntry> |
loadAll() |
PhoneDirectoryEntry |
remove(Person person) |
PhoneDirectoryEntry |
save(PhoneDirectoryEntry entry) |
String |
toString() |
accept, fireAfterCreate, fireAfterDelete, fireAfterRetrieve, fireAfterUpdate, fireBeforeCreate, fireBeforeDelete, fireBeforeRetrieve, fireBeforeUpdate, loadaddEventListener, fireEvent, iterator, removeEventListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddEventListener, removeEventListenerforEach, spliteratorprotected static final boolean DEFAULT_LAZY_INITIALIZE
public static final String DEFAULT_GEMFIRE_CACHE_XML_FILE
public static final String DEFAULT_GEMFIRE_CONFIGURATION_FILE
public static final String DEFAULT_GEMFIRE_LOG_LEVEL
public static final String DEFAULT_GEMFIRE_MCAST_PORT
public static final String PHONE_DIRECTORY_CACHE_NAME
public static final String PHONE_DIRECTORY_REGION_PATH
public CachingPhoneDirectoryDao()
public CachingPhoneDirectoryDao(boolean lazyInitialize)
public static InputStream getCacheConfiguration()
public static Properties getGemFireConfiguration()
public Properties getConfiguration()
getConfiguration in interface Configurable<Properties>public boolean isConfigured()
isConfigured in interface Configurable<Properties>public boolean isDestroyed()
isDestroyed in interface Destroyablepublic boolean isInitialized()
isInitialized in interface Initablepublic void configure(Properties configuration)
configure in interface Configurable<Properties>public void destroy()
destroy in interface Destroyableprotected com.gemstone.gemfire.cache.Cache getCache()
protected String getKey(PhoneDirectoryEntry entry)
protected com.gemstone.gemfire.cache.Region<String,PhoneDirectoryEntry> getRegion()
public PhoneDirectoryEntry find(Person person)
find in interface PhoneDirectoryDaofind in class AbstractPhoneDirectoryDaopublic Collection<PhoneDirectoryEntry> loadAll()
loadAll in interface PhoneDirectoryDaoloadAll in class AbstractPhoneDirectoryDaopublic PhoneDirectoryEntry remove(Person person)
remove in interface PhoneDirectoryDaoremove in class AbstractPhoneDirectoryDaopublic PhoneDirectoryEntry save(PhoneDirectoryEntry entry)
save in interface PhoneDirectoryDaosave in class AbstractPhoneDirectoryDaoCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.