TaackJdbcService (taack-ui 0.4.0-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.
      • 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)
          static final void registerJdbcClass(java.lang.Class<? extends org.grails.datastore.gorm.GormEntity> aClass, FieldInfo[] fieldInfos)
      • 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()
      • 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)

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