|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.data.gemfire.support.GemfireDaoSupport
public class GemfireDaoSupport
Convenient super class for GemFire data access objects. Intended for GemfireTemplate usage.
Requires a Region to be set, providing a GemfireTemplate based on it to subclasses. Can alternatively be initialized directly via a GemfireTemplate, to reuse the latter's settings.
This class will create its own GemfireTemplate if an Region reference is passed in.
A custom GemfireTemplate instance can be used through overriding createGemfireTemplate.
DaoSupport| Field Summary |
|---|
| Fields inherited from class org.springframework.dao.support.DaoSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
GemfireDaoSupport()
|
|
| Method Summary | |
|---|---|
protected void |
checkDaoConfig()
Verifies that this DAO has been configured properly. |
protected GemfireOperations |
createGemfireTemplate(com.gemstone.gemfire.cache.Region<?,?> region)
Creates an instance of the GemfireTemplate for the given GemFire Cache Region. |
GemfireOperations |
getGemfireTemplate()
Returns the GemfireTemplate for this DAO, pre-initialized with the Region or set explicitly. |
void |
setGemfireTemplate(GemfireOperations gemfireTemplate)
Set the GemfireTemplate for this DAO explicitly as an alternative to specifying a GemFire Cache Region. |
void |
setRegion(com.gemstone.gemfire.cache.Region<?,?> region)
Sets the GemFire Cache Region to be used by this DAO. |
| Methods inherited from class org.springframework.dao.support.DaoSupport |
|---|
afterPropertiesSet, initDao |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GemfireDaoSupport()
| Method Detail |
|---|
public void setRegion(com.gemstone.gemfire.cache.Region<?,?> region)
region - the GemFire Cache Region upon which this DAO operates.Region,
createGemfireTemplate(com.gemstone.gemfire.cache.Region)public final void setGemfireTemplate(GemfireOperations gemfireTemplate)
Region.
gemfireTemplate - the GemfireTemplate to be use by this DAO.GemfireOperations,
GemfireTemplate,
setRegion(com.gemstone.gemfire.cache.Region, ?>)public final GemfireOperations getGemfireTemplate()
GemfireOperations,
GemfireTemplateprotected GemfireOperations createGemfireTemplate(com.gemstone.gemfire.cache.Region<?,?> region)
Can be overridden in subclasses to provide a GemfireTemplate instance with different configuration, or even a custom GemfireTemplate subclass.
region - the GemFire Cache Region for which the GemfireTemplate is created.
Region,
setRegion(com.gemstone.gemfire.cache.Region, ?>)protected final void checkDaoConfig()
checkDaoConfig in class DaoSupport
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||