generated from quarkiverse/quarkiverse-template
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
485 additions
and
193 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
...oyment/src/main/java/io/quarkiverse/doma/deployment/DefaultDataSourceBuildTimeConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package io.quarkiverse.doma.deployment; | ||
|
||
import java.util.Optional; | ||
|
||
import io.quarkiverse.doma.runtime.DomaSettings; | ||
|
||
public class DefaultDataSourceBuildTimeConfig implements DomaBuildTimeConfig.DataSourceBuildTimeConfig { | ||
public static final String DEFAULT_BATCH_SIZE = "0"; | ||
public static final String DEFAULT_FETCH_SIZE = "0"; | ||
public static final String DEFAULT_MAX_ROWS = "0"; | ||
public static final String DEFAULT_QUERY_TIMEOUT = "0"; | ||
|
||
@Override | ||
public Optional<DomaSettings.DialectType> dialect() { | ||
return Optional.empty(); | ||
} | ||
|
||
@Override | ||
public int batchSize() { | ||
return Integer.parseInt(DEFAULT_BATCH_SIZE); | ||
} | ||
|
||
@Override | ||
public int fetchSize() { | ||
return Integer.parseInt(DEFAULT_FETCH_SIZE); | ||
} | ||
|
||
@Override | ||
public int maxRows() { | ||
return Integer.parseInt(DEFAULT_MAX_ROWS); | ||
} | ||
|
||
@Override | ||
public int queryTimeout() { | ||
return Integer.parseInt(DEFAULT_QUERY_TIMEOUT); | ||
} | ||
|
||
@Override | ||
public Optional<String> sqlLoadScript() { | ||
return Optional.empty(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.