当前位置: 首页>>代码示例>>Java>>正文


Java SQLDialect.MARIADB属性代码示例

本文整理汇总了Java中org.jooq.SQLDialect.MARIADB属性的典型用法代码示例。如果您正苦于以下问题:Java SQLDialect.MARIADB属性的具体用法?Java SQLDialect.MARIADB怎么用?Java SQLDialect.MARIADB使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.jooq.SQLDialect的用法示例。


在下文中一共展示了SQLDialect.MARIADB属性的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: determineSearcher

private FullTextSearch<Application> determineSearcher(SQLDialect dialect) {

        if (dialect == SQLDialect.POSTGRES) {
            return new PostgresAppSearch();
        }

        if (dialect == SQLDialect.MARIADB) {
            return new MariaAppSearch();
        }

        if (dialect.name().startsWith("SQLSERVER")) {
            return new SqlServerAppSearch();
        }

        return new UnsupportedSearcher<>(dialect);
    }
 
开发者ID:khartec,项目名称:waltz,代码行数:16,代码来源:ApplicationSearchDao.java

示例2: determineSearcher

private FullTextSearch<OrganisationalUnit> determineSearcher(SQLDialect dialect) {

        if (dialect == SQLDialect.POSTGRES) {
            return new PostgresOrganisationalUnitSearch();
        }

        if (dialect == SQLDialect.MARIADB) {
            return new MariaOrganisationalUnitSearch();
        }

        // cannot do direct comparison as may not be present.
        if (dialect.name().equals("SQLSERVER2014")) {
            return new SqlServerOrganisationalUnitSearch();
        }

        return new UnsupportedSearcher<>(dialect);
    }
 
开发者ID:khartec,项目名称:waltz,代码行数:17,代码来源:OrganisationalUnitSearchDao.java

示例3: determineSearcher

private FullTextSearch<ChangeInitiative> determineSearcher(SQLDialect dialect) {

        if (dialect == SQLDialect.POSTGRES) {
            return new PostgresChangeInitiativeSearch();
        }

        if (dialect == SQLDialect.MARIADB) {
            return new MariaChangeInitiativeSearch();
        }

        if (dialect.name().startsWith("SQLSERVER")) {
            return new SqlServerChangeInitiativeSearch();
        }

        return new UnsupportedSearcher<>(dialect);
    }
 
开发者ID:khartec,项目名称:waltz,代码行数:16,代码来源:ChangeInitiativeSearchDao.java

示例4: determineSearcher

private FullTextSearch<Measurable> determineSearcher(SQLDialect dialect) {

        if (dialect == SQLDialect.POSTGRES) {
            return new PostgresMeasurableSearch();
        }

        if (dialect == SQLDialect.MARIADB) {
            return new MariaMeasurableSearch();
        }

        if (dialect.name().startsWith("SQLSERVER")) {
            return new SqlServerMeasurableSearch();
        }

        return new UnsupportedSearcher<>(dialect);
    }
 
开发者ID:khartec,项目名称:waltz,代码行数:16,代码来源:MeasurableSearchDao.java

示例5: determineSearcher

private FullTextSearch<Person> determineSearcher(SQLDialect dialect) {

        if (dialect == SQLDialect.POSTGRES) {
            return new PostgresPersonSearch();
        }

        if (dialect == SQLDialect.MARIADB) {
            return new MariaPersonSearch();
        }

        if (dialect.name().equals("SQLSERVER2014")) {
            return new SqlServerPersonSearch();
        }

        return new UnsupportedSearcher<>(dialect);
    }
 
开发者ID:khartec,项目名称:waltz,代码行数:16,代码来源:PersonSearchDao.java

示例6: test09

@Test(timeout = 4000)
public void test09() throws Throwable {
    WorkspaceSnapshot workspaceSnapshot0 = new WorkspaceSnapshot();
    Product product0 = new Product();
    workspaceSnapshot0.definingProduct = product0;
    SQLDialect sQLDialect0 = SQLDialect.MARIADB;
    DefaultDSLContext defaultDSLContext0 = new DefaultDSLContext(sQLDialect0);
    // Undeclared exception!
    try {
        workspaceSnapshot0.load(defaultDSLContext0);
        fail("Expecting exception: RuntimeException");

    } catch (RuntimeException e) {
        //
        // Cannot execute query. No Connection configured
        //
        assertThrownBy("org.jooq.impl.AbstractQuery", e);
    }
}
 
开发者ID:ChiralBehaviors,项目名称:Ultrastructure,代码行数:19,代码来源:WorkspaceSnapshot_ESTest.java

示例7: test18

@Test(timeout = 4000)
public void test18() throws Throwable {
    Product product0 = new Product();
    PGPoolingDataSource pGPoolingDataSource0 = PGPoolingDataSource.getDataSource("");
    SQLDialect sQLDialect0 = SQLDialect.MARIADB;
    Settings settings0 = new Settings();
    DefaultDSLContext defaultDSLContext0 = new DefaultDSLContext(pGPoolingDataSource0,
                                                                 sQLDialect0,
                                                                 settings0);
    try {
        new WorkspaceSnapshot(product0, defaultDSLContext0);
        fail("Expecting exception: NullPointerException");

    } catch (NullPointerException e) {
        //
        // no message in exception (getMessage() returned null)
        //
        assertThrownBy("org.jooq.impl.DataSourceConnectionProvider", e);
    }
}
 
开发者ID:ChiralBehaviors,项目名称:Ultrastructure,代码行数:20,代码来源:WorkspaceSnapshot_ESTest.java

示例8: detectSqlDialect

private SQLDialect detectSqlDialect(DataSource dataSource) throws SQLException {
    String databaseProductName;
    try (Connection conn = dataSource.getConnection()) {
        databaseProductName = conn.getMetaData().getDatabaseProductName();
    }

    if ("H2".equalsIgnoreCase(databaseProductName)) {
        return SQLDialect.H2;
    } else if ("MySQL".equalsIgnoreCase(databaseProductName)) {
        return SQLDialect.MARIADB;
    } else if ("PostgreSQL".equalsIgnoreCase(databaseProductName)) {
        return SQLDialect.POSTGRES;
    }
    throw new IllegalArgumentException("Unknown DB dialect: " + databaseProductName);
}
 
开发者ID:SolarNetwork,项目名称:killbill-easytax-plugin,代码行数:15,代码来源:EasyTaxActivator.java

示例9: parameters

@Parameters(name = "{0}")
public static Object[] parameters() {
	return new Object[] { new Object[] { SQLDialect.DERBY, sqlException("42802") },
			new Object[] { SQLDialect.H2, sqlException(42000) },
			new Object[] { SQLDialect.HSQLDB, sqlException(-22) },
			new Object[] { SQLDialect.MARIADB, sqlException(1054) },
			new Object[] { SQLDialect.MYSQL, sqlException(1054) },
			new Object[] { SQLDialect.POSTGRES, sqlException("03000") },
			new Object[] { SQLDialect.POSTGRES_9_3, sqlException("03000") },
			new Object[] { SQLDialect.POSTGRES_9_4, sqlException("03000") },
			new Object[] { SQLDialect.POSTGRES_9_5, sqlException("03000") } };
}
 
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:12,代码来源:JooqExceptionTranslatorTests.java

示例10: SQLDialectFromDBEngine

private static SQLDialect SQLDialectFromDBEngine(final EmbeddedDB.DBEngine dbEngine) {
    switch (dbEngine) {
        case H2:
            return SQLDialect.H2;
        case MYSQL:
            return SQLDialect.MARIADB;
        case POSTGRESQL:
            return SQLDialect.POSTGRES;
        default:
            throw new IllegalArgumentException("Unsupported DB engine: " + dbEngine);
    }
}
 
开发者ID:killbill,项目名称:killbill-analytics-plugin,代码行数:12,代码来源:SqlReportDataExtractor.java

示例11: getDialect

public static SQLDialect getDialect() {
  return SQLDialect.MARIADB;
}
 
开发者ID:Skelril,项目名称:Skree,代码行数:3,代码来源:SQLHandle.java

示例12: getFolder

private String getFolder(SQLDialect dialect) {
    if(dialect == SQLDialect.MYSQL || dialect == SQLDialect.MARIADB) {
        return "mysql";
    }
    return "common";
}
 
开发者ID:AveryRegier,项目名称:club-tracker,代码行数:6,代码来源:ConfiguredConnector.java


注:本文中的org.jooq.SQLDialect.MARIADB属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。