Top Description Fields Constructors Methods
org.jabref.logic.shared

public Class MySQLProcessor

extends DBMSProcessor
Class Inheritance
Imports
java.sql.SQLException, java.util.Map, org.jabref.model.metadata.MetaData

Processes all incoming or outgoing bib data to MySQL Database and manages its structure.

Field Summary

Modifier and TypeField and Description
private Integer
private Integer
Inherited from org.jabref.logic.shared.DBMSProcessor:
connectionconnectionPropertiesLOGGERPROCESSOR_ID

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv String
escape(String
Table or field name
expression
)

Implements abstract org.jabref.logic.shared.DBMSProcessor.escape.

Escapes parts of SQL expressions such as a table name or a field name to match the conventions of the database system using the current dbmsType.

pack-priv String
pack-priv Integer
public void
setUp()

Implements abstract org.jabref.logic.shared.DBMSProcessor.setUp.

Creates and sets up the needed tables and columns according to the database type.

Inherited from org.jabref.logic.shared.DBMSProcessor:
checkBaseIntegritycheckTableAvailabilitydatabaseIsAtMostJabRef35getDBMSConnectionPropertiesgetProcessorInstancegetSharedEntriesgetSharedEntriesgetSharedEntrygetSharedIDVersionMappinggetSharedMetaDatainsertEntriesinsertEntryinsertIntoEntryTableinsertIntoFieldTablenotifyClientspartitionAndGetSharedEntriesremoveEntriessetSharedMetaDatasetupSharedDatabasestartNotificationListenerstopNotificationListenerupdateEntry

Field Detail

CURRENT_VERSION_DB_STRUCTback to summary
private Integer CURRENT_VERSION_DB_STRUCT
VERSION_DB_STRUCT_DEFAULTback to summary
private Integer VERSION_DB_STRUCT_DEFAULT

Constructor Detail

MySQLProcessorback to summary
public MySQLProcessor(DatabaseConnection connection)

Method Detail

escapeback to summary
pack-priv String escape(String expression)

Implements abstract org.jabref.logic.shared.DBMSProcessor.escape.

Doc from org.jabref.logic.shared.DBMSProcessor.escape.

Escapes parts of SQL expressions such as a table name or a field name to match the conventions of the database system using the current dbmsType.

This method is package private, because of DBMSProcessorTest

Parameters
expression:String

Table or field name

Returns:String

Correctly escaped expression

Annotations
@Override
escape_Tableback to summary
pack-priv String escape_Table(String expression)

Implements abstract org.jabref.logic.shared.DBMSProcessor.escape_Table.

Annotations
@Override
getCURRENT_VERSION_DB_STRUCTback to summary
pack-priv Integer getCURRENT_VERSION_DB_STRUCT()

Implements abstract org.jabref.logic.shared.DBMSProcessor.getCURRENT_VERSION_DB_STRUCT.

Annotations
@Override
setUpback to summary
public void setUp() throws SQLException

Implements abstract org.jabref.logic.shared.DBMSProcessor.setUp.

Creates and sets up the needed tables and columns according to the database type.

Annotations
@Override
Exceptions
SQLException:

Doc from org.jabref.logic.shared.DBMSProcessor.setUp.

in case of error