|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.mmbase.storage.implementation.database.DatabaseStorageManager
org.mmbase.storage.implementation.database.ViewDatabaseStorageManager
public class ViewDatabaseStorageManager
A View database storage manager creates tables without the fields of the 'super' tables and views to represent the combined table.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.mmbase.storage.implementation.database.DatabaseStorageManager |
|---|
DatabaseStorageManager.InputStreamBlob |
| Field Summary |
|---|
| Fields inherited from class org.mmbase.storage.implementation.database.DatabaseStorageManager |
|---|
activeConnection, changes, factory, inTransaction, OBJ2TYPE_MAX_SIZE, sequenceKeys, transactionIsolation, typeCache |
| Constructor Summary | |
|---|---|
ViewDatabaseStorageManager()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ViewDatabaseStorageManager()
| Method Detail |
|---|
protected boolean useDatabaseInheritance()
DatabaseStorageManager
useDatabaseInheritance in class DatabaseStorageManager
public boolean exists()
throws StorageException
exists in interface StorageManager<DatabaseStorageManagerFactory>exists in class DatabaseStorageManagertrue if basic storage elements exist
StorageException - if an error occurred while querying the storage
public boolean exists(MMObjectBuilder builder)
throws StorageException
exists in interface StorageManager<DatabaseStorageManagerFactory>exists in class DatabaseStorageManagerbuilder - the builder to check
true if the storage element exists, false if it doesn't
StorageException - if an error occurred while querying the storage
public void create()
throws StorageException
create in interface StorageManager<DatabaseStorageManagerFactory>create in class DatabaseStorageManagerStorageException - if an error occurred during the creation of the object storage
public void create(MMObjectBuilder builder)
throws StorageException
create in interface StorageManager<DatabaseStorageManagerFactory>create in class DatabaseStorageManagerbuilder - the builder to create the storage element for
StorageException - 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
DatabaseStorageManager
create in class DatabaseStorageManagernode - The node to insert. The node already needs to have a (new) number assignedbuilder - the builder to store the node
StorageException - if an error occurred during creation
protected 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 node
StorageException - if an error occurred during creation
public void change(MMObjectNode node,
MMObjectBuilder builder)
throws StorageException
change in class DatabaseStorageManagernode - The node to changebuilder - the builder to change the node in
StorageException - if an error occurred during change
public void delete(MMObjectNode node,
MMObjectBuilder builder)
throws StorageException
delete in class DatabaseStorageManagernode - The node to deletebuilder - the builder to delete the node in
StorageException - if an error occurred during deleteprotected String getFieldName(CoreField field)
protected boolean isInheritedField(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 void create(Index index)
throws StorageException
create in class DatabaseStorageManagerindex - the index to create
StorageException
protected boolean exists(Index index)
throws StorageException
DatabaseStorageManager
exists in class DatabaseStorageManagerindex - the index to test
StorageException - when a database error occursprotected boolean viewExists(MMObjectBuilder builder)
protected boolean viewCreate(MMObjectBuilder builder)
public void verify(MMObjectBuilder builder)
throws StorageException
DatabaseStorageManager
verify in class DatabaseStorageManagerStorageException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||