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, Map<String,Class<?>> typeMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.buffer.ByteBufAllocatorgetAllocator()CharsetgetCharset()NumberFormatgetClientCurrencyFormatter()DateTimeFormatgetClientDateFormat()NumberFormatgetClientDecimalFormatter()NumberFormatgetClientIntegerFormatter()IntervalFormatgetClientIntervalFormat()DateTimeFormatgetClientTimeFormat()DateTimeFormatgetClientTimestampFormat()Map<String,Class<?>>getCustomTypeMap()ServerConnection.KeyDatagetKeyData()RegistrygetRegistry()RequestExecutorgetRequestExecutor()NumberFormatgetServerCurrencyFormatter()DateTimeFormatgetServerDateFormat()ServerInfogetServerInfo()IntervalFormatgetServerIntervalFormat()DateTimeFormatgetServerTimeFormat()DateTimeFormatgetServerTimestampFormat()<T> TgetSetting(Setting<T> setting)TimeZonegetTimeZone()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
-
-
-
-
Method Detail
-
getCustomTypeMap
public Map<String,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 TimeZone getTimeZone()
-
getTimeZoneId
public ZoneId getTimeZoneId()
-
getCharset
public Charset getCharset()
-
getServerInfo
public ServerInfo getServerInfo()
-
getKeyData
public ServerConnection.KeyData getKeyData()
-
getServerDateFormat
public DateTimeFormat getServerDateFormat()
-
getClientDateFormat
public DateTimeFormat getClientDateFormat()
-
getServerTimeFormat
public DateTimeFormat getServerTimeFormat()
-
getClientTimeFormat
public DateTimeFormat getClientTimeFormat()
-
getServerIntervalFormat
public IntervalFormat getServerIntervalFormat()
-
getClientIntervalFormat
public IntervalFormat getClientIntervalFormat()
-
getServerTimestampFormat
public DateTimeFormat getServerTimestampFormat()
-
getClientTimestampFormat
public DateTimeFormat getClientTimestampFormat()
-
getClientIntegerFormatter
public NumberFormat getClientIntegerFormatter()
-
getClientDecimalFormatter
public NumberFormat getClientDecimalFormatter()
-
getServerCurrencyFormatter
public NumberFormat getServerCurrencyFormatter()
-
getClientCurrencyFormatter
public NumberFormat getClientCurrencyFormatter()
-
getRequestExecutor
public RequestExecutor getRequestExecutor()
-
getAllocator
public io.netty.buffer.ByteBufAllocator getAllocator()
-
unwrap
public Context unwrap()
-
-