Java Doc for StorageReader.java in  » Database-ORM » MMBase » org » mmbase » storage » util » 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.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.mmbase.util.xml.DocumentReader
      org.mmbase.storage.util.StorageReader

StorageReader
public class StorageReader extends DocumentReader (Code)

author:
   Pierre van Rooden
version:
   $Id: StorageReader.java,v 1.16 2008/02/18 14:09:42 michiel Exp $
since:
   MMBase-1.7


Field Summary
final public static  StringDTD_STORAGE
    
final public static  StringDTD_STORAGE_1_0
    
final public static  StringPUBLIC_ID_STORAGE
    
final public static  StringPUBLIC_ID_STORAGE_1_0
    
protected  StorageManagerFactoryfactory
     The factory for which the reader reads the document.

Constructor Summary
public  StorageReader(StorageManagerFactory factory, InputSource source)
     Constructor.

Method Summary
public  Map<String, Object>getAttributes()
     Reads all attributes from the reader and returns them as a map.
public  Map<String, String>getDisallowedFields()
     Returns all disallowed fields and their possible alternate values.
public  List<Class<?>>getSearchQueryHandlerClasses()
     Attempt to obtain a list of SearchQueryHandler classes, using the classname as given in the configuration.
public  Class<SM>getStorageManagerClass()
     Attempt to load a StorageManager class, using the classname as given in the configuration.
public  List<String>getStoreBinaryAsFileObjects()
    
public  List<TypeMapping>getTypeMappings()
     Returns all type mappings.

Field Detail
DTD_STORAGE
final public static String DTD_STORAGE(Code)
DTD resource filename of the most Database DTD



DTD_STORAGE_1_0
final public static String DTD_STORAGE_1_0(Code)
DTD resource filename of the Database DTD version 1.0



PUBLIC_ID_STORAGE
final public static String PUBLIC_ID_STORAGE(Code)
Public ID of the most recent Database DTD



PUBLIC_ID_STORAGE_1_0
final public static String PUBLIC_ID_STORAGE_1_0(Code)
Public ID of the Storage DTD version 1.0



factory
protected StorageManagerFactory factory(Code)
The factory for which the reader reads the document. The factory is used to verify whether the document is compatible, and is used to instantiate objects that depend on factory information (such as schemes)




Constructor Detail
StorageReader
public StorageReader(StorageManagerFactory factory, InputSource source)(Code)
Constructor.
Parameters:
  factory - the factory for which to read the storage configuration
Parameters:
  source - to the xml document.
since:
   MMBase-1.7




Method Detail
getAttributes
public Map<String, Object> getAttributes()(Code)
Reads all attributes from the reader and returns them as a map. This include options, as well as the following special attributes:
  • option-disallowed-fields-case-sensitive : has the Boolean value TRUE if disallowed fields are case sensitive (default FALSE)
attributes as a map



getDisallowedFields
public Map<String, String> getDisallowedFields()(Code)
Returns all disallowed fields and their possible alternate values. The fields are returned as name-value pairs, where the disallowedfieldname is the key, and the alternate name is the value (null if no name is given). disallowed fields as a map



getSearchQueryHandlerClasses
public List<Class<?>> getSearchQueryHandlerClasses() throws StorageConfigurationException(Code)
Attempt to obtain a list of SearchQueryHandler classes, using the classname as given in the configuration. A List of Class objects, each being the SearchQueryHandler class, or an empty list if none was configured
throws:
  StorageConfigurationException - if the class configured is invalid



getStorageManagerClass
public Class<SM> getStorageManagerClass() throws StorageConfigurationException(Code)
Attempt to load a StorageManager class, using the classname as given in the configuration. The method verifies whether the instantiated class is of the correct version. the storage manager Class, or null if none was configured
throws:
  StorageConfigurationException - if the factory version did not match, or the class configured is invalid



getStoreBinaryAsFileObjects
public List<String> getStoreBinaryAsFileObjects()(Code)

since:
   MMBase-1.8.5



getTypeMappings
public List<TypeMapping> getTypeMappings()(Code)
Returns all type mappings. The mappings are returned in the order that they were given in the reader. Calling code should sort this list if they want to use TypoMapping fuzzy matching. a List of TypeMapping objects



Fields inherited from org.mmbase.util.xml.DocumentReader
final public static String DTD_ERROR(Code)(Java Doc)
final public static String DTD_ERROR_1_0(Code)(Java Doc)
final protected static String FILENOTFOUND(Code)(Java Doc)
final public static String PUBLIC_ID_ERROR(Code)(Java Doc)
final public static String PUBLIC_ID_ERROR_1_0(Code)(Java Doc)
protected Document document(Code)(Java Doc)

Methods inherited from org.mmbase.util.xml.DocumentReader
public static void appendChild(Element parent, Element newChild, String path)(Code)(Java Doc)
public static String getAttribute(Element element, String nameSpace, String localName)(Code)(Java Doc)
public List<Element> getChildElements(String path)(Code)(Java Doc)
public List<Element> getChildElements(Element e)(Code)(Java Doc)
public List<Element> getChildElements(String path, String tag)(Code)(Java Doc)
public List<Element> getChildElements(Element e, String tag)(Code)(Java Doc)
public static DocumentBuilder getDocumentBuilder()(Code)(Java Doc)
public static DocumentBuilder getDocumentBuilder(boolean validating)(Code)(Java Doc)
public static DocumentBuilder getDocumentBuilder(boolean validating, ErrorHandler handler, EntityResolver resolver)(Code)(Java Doc)
public static DocumentBuilder getDocumentBuilder(boolean validating, boolean xsd, ErrorHandler handler, EntityResolver resolver)(Code)(Java Doc)
public String getElementAttributeValue(String path, String attr)(Code)(Java Doc)
public String getElementAttributeValue(Element e, String attr)(Code)(Java Doc)
public Element getElementByPath(String path)(Code)(Java Doc)
public Element getElementByPath(Element e, String path)(Code)(Java Doc)
public String getElementName(Element e)(Code)(Java Doc)
public String getElementValue(String path)(Code)(Java Doc)
public String getElementValue(Element e)(Code)(Java Doc)
public static String getNodeTextValue(Node n)(Code)(Java Doc)
public static String getNodeTextValue(Node n, boolean trim)(Code)(Java Doc)
public Element getRootElement()(Code)(Java Doc)
public String getSystemId()(Code)(Java Doc)
public static boolean hasAttribute(Element element, String nameSpace, String localName)(Code)(Java Doc)
public static void main(String argv) throws Exception(Code)(Java Doc)
public static void registerPublicIDs()(Code)(Java Doc)
public static void setNodeTextValue(Node n, String value)(Code)(Java Doc)
public static void setPrefix(Document d, String ns, String prefix)(Code)(Java Doc)
public void setSystemId(String url)(Code)(Java Doc)
public static Document toDocument(Element element)(Code)(Java Doc)
final protected static boolean validate()(Code)(Java Doc)
final protected static boolean validate(boolean requested)(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.