|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.spring.CompassDaoSupport
public abstract class CompassDaoSupport
Convenient super class for Compass data access objects.
Requires either a Compass or a CompassTemplate
to be set.
The base class is intended for CompassTemplate usage, and it creates a new CompassTemplate if a Compass parameter is set.
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
log
|
| Constructor Summary | |
|---|---|
CompassDaoSupport()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
protected CompassTemplate |
createCompassTemplate(Compass compass)
Creates a new CompassTemplate based on the provided Compass. |
Compass |
getCompass()
Returns the Compass used by the DAO. |
CompassTemplate |
getCompassTemplate()
Returns the CompassTemplate for this DAO. |
protected void |
initDao()
|
void |
setCompass(Compass compass)
Sets the Compass to be used by this DAO. |
void |
setCompassTemplate(CompassTemplate compassTemplate)
Sets the CompassTemplate used by the DAO explicitly. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public CompassDaoSupport()
| Method Detail |
|---|
public final void setCompass(Compass compass)
compass - protected CompassTemplate createCompassTemplate(Compass compass)
CompassTemplate based on the provided Compass. Subclasses
can override it to create a subclass of CompassTemplate, or change the configuration.
The method is only called when initializing the dao with Compass instance and not a CompassTemplate instance.
compass -
CompassTemplate warpping the given Compass instance.public final Compass getCompass()
public final void setCompassTemplate(CompassTemplate compassTemplate)
compassTemplate - public final CompassTemplate getCompassTemplate()
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanException
protected void initDao()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||