|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.gouv.culture.sdx.utils.AbstractSdxObject
fr.gouv.culture.sdx.utils.rdbms.JDBC
fr.gouv.culture.sdx.utils.rdbms.DataSourceComponentBacked
fr.gouv.culture.sdx.utils.database.AbstractJDBCDatabase
fr.gouv.culture.sdx.utils.database.JDBCDatabase
fr.gouv.culture.sdx.utils.database.ORACLEDatabase
An Oracle implementation of the SDX Database interface. Tested with Oracle 10g under Windows. Should work with many Oracle versions.
Nested Class Summary |
Nested classes inherited from class fr.gouv.culture.sdx.utils.rdbms.JDBC |
JDBC.QueryExecutor, JDBC.Template |
Nested classes inherited from class fr.gouv.culture.sdx.utils.SdxObject |
SdxObject.ConfigurationNode |
Field Summary |
Fields inherited from class fr.gouv.culture.sdx.utils.database.AbstractJDBCDatabase |
_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 |
Fields inherited from class fr.gouv.culture.sdx.utils.rdbms.DataSourceComponentBacked |
ATTRIBUTE_DSI, dbSelector, dsi |
Fields inherited from class fr.gouv.culture.sdx.utils.rdbms.JDBC |
tableName |
Fields inherited from class fr.gouv.culture.sdx.utils.AbstractSdxObject |
_configuration, _context, _description, _encoding, _id, _locale, _logger, _manager, _xmlizable_objects, _xmlLang, isToSaxInitialized |
Fields inherited from interface fr.gouv.culture.sdx.utils.database.Database |
CLASS_NAME_SUFFIX, DATABASE_DIR_PATH, PACKAGE_QUALNAME, SEARCH_MODE_AND, SEARCH_MODE_NOT, SEARCH_MODE_OR |
Fields inherited from interface fr.gouv.culture.sdx.utils.Encodable |
DEFAULT_ENCODING |
Fields inherited from interface fr.gouv.culture.sdx.utils.save.Saveable |
ALL_SAVE_ATTRIB, PATH_ATTRIB, SAVE_DIRECTORY_PARAM |
Constructor Summary | |
ORACLEDatabase()
|
Method Summary | |
protected void |
createIndicies(java.sql.Connection conn)
Creates the index on the ID field. |
protected java.lang.String |
getCreateIndiciesQuery(java.lang.String fieldName)
For performance reasons, we create an index on the ID field. |
protected java.lang.String |
getTableCreationQuery()
Returns the CREATE TABLE statement. |
void |
save(DatabaseEntity ent)
We slightly modify the default behaviour to insert a dummy property when an entity has no property defined. |
Methods inherited from class fr.gouv.culture.sdx.utils.database.JDBCDatabase |
getDatabaseDirectoryName, getEntriesWithLimitQuery, initToSax, initVolatileObjectsToSax, optimize |
Methods inherited from class fr.gouv.culture.sdx.utils.database.AbstractJDBCDatabase |
addProperty, backup, configure, delete, delete, empty, entityExists, getAllEntitiesQuery, getClassNameSuffix, getConnection, getDeleteAllQuery, getEntities, getEntities, getEntity, getEntity, getEntityDeleteQuery, getEntityGetQuery, getEntityIds, getProperties, getPropertyAddQuery, getPropertyRemoveQueryWithId, getPropertyRemoveQueryWithoutId, getPropertyValue, getPropertyValues, getWildcardSearchToken, init, releaseConnection, removeProperty, removeProperty, restore, search, search, searchWithParams, size, update |
Methods inherited from class fr.gouv.culture.sdx.utils.rdbms.DataSourceComponentBacked |
finalize, getDataSourceComponent, releaseDataSourceComponent, service |
Methods inherited from class fr.gouv.culture.sdx.utils.rdbms.JDBC |
createTable, getTableName, handleUnsupportedTokens |
Methods inherited from class fr.gouv.culture.sdx.utils.AbstractSdxObject |
configureDescription, contextualize, enableLogging, getBaseAttributes, getConfiguration, getContext, getDescription, getEncoding, getId, getLocale, getLog, getServiceManager, getXmlLang, setDescription, setEncoding, setId, setLocale, setUpSdxObject, setUpSdxObject, setXmlLang, toSAX, verifyConfigurationResources |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface fr.gouv.culture.sdx.utils.SdxObject |
getLog |
Methods inherited from interface org.apache.avalon.framework.logger.LogEnabled |
enableLogging |
Methods inherited from interface org.apache.avalon.framework.context.Contextualizable |
contextualize |
Methods inherited from interface org.apache.avalon.framework.service.Serviceable |
service |
Methods inherited from interface fr.gouv.culture.sdx.utils.Identifiable |
getId, setId |
Methods inherited from interface fr.gouv.culture.sdx.utils.Describable |
getDescription, setDescription |
Methods inherited from interface fr.gouv.culture.sdx.utils.Encodable |
getEncoding, setEncoding |
Methods inherited from interface fr.gouv.culture.sdx.utils.Localizable |
getLocale, getXmlLang, setLocale, setXmlLang |
Methods inherited from interface org.apache.excalibur.xml.sax.XMLizable |
toSAX |
Constructor Detail |
public ORACLEDatabase()
Method Detail |
protected java.lang.String getTableCreationQuery()
getTableCreationQuery
in class AbstractJDBCDatabase
protected java.lang.String getCreateIndiciesQuery(java.lang.String fieldName)
getCreateIndiciesQuery
in class AbstractJDBCDatabase
protected void createIndicies(java.sql.Connection conn) throws SDXException
createIndicies
in class AbstractJDBCDatabase
SDXException
public void save(DatabaseEntity ent) throws SDXException
save
in interface Database
save
in class AbstractJDBCDatabase
SDXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |