Java Doc for ViewDatabaseStorageManager.java in  » Database-ORM » MMBase » org » mmbase » storage » implementation » database » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database ORM » MMBase » org.mmbase.storage.implementation.database 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.mmbase.storage.implementation.database.DatabaseStorageManager
      org.mmbase.storage.implementation.database.ViewDatabaseStorageManager

ViewDatabaseStorageManager
public class ViewDatabaseStorageManager extends DatabaseStorageManager (Code)

version:
   $Id: ViewDatabaseStorageManager.java,v 1.11 2007/03/02 21:03:05 nklasens Exp $
since:
   MMBase-1.8




Method Summary
public  voidchange(MMObjectNode node, MMObjectBuilder builder)
    
public  voidcreate()
    
public  voidcreate(MMObjectBuilder builder)
     Create a storage element to store the specified builder's objects.
public  voidcreate(MMObjectNode node, MMObjectBuilder builder)
    
protected  voidcreate(Index index)
     Override the default version.
protected  voidcreateObject(MMObjectNode node, MMObjectBuilder builder)
     This method inserts a new object in a specific builder, and registers the change. This method makes it easier to implement relational databases, where you may need to update the node in more than one builder. Call this method for all involved builders if you use a relational database.
Parameters:
  node - The node to insert.
public  voiddelete(MMObjectNode node, MMObjectBuilder builder)
     Deletes a node in the passed builder and all its parent builders.
public  booleanexists()
     Determine if the basic storage elements exist Basic storage elements include the 'object' storage (where all objects and their types are registered).
public  booleanexists(MMObjectBuilder builder)
    
protected  booleanexists(Index index)
    
public  StringgetFieldName(CoreField field)
    
public  CoreFieldgetNumberField()
    
public  StringgetTableName(MMObjectBuilder builder)
    
public  StringgetTableName(String viewname)
    
public  StringgetViewName(MMObjectBuilder builder)
    
public  StringgetViewName(String viewname)
    
public  booleanisInheritedField(CoreField field)
    
public  booleanviewCreate(MMObjectBuilder builder)
    
public  booleanviewExists(MMObjectBuilder builder)
    



Method Detail
change
public void change(MMObjectNode node, MMObjectBuilder builder) throws StorageException(Code)
Changes a node in the passed builder and all its parent builders
Parameters:
  node - The node to change
Parameters:
  builder - the builder to change the node in
throws:
  StorageException - if an error occurred during change



create
public void create() throws StorageException(Code)
Create the basic elements for this storage
throws:
  StorageException - if an error occurred during the creation of the object storage



create
public void create(MMObjectBuilder builder) throws StorageException(Code)
Create a storage element to store the specified builder's objects.
Parameters:
  builder - the builder to create the storage element for
throws:
  StorageException - if an error occurred during the creation of the storage element



create
public void create(MMObjectNode node, MMObjectBuilder builder) throws StorageException(Code)



create
protected void create(Index index) throws StorageException(Code)
Override the default version. An index should only be created if all the fields are in this builder. Otherwise this will fail horrably.



createObject
protected void createObject(MMObjectNode node, MMObjectBuilder builder) throws StorageException(Code)
This method inserts a new object in a specific builder, and registers the change. This method makes it easier to implement relational databases, where you may need to update the node in more than one builder. Call this method for all involved builders if you use a relational database.
Parameters:
  node - The node to insert. The node already needs to have a (new) number assigned
Parameters:
  builder - the builder to store the node
throws:
  StorageException - if an error occurred during creation



delete
public void delete(MMObjectNode node, MMObjectBuilder builder) throws StorageException(Code)
Deletes a node in the passed builder and all its parent builders.
Parameters:
  node - The node to delete
Parameters:
  builder - the builder to delete the node in
throws:
  StorageException - if an error occurred during delete



exists
public boolean exists() throws StorageException(Code)
Determine if the basic storage elements exist Basic storage elements include the 'object' storage (where all objects and their types are registered). true if basic storage elements exist
throws:
  StorageException - if an error occurred while querying the storage



exists
public boolean exists(MMObjectBuilder builder) throws StorageException(Code)
Determine if a storage element exists for storing the given builder's objects
Parameters:
  builder - the builder to check true if the storage element exists, false if it doesn't
throws:
  StorageException - if an error occurred while querying the storage



exists
protected boolean exists(Index index) throws StorageException(Code)



getFieldName
public String getFieldName(CoreField field)(Code)



getNumberField
public CoreField getNumberField()(Code)



getTableName
public String getTableName(MMObjectBuilder builder)(Code)



getTableName
public String getTableName(String viewname)(Code)



getViewName
public String getViewName(MMObjectBuilder builder)(Code)



getViewName
public String getViewName(String viewname)(Code)



isInheritedField
public boolean isInheritedField(CoreField field)(Code)



viewCreate
public boolean viewCreate(MMObjectBuilder builder)(Code)



viewExists
public boolean viewExists(MMObjectBuilder builder)(Code)



Fields inherited from org.mmbase.storage.implementation.database.DatabaseStorageManager
final public static int OBJ2TYPE_MAX_SIZE(Code)(Java Doc)
protected Connection activeConnection(Code)(Java Doc)
final protected Map<MMObjectNode, String> changes(Code)(Java Doc)
protected DatabaseStorageManagerFactory factory(Code)(Java Doc)
protected boolean inTransaction(Code)(Java Doc)
final protected static List<Integer> sequenceKeys(Code)(Java Doc)
protected int transactionIsolation(Code)(Java Doc)
protected static Cache<Integer, Integer> typeCache(Code)(Java Doc)

Methods inherited from org.mmbase.storage.implementation.database.DatabaseStorageManager
protected void addToTableNameCache(String name)(Code)(Java Doc)
public void beginTransaction() throws StorageException(Code)(Java Doc)
public void change(MMObjectNode node) throws StorageException(Code)(Java Doc)
protected void change(MMObjectNode node, MMObjectBuilder builder) throws StorageException(Code)(Java Doc)
protected void change(MMObjectNode node, MMObjectBuilder builder, String tableName, Collection<CoreField> changeFields)(Code)(Java Doc)
public void change(MMObjectBuilder builder) throws StorageException(Code)(Java Doc)
public void change(CoreField field) throws StorageException(Code)(Java Doc)
protected File checkFile(File binaryFile, MMObjectNode node, CoreField field)(Code)(Java Doc)
public void commit() throws StorageException(Code)(Java Doc)
protected void commitChange(MMObjectNode node, String change)(Code)(Java Doc)
public int convertLegacyBinaryFiles() throws org.mmbase.storage.search.SearchQueryException, SQLException(Code)(Java Doc)
public int create(MMObjectNode node) throws StorageException(Code)(Java Doc)
protected void create(MMObjectNode node, MMObjectBuilder builder) throws StorageException(Code)(Java Doc)
protected void create(MMObjectNode node, List<CoreField> createFields, String tablename)(Code)(Java Doc)
public void create(MMObjectBuilder builder) throws StorageException(Code)(Java Doc)
public void create() throws StorageException(Code)(Java Doc)
protected void create(Index index) throws StorageException(Code)(Java Doc)
public void create(CoreField field) throws StorageException(Code)(Java Doc)
protected void createIndex(Index index, String tablename)(Code)(Java Doc)
protected void createIndices(CoreField field) throws StorageException(Code)(Java Doc)
public int createKey() throws StorageException(Code)(Java Doc)
protected void createSequence() throws StorageException(Code)(Java Doc)
protected void createTable(MMObjectBuilder builder, List<CoreField> tableFields, String tableName)(Code)(Java Doc)
public void delete(MMObjectNode node) throws StorageException(Code)(Java Doc)
protected void delete(MMObjectNode node, MMObjectBuilder builder) throws StorageException(Code)(Java Doc)
protected void delete(MMObjectNode node, MMObjectBuilder builder, List<CoreField> blobFileField, String tablename)(Code)(Java Doc)
public synchronized void delete(MMObjectBuilder builder) throws StorageException(Code)(Java Doc)
protected void delete(Index index) throws StorageException(Code)(Java Doc)
public void delete(CoreField field) throws StorageException(Code)(Java Doc)
protected void deleteIndices(CoreField field) throws StorageException(Code)(Java Doc)
protected void executeUpdate(String query, MMObjectNode node, List<CoreField> fields) throws SQLException(Code)(Java Doc)
protected void executeUpdateCheckConnection(String query, MMObjectNode node, List<CoreField> fields) throws SQLException(Code)(Java Doc)
public boolean exists(MMObjectBuilder builder) throws StorageException(Code)(Java Doc)
protected synchronized boolean exists(String tableName) throws StorageException(Code)(Java Doc)
public boolean exists() throws StorageException(Code)(Java Doc)
protected boolean exists(Index index, String tablename)(Code)(Java Doc)
protected boolean exists(Index index) throws StorageException(Code)(Java Doc)
protected void fillNode(MMObjectNode node, ResultSet result, MMObjectBuilder builder) throws StorageException(Code)(Java Doc)
protected Connection getActiveConnection() throws SQLException(Code)(Java Doc)
protected File getBinaryFile(MMObjectNode node, String fieldName)(Code)(Java Doc)
public byte[] getBinaryValue(MMObjectNode node, CoreField field) throws StorageException(Code)(Java Doc)
protected Blob getBlobFromDatabase(MMObjectNode node, CoreField field, boolean mayShorten)(Code)(Java Doc)
protected Blob getBlobFromFile(MMObjectNode node, CoreField field, boolean mayShorten) throws StorageException(Code)(Java Doc)
public Blob getBlobValue(MMObjectNode node, CoreField field) throws StorageException(Code)(Java Doc)
public Blob getBlobValue(MMObjectNode node, CoreField field, boolean mayShorten) throws StorageException(Code)(Java Doc)
protected Blob getBlobValue(ResultSet result, int index, CoreField field, boolean mayShorten) throws StorageException, SQLException(Code)(Java Doc)
protected Boolean getBooleanValue(ResultSet result, int index, CoreField field) throws StorageException, SQLException(Code)(Java Doc)
protected String getConstraintDefinition(CoreField field) throws StorageException(Code)(Java Doc)
protected java.util.Date getDateTimeValue(ResultSet result, int index, CoreField field) throws StorageException, SQLException(Code)(Java Doc)
protected String getFieldDefinition(CoreField field) throws StorageException(Code)(Java Doc)
protected String getFieldList(Index index)(Code)(Java Doc)
protected String getFieldTypeDefinition(CoreField field) throws StorageException(Code)(Java Doc)
public InputStream getInputStreamValue(MMObjectNode node, CoreField field) throws StorageException(Code)(Java Doc)
protected int getJDBCtoField(int jdbcType, int mmbaseType)(Code)(Java Doc)
protected long getLogStartTime()(Code)(Java Doc)
public MMObjectNode getNode(MMObjectBuilder builder, int number) throws StorageException(Code)(Java Doc)
public int getNodeType(int number) throws StorageException(Code)(Java Doc)
public String getStringValue(MMObjectNode node, CoreField field) throws StorageException(Code)(Java Doc)
protected Object getStringValue(ResultSet result, int index, CoreField field, boolean mayShorten) throws StorageException, SQLException(Code)(Java Doc)
public Object getValue(ResultSet result, int index, CoreField field, boolean mayShorten) throws StorageException(Code)(Java Doc)
public double getVersion()(Code)(Java Doc)
protected Object getXMLValue(ResultSet result, int index, CoreField field, boolean mayShorten) throws StorageException, SQLException(Code)(Java Doc)
public void init(StorageManagerFactory factory) throws StorageException(Code)(Java Doc)
protected boolean isPartOfBuilderDefinition(CoreField field)(Code)(Java Doc)
public boolean isVerified(MMObjectBuilder builder)(Code)(Java Doc)
final protected void logQuery(String query, long startTime)(Code)(Java Doc)
protected void refresh(MMObjectNode node) throws StorageException(Code)(Java Doc)
protected void releaseActiveConnection()(Code)(Java Doc)
public boolean rollback() throws StorageException(Code)(Java Doc)
protected void setBinaryValue(PreparedStatement statement, int index, Object objectValue, CoreField field, MMObjectNode node) throws StorageException, SQLException(Code)(Java Doc)
protected void setBooleanValue(PreparedStatement statement, int index, Object value, CoreField field, MMObjectNode node) throws StorageException, SQLException(Code)(Java Doc)
protected void setDateTimeValue(PreparedStatement statement, int index, Object value, CoreField field, MMObjectNode node) throws StorageException, SQLException(Code)(Java Doc)
protected void setListValue(PreparedStatement statement, int index, Object value, CoreField field, MMObjectNode node) throws StorageException, SQLException(Code)(Java Doc)
protected void setNodeValue(PreparedStatement statement, int index, Object nodeValue, CoreField field, MMObjectNode node) throws StorageException, SQLException(Code)(Java Doc)
protected boolean setNullValue(PreparedStatement statement, int index, Object value, CoreField field, int type) throws StorageException, SQLException(Code)(Java Doc)
protected void setNumericValue(PreparedStatement statement, int index, Object value, CoreField field, MMObjectNode node) throws StorageException, SQLException(Code)(Java Doc)
protected Object setStringValue(PreparedStatement statement, int index, Object objectValue, CoreField field, MMObjectNode node) throws StorageException, SQLException(Code)(Java Doc)
protected void setValue(PreparedStatement statement, int index, MMObjectNode node, CoreField field) throws StorageException, SQLException(Code)(Java Doc)
protected void setXMLValue(PreparedStatement statement, int index, Object objectValue, CoreField field, MMObjectNode node) throws StorageException, SQLException(Code)(Java Doc)
protected boolean shorten(CoreField field)(Code)(Java Doc)
public int size(MMObjectBuilder builder) throws StorageException(Code)(Java Doc)
public int size() throws StorageException(Code)(Java Doc)
protected void storeBinaryAsFile(MMObjectNode node, CoreField field) throws StorageException(Code)(Java Doc)
protected boolean tablesInheritFields()(Code)(Java Doc)
protected void unloadShortedFields(MMObjectNode node, MMObjectBuilder builder)(Code)(Java Doc)
public void verify(MMObjectBuilder builder) throws StorageException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.