Package org.bedework.util.config
Class HibernateConfigBase<T extends ConfigBase>
- java.lang.Object
-
- org.bedework.util.config.ConfigBase<T>
-
- org.bedework.util.config.HibernateConfigBase<T>
-
- Type Parameters:
T-
- All Implemented Interfaces:
Serializable,Comparable<T>,HibernateConfigI,org.bedework.util.logging.Logged
public class HibernateConfigBase<T extends ConfigBase> extends ConfigBase<T> implements HibernateConfigI
Used by configuration classes that want to save a set of hibernate properties.- Author:
- Mike Douglass
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.bedework.util.config.ConfigBase
ns
-
-
Constructor Summary
Constructors Constructor Description HibernateConfigBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddHibernateProperty(String name, String val)Add a hibernate propertyStringgetHibernateDialect()List<String>getHibernateProperties()StringgetHibernateProperty(String name)Get a hibernate propertyvoidremoveHibernateProperty(String name)Remove a hibernate propertyvoidsetHibernateDialect(String val)voidsetHibernateProperties(List<String> val)voidsetHibernateProperty(String name, String val)Set a hibernate propertyStringtoString()voidtoStringSegment(org.bedework.util.misc.ToString ts)Add our stuff to the StringBuilder-
Methods inherited from class org.bedework.util.config.ConfigBase
addListProperty, compareTo, fromXml, fromXml, fromXml, getLastChanged, getLogger, getName, getProperty, hashCode, markChanged, removeProperty, setListProperty, setName, toProperties, toXml
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, warn
-
-
-
-
Method Detail
-
setHibernateProperties
public void setHibernateProperties(List<String> val)
- Specified by:
setHibernatePropertiesin interfaceHibernateConfigI
-
getHibernateProperties
public List<String> getHibernateProperties()
- Specified by:
getHibernatePropertiesin interfaceHibernateConfigI- Returns:
- String val
-
setHibernateDialect
public void setHibernateDialect(String val)
- Specified by:
setHibernateDialectin interfaceHibernateConfigI
-
getHibernateDialect
public String getHibernateDialect()
- Specified by:
getHibernateDialectin interfaceHibernateConfigI- Returns:
- current setting for hibernate dialect
-
addHibernateProperty
public void addHibernateProperty(String name, String val)
Description copied from interface:HibernateConfigIAdd a hibernate property- Specified by:
addHibernatePropertyin interfaceHibernateConfigI
-
getHibernateProperty
public String getHibernateProperty(String name)
Description copied from interface:HibernateConfigIGet a hibernate property- Specified by:
getHibernatePropertyin interfaceHibernateConfigI- Returns:
- value or null
-
removeHibernateProperty
public void removeHibernateProperty(String name)
Description copied from interface:HibernateConfigIRemove a hibernate property- Specified by:
removeHibernatePropertyin interfaceHibernateConfigI
-
setHibernateProperty
public void setHibernateProperty(String name, String val)
Description copied from interface:HibernateConfigISet a hibernate property- Specified by:
setHibernatePropertyin interfaceHibernateConfigI
-
toStringSegment
public void toStringSegment(org.bedework.util.misc.ToString ts)
Description copied from class:ConfigBaseAdd our stuff to the StringBuilder- Overrides:
toStringSegmentin classConfigBase<T extends ConfigBase>- Parameters:
ts- ToString for result
-
toString
public String toString()
- Overrides:
toStringin classConfigBase<T extends ConfigBase>
-
-