Package com.glyart.asql.velocity
Class VelocityASQLContext
- java.lang.Object
-
- com.glyart.asql.velocity.VelocityASQLContext
-
- All Implemented Interfaces:
com.glyart.asql.common.context.ASQLContext<Object>
public class VelocityASQLContext extends Object implements com.glyart.asql.common.context.ASQLContext<Object>
Represents a modelled ASQLContext inside a Velocity Context. There can be multiple VelocityASQLContext. Creating different VelocityASQLContext means that in the same Velocity Context you are willing to interact with different data sources.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VelocityASQLContext.ContextBuilder
-
Constructor Summary
Constructors Modifier Constructor Description protected
VelocityASQLContext(com.velocitypowered.api.proxy.ProxyServer server, Object plugin, Logger logger, com.glyart.asql.common.database.DataSourceCredentials credentials, com.glyart.asql.common.database.DataSourceHandler dataSourceHandler)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VelocityASQLContext.ContextBuilder
builder()
com.glyart.asql.common.database.DataSourceHandler
getDataSourceHandler()
com.glyart.asql.common.database.DataTemplate<VelocityASQLContext>
getDataTemplate()
Logger
getLogger()
Object
getPlugin()
com.glyart.asql.common.context.ContextScheduler
getScheduler()
-
-
-
Method Detail
-
getScheduler
public com.glyart.asql.common.context.ContextScheduler getScheduler()
- Specified by:
getScheduler
in interfacecom.glyart.asql.common.context.ASQLContext<Object>
-
getDataTemplate
public com.glyart.asql.common.database.DataTemplate<VelocityASQLContext> getDataTemplate()
- Specified by:
getDataTemplate
in interfacecom.glyart.asql.common.context.ASQLContext<Object>
-
getPlugin
public Object getPlugin()
- Specified by:
getPlugin
in interfacecom.glyart.asql.common.context.ASQLContext<Object>
-
getDataSourceHandler
public com.glyart.asql.common.database.DataSourceHandler getDataSourceHandler()
- Specified by:
getDataSourceHandler
in interfacecom.glyart.asql.common.context.ASQLContext<Object>
-
getLogger
public Logger getLogger()
- Specified by:
getLogger
in interfacecom.glyart.asql.common.context.ASQLContext<Object>
-
builder
public static VelocityASQLContext.ContextBuilder builder()
-
-