Package play.db
Class Configuration
- java.lang.Object
-
- play.db.Configuration
-
public class Configuration extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringconfigName
-
Constructor Summary
Constructors Constructor Description Configuration(java.lang.String configurationName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.Set<java.lang.String>getDbNames()java.util.Map<java.lang.String,java.lang.String>getProperties()java.lang.StringgetProperty(java.lang.String key)java.lang.StringgetProperty(java.lang.String key, java.lang.String defaultString)booleanisDefault()java.lang.Objectput(java.lang.String key, java.lang.String value)Add a parameter in the configuration
-
-
-
Method Detail
-
isDefault
public boolean isDefault()
-
getDbNames
public static java.util.Set<java.lang.String> getDbNames()
-
getProperty
public java.lang.String getProperty(java.lang.String key)
-
getProperty
public java.lang.String getProperty(java.lang.String key, java.lang.String defaultString)
-
put
public java.lang.Object put(java.lang.String key, java.lang.String value)Add a parameter in the configuration- Parameters:
key- the key of the parametervalue- the value of the parameter- Returns:
- the previous value of the specified key in this hashtable, or null if it did not have one
-
getProperties
public java.util.Map<java.lang.String,java.lang.String> getProperties()
-
-