@Override public Credential get() { return Credential.builder() .vendorName("MYSQL") .driverClass(driverClass) .server(host) .port(port) .db(db) .user(user) .password(password) .build(); }
public static Module standardModuleUsing(Credential credential) { return using(credential) .poolingWithHikari() .configured() .withStandardOptions() .done() .buildModule(); }
@Override public OptionsBuilderCustom withCustomOptions() { if (polling == null) { poolingWithHikari() .configured() .withStandardOptions() .done(); } options = new WayRelationalModuleBuilderOptions(this); return options; }
private List<E> getNextPage() { int firstResult = firstResult(); SimplePage paginator = SimplePage.build() .startAt(firstResult) .withLengthOf(getLength()) .get(); page++; return exec.listPage(sql, paginator); }
public SqlDump toSqlDump(PrimaryKey pk) { boolean contained = false; for (InsertValue insertValue : insertValueList) { if (insertValue.isColumnNameEqual(pk.columnName())) { contained = true; break; } } return contained ? toSqlDump() : SqlDump.newSqlDump(table, insertValueList, pk, paramValueFactory()); }
public SqlDump toSqlDump(PrimaryKey pk) { boolean contained = false; for (InsertValue insertValue : insertValueList) { if (insertValue.isColumnNameEqual(pk.columnName())) { contained = true; break; } } return contained ? toSqlDump() : SqlDump.newSqlDump(table, insertValueList, pk); }
@Override public void update(AbstractEntityMapping<?> mapping) { AbstractUpdatable updatable = mapping.toUpdatable(); sqlFactory.update(updatable).execute(); }
@Override public void update(EntityMapping mapping) { Updatable updatable = mapping.toUpdatable(); sqlFactory.update(updatable).execute(); }
@Override public Credential get() { return Credential.builder() .vendorName("MYSQL") .driverClass(driverClass) .server(host) .port(port) .db(db) .user(user) .password(password) .build(); }
public static Module standardModuleUsing(Credential credential) { return using(credential) .poolingWithHikari() .configured() .withStandardOptions() .done() .buildModule(); }
@Override public OptionsBuilderCustom withCustomOptions() { if (polling == null) { poolingWithHikari() .configured() .withStandardOptions() .done(); } options = new WayRelationalModuleBuilderOptions(this); return options; }
private List<E> getNextPage() { int firstResult = firstResult(); SimplePage paginator = SimplePage.build() .startAt(firstResult) .withLengthOf(getLength()) .get(); page++; return exec.listPage(sql, paginator); }
public SqlDump toSqlDump(PrimaryKey pk) { boolean contained = false; for (InsertValue insertValue : insertValueList) { if (insertValue.isColumnNameEqual(pk.columnName())) { contained = true; break; } } return contained ? toSqlDump() : SqlDump.newSqlDump(table, insertValueList, pk, paramValueFactory()); }
@Override public Credential get() { return Credential.builder() .vendorName("MYSQL") .driverClass(driverClass) .server(host) .port(port) .db(db) .user(user) .password(password) .build(); }
public static Module standardModuleUsing(Credential credential) { return using(credential) .poolingWithHikari() .configured() .withStandardOptions() .done() .buildModule(); }
@Override public OptionsBuilderCustom withCustomOptions() { if (polling == null) { poolingWithHikari() .configured() .withStandardOptions() .done(); } options = new WayRelationalModuleBuilderOptions(this); return options; }
private List<E> getNextPage() { int firstResult = firstResult(); SimplePage paginator = SimplePage.build() .startAt(firstResult) .withLengthOf(getLength()) .get(); page++; return exec.listPage(sql, paginator); }