BrightSide Workbench Full Report + Source Code
org.turro.elephant.db.HibernateConfig Class Reference
Inheritance diagram for org.turro.elephant.db.HibernateConfig:
Collaboration diagram for org.turro.elephant.db.HibernateConfig:

Public Member Functions

 HibernateConfig ()
 
void updateProperties (Properties properties)
 
- Public Member Functions inherited from org.turro.elephant.impl.abstracts.AbstractImplementation
 AbstractImplementation ()
 
void setElement (IElement element)
 
void setConstructor (IConstructor constructor)
 
void setConfiguration (Element configuration)
 
KeyValueMap getAttributes ()
 
Long getLongAttribute (String key)
 

Additional Inherited Members

- Protected Attributes inherited from org.turro.elephant.impl.abstracts.AbstractImplementation
IElement iel
 
IConstructor constructor
 
Element configuration
 
Map attributes
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 29 of file HibernateConfig.java.

Constructor & Destructor Documentation

◆ HibernateConfig()

org.turro.elephant.db.HibernateConfig.HibernateConfig ( )

Creates a new instance of HibernateConfig

Definition at line 32 of file HibernateConfig.java.

32  {
33  }

Member Function Documentation

◆ updateProperties()

void org.turro.elephant.db.HibernateConfig.updateProperties ( Properties  properties)

Definition at line 35 of file HibernateConfig.java.

35  {
36 
37  Iterator<String> it = getAttributes().keySet().iterator();
38 
39  String key, value;
40  while(it.hasNext()) {
41  key = it.next();
42  value = (String) getAttributes().get(key);
43  if(value != null) {
44  properties.setProperty(key, value);
45  }
46  }
47 
48  String root = ElephantContext.getRealPath("/");
49  properties.setProperty(
50  "hibernate.connection.url",
51  properties.getProperty("hibernate.connection.url")
52  .replaceAll("\\#root", root)
53  );
54  }
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: