TaackJdbcService (taack-ui 0.5.5-SNAPSHOT API)
Package: taack.domain

[Groovy] Class TaackJdbcService

    • taack.domain.TaackJdbcService


    • @grails.compiler.GrailsCompileStatic
      final class TaackJdbcService
      extends java.lang.Object

      Service managing JDBC connection. Queries support TQL. It can be viewed as a subset of the HQL.

      Target supported features:

      • dotted fields
      • basic arithmetic
      • wildcard support t.*
      • very basic security check (WiP)

      Sample TQL Queries include:

      select u.* from User u;

      select t.userCreated.username from Task t;

      • Nested Class Summary

          Nested classes 
          Modifiers Name Description
          static class  TaackJdbcService.Jdbc Allow to register a GormEntity class as base class for TQL queries.
      • Properties Summary

          Properties 
          Type Name and description
          org.grails.datastore.mapping.core.Datastore  datastore
          org.hibernate.SessionFactory  sessionFactory
      • Constructor Summary

      • Methods Summary

          Methods 
          Type Params Return Type Name and description
          final byte[] getBufFromTql(java.lang.String tql, java.lang.Integer max, int offset)
          static final java.util.Map<java.lang.Class<? extends org.grails.datastore.gorm.GormEntity>, FieldInfo> getFieldInfoMapDesc()
          final byte[] getIndexInfo(java.lang.String table)
          final byte[] getIndexInfoRSMetaData(java.lang.String table)
          final byte[] getPingMessage()
          final byte[] getPrimaryKey(java.lang.String table)
          final byte[] getProtoColumns(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern, java.lang.String columnNamePattern)
          final byte[] getProtoTables(java.lang.String schemaPattern, java.lang.String tableNamePattern)
          static final FieldInfo[] gormFields(java.lang.String className)
          final grails.util.Pair<java.util.List<java.lang.Object>, java.lang.Long> listFromTranslator(taack.jdbc.common.tql.listener.TQLTranslator translator, java.lang.Integer max, int offset)
          final taack.jdbc.common.TaackResultSetOuterClass$TaackResultSet protoFromTranslator(taack.jdbc.common.tql.listener.TQLTranslator translator, java.lang.Integer maxRow, int offset)
          static final void registerJdbcClass(java.lang.Class<? extends org.grails.datastore.gorm.GormEntity> aClass, FieldInfo[] fieldInfos)
          static final void registerJdbcClass(java.lang.Class<? extends org.grails.datastore.gorm.GormEntity> aClass, GetMethodReturn[] methodReturns)
          static final taack.jdbc.common.tql.listener.TQLTranslator translatorFromTql(java.lang.String tql)
      • Inherited Methods Summary

          Inherited Methods 
          Methods inherited from class Name
          class java.lang.Object java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
      • Property Detail

        • @org.springframework.beans.factory.annotation.Autowired org.grails.datastore.mapping.core.Datastore datastore

        • @org.springframework.beans.factory.annotation.Autowired org.hibernate.SessionFactory sessionFactory

      • Constructor Detail

        • TaackJdbcService()

      • Method Detail

        • final byte[] getBufFromTql(java.lang.String tql, java.lang.Integer max, int offset)

        • static final java.util.Map<java.lang.Class<? extends org.grails.datastore.gorm.GormEntity>, FieldInfo> getFieldInfoMapDesc()

        • final byte[] getIndexInfo(java.lang.String table)

        • final byte[] getIndexInfoRSMetaData(java.lang.String table)

        • final byte[] getPingMessage()

        • final byte[] getPrimaryKey(java.lang.String table)

        • final byte[] getProtoColumns(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern, java.lang.String columnNamePattern)

        • final byte[] getProtoTables(java.lang.String schemaPattern, java.lang.String tableNamePattern)

        • static final FieldInfo[] gormFields(java.lang.String className)

        • final grails.util.Pair<java.util.List<java.lang.Object>, java.lang.Long> listFromTranslator(taack.jdbc.common.tql.listener.TQLTranslator translator, java.lang.Integer max, int offset)

        • final taack.jdbc.common.TaackResultSetOuterClass$TaackResultSet protoFromTranslator(taack.jdbc.common.tql.listener.TQLTranslator translator, java.lang.Integer maxRow, int offset)

        • static final void registerJdbcClass(java.lang.Class<? extends org.grails.datastore.gorm.GormEntity> aClass, FieldInfo[] fieldInfos)

        • static final void registerJdbcClass(java.lang.Class<? extends org.grails.datastore.gorm.GormEntity> aClass, GetMethodReturn[] methodReturns)

        • static final taack.jdbc.common.tql.listener.TQLTranslator translatorFromTql(java.lang.String tql)