|
SolarMetric Kodo JDO Enterprise Edition 2.3.1 generated on August 20 2002 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.solarmetric.kodo.conf.DefaultConfiguration
|
+--com.solarmetric.kodo.conf.SimpleConfiguration
|
+--com.solarmetric.kodo.impl.jdbc.JDBCSimpleConfiguration
Simple implementation of the JDBCConfiguration interface.
| Constructor Summary | |
JDBCSimpleConfiguration()
Default constructor. |
|
JDBCSimpleConfiguration(InputStream propertiesStream)
Constructor to access the properties taken from the specified stream |
|
JDBCSimpleConfiguration(Properties props)
Instantiate a JDBCSimpleConfiguration from a Properties object. |
|
JDBCSimpleConfiguration(String dbName)
Constructor to access the named database if using XML prefs. |
|
| Method Summary | |
int |
getAutoReturnTimeout()
The number of seconds to wait before automatically reclaiming an in-use connection |
DBDictionary |
getDictionary()
The DBDictionary to use. |
String |
getDictionaryClass()
The dictionary class to use to define the RDBMS SQL information |
String |
getDictionaryProperties()
Configuration options for the dictionary. |
boolean |
getFlatInheritanceMapping()
Return whether or not a flat inheritance mapping strategy should be used by default. |
String[] |
getPersistentTypes()
The names of all the persistent types registered with the configured database. |
String |
getPersistentTypesProperty()
|
SequenceFactory |
getSequenceFactory()
The SequenceFactory to use. |
String |
getSequenceFactoryClass()
The class name of the SequenceFactory implementation. |
String |
getSequenceFactoryProperties()
Configuration properties for the sequence factory. |
boolean |
getWarnOnPersistentTypeFailure()
Warn (rather than throw an exception) when the class in the data store's persistent metadata is not found. |
void |
setAutoReturnTimeout(int autoReturnTimeout)
The number of seconds to wait before automatically reclaiming an in-use connection |
void |
setConnectionDriverName(String name)
Make sure the driver is loaded. |
void |
setDictionary(DBDictionary dict)
The DBDictionary to use. |
void |
setDictionaryClass(String dictionaryClass)
The dictionary class to use to define the RDBMS SQL information |
void |
setDictionaryProperties(String dictionaryProperties)
Configuration options for the dictionary. |
void |
setFlatInheritanceMapping(boolean map)
Configure the default inheritance hierarchy mapping strategy. |
protected void |
setFromPreferences()
Override this method to support setting subclass state from preferences. |
protected void |
setFromProperties(TypedProperties props)
Override this method to support setting subclass state from properties. |
void |
setPersistentTypes(String[] types)
The names of all the persistent types registered with the configured database. |
void |
setPersistentTypesProperty(String types)
|
void |
setProperties(String resourceName)
|
void |
setSequenceFactory(SequenceFactory dict)
The SequenceFactory to use. |
void |
setSequenceFactoryClass(String sequenceFactoryClass)
The class name of the SequenceFactory implementation. |
void |
setSequenceFactoryProperties(String sequenceFactoryProperties)
Configuration properties for the sequence factory. |
protected void |
setToProperties(TypedProperties props)
Override this method to support serializing subclass state to properties. |
void |
setWarnOnPersistentTypeFailure(boolean warn)
Warn (rather than throw an exception) when the class in the data store's persistent metadata is not found. |
| Methods inherited from class com.solarmetric.kodo.conf.DefaultConfiguration |
checkFrozen, clone, configurationClone, equals, freeze, fromProperties, hashCode, isFrozen, loadDefaults, toProperties |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JDBCSimpleConfiguration()
public JDBCSimpleConfiguration(String dbName)
public JDBCSimpleConfiguration(InputStream propertiesStream)
throws IOException
public JDBCSimpleConfiguration(Properties props)
| Method Detail |
public void setConnectionDriverName(String name)
setConnectionDriverName in interface ConfigurationsetConnectionDriverName in class SimpleConfiguration
public void setProperties(String resourceName)
throws IOException
public void setAutoReturnTimeout(int autoReturnTimeout)
JDBCConfigurationsetAutoReturnTimeout in interface JDBCConfigurationpublic int getAutoReturnTimeout()
JDBCConfigurationgetAutoReturnTimeout in interface JDBCConfigurationpublic void setDictionaryClass(String dictionaryClass)
JDBCConfigurationsetDictionaryClass in interface JDBCConfigurationpublic String getDictionaryClass()
JDBCConfigurationgetDictionaryClass in interface JDBCConfigurationpublic void setDictionaryProperties(String dictionaryProperties)
JDBCConfigurationsetDictionaryProperties in interface JDBCConfigurationpublic String getDictionaryProperties()
JDBCConfigurationgetDictionaryProperties in interface JDBCConfigurationpublic void setDictionary(DBDictionary dict)
JDBCConfigurationsetDictionary in interface JDBCConfigurationpublic DBDictionary getDictionary()
JDBCConfigurationJDBCConfiguration.setDictionary(com.solarmetric.kodo.impl.jdbc.schema.DBDictionary) method, it will be returned.
Otherwise, if the dictionary class has been set, a new instance
of the class will created and configured with any set dictionary
properties. This instance will be cached for subsequence calls to this
method. Finally, if no dictionary class has been set a default
dictionary will be returned.getDictionary in interface JDBCConfigurationpublic void setSequenceFactoryClass(String sequenceFactoryClass)
JDBCConfigurationsetSequenceFactoryClass in interface JDBCConfigurationpublic String getSequenceFactoryClass()
JDBCConfigurationgetSequenceFactoryClass in interface JDBCConfigurationpublic void setSequenceFactoryProperties(String sequenceFactoryProperties)
JDBCConfigurationsetSequenceFactoryProperties in interface JDBCConfigurationpublic String getSequenceFactoryProperties()
JDBCConfigurationgetSequenceFactoryProperties in interface JDBCConfigurationpublic SequenceFactory getSequenceFactory()
JDBCConfigurationJDBCConfiguration.setSequenceFactory(com.solarmetric.kodo.impl.jdbc.SequenceFactory) method, it will be returned.
Otherwise, if the sequence factory class has been set, a new instance
of the class will created and configured with any set sequence factory
properties. This instance will be cached for subsequence calls to this
method. Finally, if no sequence factory class has been seta default
sequence factory will be returned.getSequenceFactory in interface JDBCConfigurationpublic void setSequenceFactory(SequenceFactory dict)
JDBCConfigurationsetSequenceFactory in interface JDBCConfigurationpublic void setWarnOnPersistentTypeFailure(boolean warn)
JDBCConfigurationsetWarnOnPersistentTypeFailure in interface JDBCConfigurationpublic boolean getWarnOnPersistentTypeFailure()
JDBCConfigurationgetWarnOnPersistentTypeFailure in interface JDBCConfigurationpublic void setFlatInheritanceMapping(boolean map)
JDBCConfigurationsetFlatInheritanceMapping in interface JDBCConfigurationpublic boolean getFlatInheritanceMapping()
JDBCConfigurationtrue, then all
fields of all classes in a given inheritance hierarchy will by
default map into the least-derived type's default primary
table. If false then a new default primary table
will be created for each class in the inheritance hierarchy,
and each type's declared fields will map to that table by
default.getFlatInheritanceMapping in interface JDBCConfigurationpublic void setPersistentTypes(String[] types)
JDBCConfigurationsetPersistentTypes in interface JDBCConfigurationpublic String[] getPersistentTypes()
JDBCConfigurationgetPersistentTypes in interface JDBCConfigurationprotected void setFromPreferences()
DefaultConfigurationsetFromPreferences in class DefaultConfigurationprotected void setToProperties(TypedProperties props)
DefaultConfigurationsetToProperties in class DefaultConfigurationprotected void setFromProperties(TypedProperties props)
DefaultConfigurationsetFromProperties in class DefaultConfigurationpublic String getPersistentTypesProperty()
public void setPersistentTypesProperty(String types)
|
SolarMetric Kodo JDO Enterprise Edition 2.3.1 generated on August 20 2002 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||