Class JdbcConfig


  • public class JdbcConfig
    extends Object
    JDBC-specific configuration.
    • Constructor Detail

      • JdbcConfig

        public JdbcConfig()
      • JdbcConfig

        public JdbcConfig​(Properties props)
    • Method Detail

      • isAutoCommit

        public boolean isAutoCommit()
        Checks whether auto commit should be enabled when creating a connection.
        Returns:
        true if auto commit should be enabled when creating connection; false otherwise
      • isContinueBatchOnError

        public boolean isContinueBatchOnError()
        Checks whether batch processing should continue when error occurred.
        Returns:
        true if should continue; false to throw exception and abort execution
      • getFetchSize

        public int getFetchSize()
        Gets default fetch size for query.
        Returns:
        default fetch size for query
      • getTypeMap

        public Map<String,​Class<?>> getTypeMap()
        Gets custom type map.
        Returns:
        non-null custom type map
      • isJdbcCompliant

        public boolean isJdbcCompliant()
        Checks whether JDBC-complaint mode is enabled or not.
        Returns:
        true if JDBC-complaint mode is enabled; false otherwise
      • useNamedParameter

        public boolean useNamedParameter()
        Checks whether named parameter should be used instead of JDBC standard question mark placeholder.
        Returns:
        true if named parameter should be used; false otherwise
      • useWrapperObject

        public boolean useWrapperObject()
        Checks whether Array and Struct should be returned for array and tuple when calling ResultSet.getObject(int).
        Returns:
        true if wrapper object should be returned instead of array / tuple; false otherwise