ua.gradsoft.xwikisql
Class SqlPluginApi

java.lang.Object
  extended by com.xpn.xwiki.api.Api
      extended by ua.gradsoft.xwikisql.SqlPluginApi

public class SqlPluginApi
extends com.xpn.xwiki.api.Api

API Object


Field Summary
 
Fields inherited from class com.xpn.xwiki.api.Api
context
 
Constructor Summary
SqlPluginApi(SqlPlugin thePlugin, com.xpn.xwiki.XWikiContext context)
           
 
Method Summary
 SqlDatabase getDatabase(java.lang.String dbname)
          get database object.
 SqlPlugin getSqlPlugin()
          give access to implemtation class of sql plugin.
 
Methods inherited from class com.xpn.xwiki.api.Api
checkProgrammingRights, getXWikiContext, hasAccessLevel, hasAdminRights, hasProgrammingRights
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlPluginApi

public SqlPluginApi(SqlPlugin thePlugin,
                    com.xpn.xwiki.XWikiContext context)
Method Detail

getDatabase

public SqlDatabase getDatabase(java.lang.String dbname)
get database object.

Parameters:
dbname - -- jndi name of datasource, configured in container.

getSqlPlugin

public SqlPlugin getSqlPlugin()
give access to implemtation class of sql plugin. do not use this function from velocity: public is implementation effect.