com.univocity.api.entity.jdbc
Class DatabaseCapabilities

java.lang.Object
  extended by com.univocity.api.entity.jdbc.DatabaseCapabilities

public final class DatabaseCapabilities
extends Object

Class used to provide information about the capabilities of a database accessed by uniVocity.
uniVocity tries to extract this information automatically, but you can provide it manually. User-provided settings will override auto-detected information.

Author:
uniVocity Software Pty Ltd - dev@univocity.com
See Also:
JdbcDataStoreConfiguration

Constructor Summary
DatabaseCapabilities()
           
 
Method Summary
 boolean isBatchSupported()
          Identifies whether batching is supported or not.
 boolean isKeyGenerationSupported()
          Identifies whether automatic key generation is supported or not.
 void setBatchSupported(boolean isBatchSupported)
          Defines whether batching is supported or not.
 void setKeyGenerationSupported(boolean isKeyGenerationSupported)
          Defines whether automatic key generation is supported or not.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatabaseCapabilities

public DatabaseCapabilities()
Method Detail

isBatchSupported

public final boolean isBatchSupported()
Identifies whether batching is supported or not. Batch operations provide better performance and uniVocity will try to use batching whenever possible.

Returns:
a flag indicating whether batch operations are supported by the database accessed by entities of a JDBC data store.

setBatchSupported

public final void setBatchSupported(boolean isBatchSupported)
Defines whether batching is supported or not. Batch operations provide better performance and uniVocity will try to use batching whenever possible.

Parameters:
isBatchSupported - the indication that batch operations are supported by the database accessed by entities of a JDBC data store.

isKeyGenerationSupported

public final boolean isKeyGenerationSupported()
Identifies whether automatic key generation is supported or not. This is used for collecting generated keys when inserting new rows in tables with identity columns.

Returns:
a flag indicating whether generated keys are supported by the database accessed by entities of a JDBC data store.

setKeyGenerationSupported

public final void setKeyGenerationSupported(boolean isKeyGenerationSupported)
Defines whether automatic key generation is supported or not. This is used for collecting generated keys when inserting new rows in tables with identity columns.

Parameters:
isKeyGenerationSupported - the indication that generated keys are supported by the database accessed by entities of a JDBC data store.

toString

public final String toString()
Overrides:
toString in class Object


Copyright © 2015 uniVocity Software Pty Ltd. All rights reserved.