Examples of Dialect


Examples of org.hibernate.dialect.Dialect

  private String expandParameterList(String query, String name, TypedValue typedList, Map namedParamsCopy) {
    Collection vals = (Collection) typedList.getValue();
   
    // HHH-1123
    // Some DBs limit number of IN expressions.  For now, warn...
    final Dialect dialect = session.getFactory().getDialect();
    final int inExprLimit = dialect.getInExpressionCountLimit();
    if ( inExprLimit > 0 && vals.size() > inExprLimit ) {
      log.tooManyInExpressions( dialect.getClass().getName(), inExprLimit, name, vals.size() );
    }

    Type type = typedList.getType();

    boolean isJpaPositionalParam = parameterMetadata.getNamedParameterDescriptor( name ).isJpaStyle();
View Full Code Here

Examples of org.hibernate.dialect.Dialect

        : Number.class.isAssignableFrom( heuristicType.getReturnedClass() )
        ? heuristicType
        : expectedType;
    try {
      final LiteralType literalType = (LiteralType) type;
      final Dialect dialect = factory.getDialect();
      return literalType.objectToSQLString( constantValue, dialect );
    }
    catch (Exception t) {
      throw new QueryException( QueryTranslator.ERROR_CANNOT_FORMAT_LITERAL + constantExpression, t );
    }
View Full Code Here

Examples of org.infinispan.persistence.jdbc.Dialect

            };
            dependencies.add(new Dependency<PathManager>(PathManagerService.SERVICE_NAME, PathManager.class, injector));
            return builder;
        } else if (storeKey.equals(ModelKeys.STRING_KEYED_JDBC_STORE) || storeKey.equals(ModelKeys.BINARY_KEYED_JDBC_STORE) || storeKey.equals(ModelKeys.MIXED_KEYED_JDBC_STORE)) {
            ModelNode dialectNode = BaseJDBCStoreResource.DIALECT.resolveModelAttribute(context, store);
            Dialect dialect = dialectNode.isDefined() ? Dialect.valueOf(dialectNode.asString()) : null;

            AbstractJdbcStoreConfigurationBuilder<?, ?> builder = buildJdbcStore(persistenceBuilder, context, store, dialect);

            final String datasource = BaseJDBCStoreResource.DATA_SOURCE.resolveModelAttribute(context, store).asString();
View Full Code Here

Examples of org.mybatis.pagination.dialect.Dialect

            String dialect = p.getProperty("dbms");
            Preconditions.checkArgument(!StringHelper.isEmpty(dialect), "dialect property is not found!");
            dbms = DBMS.valueOf(dialect.toUpperCase());
            Preconditions.checkNotNull(dbms, "plugin not super on this database.");
        } else {
            Dialect dialect1 = (Dialect) Reflections.instance(dialectClass);
            Preconditions.checkNotNull(dialect1, "dialectClass is not found!");
            DialectClient.putEx(dialect1);
            dbms = DBMS.EX;
        }
View Full Code Here

Examples of org.nxplanner.db.Dialect

        while (rs.next()) {
            insertedUpdates.add(rs.getString(1));
            allUpdatesApplied &= rs.getDate(2) != null;
        }

        Dialect dialect = getDialect();
        URL resource = Dialect.class.getClassLoader().getResource("/updates/" + dialect);
        File file = new File(resource.getPath());
        for (File updateFile : file.listFiles()) {
            String fileName = updateFile.getName();
            if (!fileName.equals(DatabaseUpdaterBootstrapper.BOOTSTRAP_SQL) &&
View Full Code Here

Examples of org.openbel.framework.api.Dialect

        }

        final int maxSearchDepth = request.getMaxDepth();

        // Get the Dialect (may be null)
        final Dialect dialect = getDialect(request.getDialect());

        Kam kam;
        try {
            // read kam from first source node
            kam =
View Full Code Here

Examples of org.sonar.core.persistence.dialect.Dialect

    assertThat(FakeMigration.executed).isTrue();
  }

  @Test
  public void should_create_schema_on_h2() throws Exception {
    Dialect supportedDialect = new H2();
    when(dbClient.database().getDialect()).thenReturn(supportedDialect);
    Connection connection = mock(Connection.class);
    DbSession session = mock(DbSession.class);
    when(session.getConnection()).thenReturn(connection);
    when(dbClient.openSession(false)).thenReturn(session);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.