public class MYSQLDatabase extends JDBCDatabase
JDBC.QueryExecutor, JDBC.Template
SdxObject.ConfigurationNode
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
FIELD_KEY |
_searchModes, COLUMN_PARAM_INDEX_FIELD_ID, COLUMN_PARAM_INDEX_FIELD_PROPERTY_NAME, COLUMN_PARAM_INDEX_FIELD_PROPERTY_VALUE, FIELD_ID, FIELD_PROPERTY_NAME, FIELD_PROPERTY_VALUE
ATTRIBUTE_DSI, dbSelector, dsi
_configuration, _context, _description, _encoding, _id, _locale, _logger, _manager, _xmlizable_objects, _xmlLang, isToSaxInitialized
CLASS_NAME_SUFFIX, DATABASE_DIR_PATH, PACKAGE_QUALNAME, SEARCH_MODE_AND, SEARCH_MODE_NOT, SEARCH_MODE_OR
DEFAULT_ENCODING
ALL_SAVE_ATTRIB, PATH_ATTRIB, SAVE_DIRECTORY_PARAM
Constructor and Description |
---|
MYSQLDatabase() |
Modifier and Type | Method and Description |
---|---|
void |
backup(SaveParameters save_config)
Save the database
|
protected java.lang.String |
getEntriesWithLimitQuery(long offset,
long number)
Implementation of statement with a limit parameter
|
protected java.lang.String |
getTableCreationQuery()
Returns an SQL query that could create the table.
|
protected boolean |
initToSax()
Init the LinkedHashMap _xmlizable_objects with the objects in order to describ them in XML
|
void |
restore(SaveParameters save_config)
Restore the database
|
getDatabaseDirectoryName, initVolatileObjectsToSax, optimize
addProperty, configure, createIndicies, delete, delete, empty, entityExists, getAllEntitiesQuery, getClassNameSuffix, getConnection, getCreateIndiciesQuery, getDeleteAllQuery, getEntities, getEntities, getEntity, getEntity, getEntityDeleteQuery, getEntityGetQuery, getEntityIds, getProperties, getPropertyAddQuery, getPropertyRemoveQueryWithId, getPropertyRemoveQueryWithoutId, getPropertyValue, getPropertyValues, getWildcardSearchToken, init, releaseConnection, removeProperty, removeProperty, save, search, search, searchWithParams, size, update
finalize, getDataSourceComponent, releaseDataSourceComponent, service
createTable, getTableName, handleUnsupportedTokens
configureDescription, contextualize, enableLogging, getBaseAttributes, getConfiguration, getContext, getDescription, getEncoding, getId, getLocale, getLog, getServiceManager, getXmlLang, setDescription, setEncoding, setId, setLocale, setUpSdxObject, setUpSdxObject, setXmlLang, toSAX, verifyConfigurationResources
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId, setId
getDescription, setDescription
getEncoding, setEncoding
getLocale, getXmlLang, setLocale, setXmlLang
protected final java.lang.String FIELD_KEY
protected java.lang.String getTableCreationQuery()
JDBC
This query should not have any parameter.
getTableCreationQuery
in class AbstractJDBCDatabase
protected boolean initToSax()
AbstractSdxObject
initToSax
in class JDBCDatabase
public void backup(SaveParameters save_config) throws SDXException
backup
in interface Saveable
backup
in class AbstractJDBCDatabase
SDXException
Saveable.backup(fr.gouv.culture.sdx.utils.save.SaveParameters)
protected java.lang.String getEntriesWithLimitQuery(long offset, long number)
AbstractJDBCDatabase
getEntriesWithLimitQuery
in class JDBCDatabase
MYSQL implementation
SELECT * FROM >table_name< LIMIT >offset<,>number< ;
public void restore(SaveParameters save_config) throws SDXException
restore
in interface Saveable
restore
in class AbstractJDBCDatabase
SDXException
Saveable.restore(fr.gouv.culture.sdx.utils.save.SaveParameters)
Copyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.