|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<Object,Object>
java.util.Properties
org.hibernatespatial.cfg.HSConfiguration
public class HSConfiguration
Configuration information for the Hibernate Spatial Extension.
Field Summary |
---|
Fields inherited from class java.util.Properties |
---|
defaults |
Constructor Summary | |
---|---|
HSConfiguration()
|
Method Summary | |
---|---|
boolean |
configure()
Gets the configuriation from the hibernate-spatail.cfg.xml file on the classpath. |
boolean |
configure(org.hibernate.cfg.Configuration hibernateConfig)
Derives the configuration from the Hibernate Configuration object. |
boolean |
configure(File resource)
Gets the configuriation from the specified file. |
boolean |
configure(String resource)
Gets the configuriation from the specified file on the class path. |
String |
getDefaultDialect()
|
String |
getPrecisionModel()
|
String |
getPrecisionModelScale()
|
protected String |
getProperty(HSProperty property)
|
String |
getSource()
The source file or URL for this configuration. |
void |
setDefaultDialect(String dialect)
|
void |
setPrecisionModel(String precisionModel)
|
void |
setPrecisionModelScale(String scale)
|
protected void |
setProperty(HSProperty property,
String value)
|
String |
toString()
|
Methods inherited from class java.util.Properties |
---|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames |
Methods inherited from class java.util.Hashtable |
---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HSConfiguration()
Method Detail |
---|
public String getDefaultDialect()
public void setDefaultDialect(String dialect)
public String getPrecisionModel()
public void setPrecisionModel(String precisionModel)
public String getPrecisionModelScale()
public void setPrecisionModelScale(String scale)
protected String getProperty(HSProperty property)
protected void setProperty(HSProperty property, String value)
public boolean configure(org.hibernate.cfg.Configuration hibernateConfig)
hibernateConfig
- Hibernate Configuration object
public boolean configure()
public boolean configure(File resource)
resource
- the configuration file
public String getSource()
public boolean configure(String resource)
resource
- the configuration file
public String toString()
toString
in class Hashtable<Object,Object>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |