Package com.impossibl.postgres.system
Class SettingsContext
- java.lang.Object
-
- com.impossibl.postgres.system.AbstractContext
-
- com.impossibl.postgres.system.SettingsContext
-
- All Implemented Interfaces:
Configuration,Context
public class SettingsContext extends AbstractContext
-
-
Constructor Summary
Constructors Constructor Description SettingsContext(Context context, java.util.Map<java.lang.String,java.lang.Class<?>> typeMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.buffer.ByteBufAllocatorgetAllocator()java.nio.charset.CharsetgetCharset()java.text.DecimalFormatgetCurrencyFormatter()java.util.Map<java.lang.String,java.lang.Class<?>>getCustomTypeMap()DateTimeFormatgetDateFormat()java.text.DecimalFormatgetDecimalFormatter()java.text.NumberFormatgetIntegerFormatter()ServerConnection.KeyDatagetKeyData()RegistrygetRegistry()RequestExecutorgetRequestExecutor()ServerInfogetServerInfo()<T> TgetSetting(Setting<T> setting)DateTimeFormatgetTimeFormat()DateTimeFormatgetTimestampFormat()java.util.TimeZonegetTimeZone()java.time.ZoneIdgetTimeZoneId()<T> voidsetSetting(Setting<T> setting, T value)Contextunwrap()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.impossibl.postgres.system.Configuration
getSetting
-
-
-
-
Constructor Detail
-
SettingsContext
public SettingsContext(Context context, java.util.Map<java.lang.String,java.lang.Class<?>> typeMap)
-
-
Method Detail
-
getCustomTypeMap
public java.util.Map<java.lang.String,java.lang.Class<?>> getCustomTypeMap()
- Specified by:
getCustomTypeMapin interfaceContext
-
getSetting
public <T> T getSetting(Setting<T> setting)
- Specified by:
getSettingin interfaceConfiguration
-
setSetting
public <T> void setSetting(Setting<T> setting, T value)
-
getRegistry
public Registry getRegistry()
-
getTimeZone
public java.util.TimeZone getTimeZone()
-
getTimeZoneId
public java.time.ZoneId getTimeZoneId()
-
getCharset
public java.nio.charset.Charset getCharset()
-
getServerInfo
public ServerInfo getServerInfo()
-
getKeyData
public ServerConnection.KeyData getKeyData()
-
getDateFormat
public DateTimeFormat getDateFormat()
-
getTimeFormat
public DateTimeFormat getTimeFormat()
-
getIntegerFormatter
public java.text.NumberFormat getIntegerFormatter()
-
getTimestampFormat
public DateTimeFormat getTimestampFormat()
-
getDecimalFormatter
public java.text.DecimalFormat getDecimalFormatter()
-
getCurrencyFormatter
public java.text.DecimalFormat getCurrencyFormatter()
-
getRequestExecutor
public RequestExecutor getRequestExecutor()
-
getAllocator
public io.netty.buffer.ByteBufAllocator getAllocator()
-
unwrap
public Context unwrap()
-
-