Examples of MySQLFactory


Examples of org.jooq.util.mysql.MySQLFactory

            schemata.get(0)
                .withInput(TAuthor().getSchema().getName())
                .withOutput(TAuthor().getSchema().getName() + getSchemaSuffix());
        }

        return new MySQLFactory(getConnection(), settings);
    }
View Full Code Here

Examples of org.jooq.util.mysql.MySQLFactory

        return "2";
    }

    @Override
    protected MySQLFactory create(Settings settings) {
        return new MySQLFactory(getConnection(), settings);
    }
View Full Code Here

Examples of org.jooq.util.mysql.MySQLFactory

        T_639NumbersTableRecord,
        T_785Record> {

    @Override
    protected MySQLFactory create(Settings settings) {
        return new MySQLFactory(getConnection(), settings);
    }
View Full Code Here

Examples of org.jooq.util.mysql.MySQLFactory

        super.testInsertIdentity();
    }

    @Test
    public void testMySQLEncryptionFunctions() throws Exception {
        MySQLFactory create = (MySQLFactory) create();

        assertNotNull(create.select(password("abc")).fetchOne(0));
        assertNotNull(create.select(md5("abc")).fetchOne(0));
        assertNotNull(create.select(sha1("abc")).fetchOne(0));
        assertNotNull(create.select(sha2("abc", 256)).fetchOne(0));
        assertEquals("abc", create.select(decode(encode("abc", "pw"), val("pw"))).fetchOne(0));
        assertEquals("abc", create.select(aesDecrypt(aesEncrypt("abc", "pw"), val("pw"))).fetchOne(0));
        assertEquals("abc", create.select(desDecrypt(desEncrypt("abc", "pw"), val("pw"))).fetchOne(0));
        assertEquals("abc", create.select(desDecrypt(desEncrypt("abc"))).fetchOne(0));
        assertEquals("abc", create.select(uncompress(compress("abc"))).fetchOne(0));
        assertEquals(3, create.select(uncompressedLength(compress("abc"))).fetchOne(0));
    }
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.