com.pingcap.tidb.TiDBAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tidb-datanucleus-adapter Show documentation
Show all versions of tidb-datanucleus-adapter Show documentation
TiDB's own datanucleus adapter to override MySQLAdapter's behavior
The newest version!
package com.pingcap.tidb;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import org.datanucleus.store.rdbms.adapter.MySQLAdapter;
public class TiDBAdapter extends MySQLAdapter {
// extends MySQLAdapter
/**
* Constructor. Overridden so we can add on our own list of NON SQL92 reserved words which is
* returned incorrectly with the JDBC driver.
*
* @param metadata MetaData for the DB
**/
public TiDBAdapter(DatabaseMetaData metadata) {
super(metadata);
}
/**
* Accessor for the transaction isolation level to use during schema creation.
* @return The transaction isolation level for schema generation process
*/
public int getTransactionIsolationForSchemaCreation() {
return Connection.TRANSACTION_READ_COMMITTED;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy