public class ViewDatabaseStorageManager extends DatabaseStorageManager
DatabaseStorageManager.InputStreamBlobactiveConnection, changes, factory, inTransaction, OBJ2TYPE_MAX_SIZE, sequenceKeys, transactionIsolation, typeCache| Constructor and Description |
|---|
ViewDatabaseStorageManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
change(MMObjectNode node,
MMObjectBuilder builder)
Changes a node in the passed builder and all its parent builders
|
void |
create()
Create the basic elements for this storage
|
protected void |
create(Index index)
Override the default version.
|
void |
create(MMObjectBuilder builder)
Create a storage element to store the specified builder's objects.
|
void |
create(MMObjectNode node,
MMObjectBuilder builder)
This method inserts a new object in a specific builder, and registers the change.
|
protected void |
createObject(MMObjectNode node,
MMObjectBuilder builder)
This method inserts a new object in a specific builder, and registers the change.
|
void |
delete(MMObjectNode node,
MMObjectBuilder builder)
Deletes a node in the passed builder and all its parent builders.
|
boolean |
exists()
Determine if the basic storage elements exist
Basic storage elements include the 'object' storage (where all objects and their types are registered).
|
protected boolean |
exists(Index index)
Determines if an index exists.
|
boolean |
exists(MMObjectBuilder builder)
Determine if a storage element exists for storing the given builder's objects
|
protected String |
getFieldName(CoreField field) |
protected CoreField |
getNumberField() |
protected String |
getTableName(MMObjectBuilder builder) |
protected String |
getTableName(String viewname) |
protected String |
getViewName(MMObjectBuilder builder) |
protected String |
getViewName(String viewname) |
protected boolean |
isInheritedField(CoreField field) |
protected boolean |
useDatabaseInheritance()
Whether during the table verification also metaData.getSuperTables must be used to obtain the fields in the
parent builder.
|
void |
verify(MMObjectBuilder builder)
Tests whether a builder and the table present in the database match.
|
protected boolean |
viewCreate(MMObjectBuilder builder) |
protected boolean |
viewExists(MMObjectBuilder builder) |
addToTableNameCache, appendDirectory, appendField, beginTransaction, change, change, change, change, checkFile, commit, commitChange, compareIndex, convertLegacyBinaryFiles, create, create, create, createIndex, createIndices, createKey, createSequence, createTable, delete, delete, delete, delete, delete, deleteIndices, executeQuery, executeUpdate, executeUpdateCheckConnection, exists, exists, fillNode, getActiveConnection, getBinaryFile, getBinaryValue, getBlobFromDatabase, getBlobValue, getBlobValue, getBlobValue, getBooleanValue, getConstraintDefinition, getDateTimeValue, getFactory, getFieldDefinition, getFieldIndices, getFieldList, getFieldTypeDefinition, getInputStreamValue, getJDBCtoField, getLogStartTime, getMaxLengthForKey, getNode, getNodeType, getStringValue, getStringValue, getValue, getVersion, getXMLValue, init, isBinaryColumnType, isNull, isPartOfBuilderDefinition, isVerified, logQuery, readNode, refresh, releaseActiveConnection, rollback, setBinaryValue, setBooleanValue, setDateTimeValue, setDecimalValue, setListValue, setNodeType, setNodeTypeLeaveRelations, setNodeTypeRememberRelations, setNodeValue, setNullValue, setNumericValue, setStringValue, setValue, setXMLValue, shorten, size, size, storeBinaryAsFile, tablesInheritFields, unloadShortedFields, verifyTablesprotected boolean useDatabaseInheritance()
DatabaseStorageManageruseDatabaseInheritance in class DatabaseStorageManagerpublic boolean exists()
throws StorageException
exists in interface StorageManager<DatabaseStorageManagerFactory>exists in class DatabaseStorageManagertrue if basic storage elements existStorageException - if an error occurred while querying the storagepublic boolean exists(MMObjectBuilder builder) throws StorageException
exists in interface StorageManager<DatabaseStorageManagerFactory>exists in class DatabaseStorageManagerbuilder - the builder to checktrue if the storage element exists, false if it doesn'tStorageException - if an error occurred while querying the storagepublic void create()
throws StorageException
create in interface StorageManager<DatabaseStorageManagerFactory>create in class DatabaseStorageManagerStorageException - if an error occurred during the creation of the object storagepublic void create(MMObjectBuilder builder) throws StorageException
create in interface StorageManager<DatabaseStorageManagerFactory>create in class DatabaseStorageManagerbuilder - the builder to create the storage element forStorageException - if an error occurred during the creation of the storage elementStorageManager.create(org.mmbase.module.core.MMObjectBuilder)public void create(MMObjectNode node, MMObjectBuilder builder) throws StorageException
DatabaseStorageManagercreate in class DatabaseStorageManagernode - The node to insert. The node already needs to have a (new) number assignedbuilder - the builder to store the nodeStorageException - if an error occurred during creationprotected void createObject(MMObjectNode node, MMObjectBuilder builder) throws StorageException
node - The node to insert. The node already needs to have a (new) number assignedbuilder - the builder to store the nodeStorageException - if an error occurred during creationpublic void change(MMObjectNode node, MMObjectBuilder builder) throws StorageException
change in class DatabaseStorageManagernode - The node to changebuilder - the builder to change the node inStorageException - if an error occurred during changepublic void delete(MMObjectNode node, MMObjectBuilder builder) throws StorageException
delete in class DatabaseStorageManagernode - The node to deletebuilder - the builder to delete the node inStorageException - if an error occurred during deleteprotected boolean isInheritedField(CoreField field)
protected CoreField getNumberField()
protected String getTableName(MMObjectBuilder builder)
protected String getViewName(MMObjectBuilder builder)
protected void create(Index index) throws StorageException
create in class DatabaseStorageManagerindex - the index to createStorageExceptionprotected boolean exists(Index index) throws StorageException
DatabaseStorageManagerexists in class DatabaseStorageManagerindex - the index to testStorageException - when a database error occursprotected boolean viewExists(MMObjectBuilder builder)
protected boolean viewCreate(MMObjectBuilder builder)
public void verify(MMObjectBuilder builder) throws StorageException
DatabaseStorageManagerverify in class DatabaseStorageManagerStorageExceptionMMBase 1.9-SNAPSHOT - ${javadoctimestamp}