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.ByteBufAllocator
getAllocator()
java.nio.charset.Charset
getCharset()
java.text.DecimalFormat
getCurrencyFormatter()
java.util.Map<java.lang.String,java.lang.Class<?>>
getCustomTypeMap()
DateTimeFormat
getDateFormat()
java.text.DecimalFormat
getDecimalFormatter()
java.text.NumberFormat
getIntegerFormatter()
ServerConnection.KeyData
getKeyData()
Registry
getRegistry()
RequestExecutor
getRequestExecutor()
ServerInfo
getServerInfo()
<T> T
getSetting(Setting<T> setting)
DateTimeFormat
getTimeFormat()
DateTimeFormat
getTimestampFormat()
java.util.TimeZone
getTimeZone()
java.time.ZoneId
getTimeZoneId()
<T> void
setSetting(Setting<T> setting, T value)
Context
unwrap()
-
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:
getCustomTypeMap
in interfaceContext
-
getSetting
public <T> T getSetting(Setting<T> setting)
- Specified by:
getSetting
in 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()
-
-