Java Doc for DataStoreInfo.java in  » GIS » GeoServer » org » vfny » geoserver » global » 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 » GIS » GeoServer » org.vfny.geoserver.global 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.vfny.geoserver.global.GlobalLayerSupertype
      org.vfny.geoserver.global.DataStoreInfo

DataStoreInfo
public class DataStoreInfo extends GlobalLayerSupertype (Code)
This is the configuration iformation for one DataStore. This class can also generate real datastores.

This class implements org.geotools.catalog.Service interface as a link to a catalog.


author:
   Gabriel Rold?n
author:
   dzwiers
author:
   Justin Deoliveira
version:
   $Id: DataStoreInfo.java 7646 2007-10-23 13:09:32Z aaime $


Field Summary
 FilebaseDir
     Directory associated with this DataStore.
 URLbaseURL
     URL associated with this DataStore.

Constructor Summary
public  DataStoreInfo(DataStoreInfoDTO config, Data data)
     DataStoreInfo constructor.

Method Summary
public  booleancontainsMetaData(String key)
     Implement containsMetaData.
public  voiddispose()
    
public  StringgetAbstract()
     getAbstract purpose.
public synchronized  DataStoregetDataStore()
     By now just uses DataStoreFinder to find a new instance of a DataStoreInfo capable of process connectionParams.
public  StringgetId()
     getId purpose.
public  ObjectgetMetaData(String key)
     Implement getMetaData.
public  NameSpaceInfogetNameSpace()
     getNameSpace purpose.
public  StringgetNamesSpacePrefix()
    
protected  MapgetParams()
    
public static  MapgetParams(Map m, String baseDir)
     Get Connect params.

This is used to smooth any relative path kind of issues for any file URLS.

public  StringgetTitle()
     getTitle purpose.
public  booleanisEnabled()
     isEnabled purpose.
public  voidputMetaData(String key, Object value)
     Implement putMetaData.
 ObjecttoDTO()
     toDTO purpose.

This method is package visible only, and returns a reference to the GeoServerDTO.

public  StringtoString()
     Implement toString.

Field Detail
baseDir
File baseDir(Code)
Directory associated with this DataStore.

This directory may be used for File based relative paths.




baseURL
URL baseURL(Code)
URL associated with this DataStore.

This directory may be used for URL based relative paths.





Constructor Detail
DataStoreInfo
public DataStoreInfo(DataStoreInfoDTO config, Data data)(Code)
DataStoreInfo constructor.

Stores the specified data for later use.


Parameters:
  config - DataStoreInfoDTO the current configuration to use.
Parameters:
  data - Data a ref to use later to look up related informtion




Method Detail
containsMetaData
public boolean containsMetaData(String key)(Code)
Implement containsMetaData.
Parameters:
  key -
See Also:   org.geotools.data.MetaData.containsMetaData(java.lang.String)



dispose
public void dispose()(Code)



getAbstract
public String getAbstract()(Code)
getAbstract purpose.

Returns the dataStore's abstract.

String the abstract.



getDataStore
public synchronized DataStore getDataStore() throws IllegalStateException, NoSuchElementException(Code)
By now just uses DataStoreFinder to find a new instance of a DataStoreInfo capable of process connectionParams. In the future we can see if it is better to cache or pool DataStores for performance, but definitely we shouldn't maintain a single DataStoreInfo as instance variable for synchronizing reassons

JG: Umm we actually require a single DataStoreInfo for for locking & transaction support to work. DataStoreInfo is expected to be thread aware (that is why it has Transaction Support).

DataStore
throws:
  IllegalStateException - if this DataStoreInfo is disabled byconfiguration
throws:
  NoSuchElementException - if no DataStoreInfo is found



getId
public String getId()(Code)
getId purpose.

Returns the dataStore's id.

String the id.



getMetaData
public Object getMetaData(String key)(Code)
Implement getMetaData.
Parameters:
  key -
See Also:   org.geotools.data.MetaData.getMetaData(java.lang.String)



getNameSpace
public NameSpaceInfo getNameSpace()(Code)
getNameSpace purpose.

Returns the namespace for this datastore.

NameSpaceInfo the namespace for this datastore.



getNamesSpacePrefix
public String getNamesSpacePrefix()(Code)
Access namespace id DOCUMENT ME!



getParams
protected Map getParams()(Code)



getParams
public static Map getParams(Map m, String baseDir)(Code)
Get Connect params.

This is used to smooth any relative path kind of issues for any file URLS. This code should be expanded to deal with any other context sensitve isses dataStores tend to have.

DOCUMENT ME!



getTitle
public String getTitle()(Code)
getTitle purpose.

Returns the dataStore's title.

String the title.



isEnabled
public boolean isEnabled()(Code)
isEnabled purpose.

Returns true when the data store is enabled.

true when the data store is enabled.



putMetaData
public void putMetaData(String key, Object value)(Code)
Implement putMetaData.
Parameters:
  key -
Parameters:
  value -
See Also:   org.geotools.data.MetaData.putMetaData(java.lang.Stringjava.lang.Object)



toDTO
Object toDTO()(Code)
toDTO purpose.

This method is package visible only, and returns a reference to the GeoServerDTO. This method is unsafe, and should only be used with extreme caution.

DataStoreInfoDTO the generated object



toString
public String toString()(Code)
Implement toString. String
See Also:   java.lang.Object.toString



Fields inherited from org.vfny.geoserver.global.GlobalLayerSupertype
final protected static Logger LOGGER(Code)(Java Doc)

Methods inherited from org.vfny.geoserver.global.GlobalLayerSupertype
public static String get(Map map, String key)(Code)(Java Doc)
public static File get(Map map, String key, File defaultFile)(Code)(Java Doc)
public static String get(Map map, String key, String defaultValue)(Code)(Java Doc)
public static List get(Map map, String key, List defaultList)(Code)(Java Doc)
public static Map get(Map map, String key, Map defaultMap)(Code)(Java Doc)
public static int get(Map map, String key, int defaultValue)(Code)(Java Doc)
public static boolean get(Map map, String key, boolean defaultValue)(Code)(Java Doc)
public static Charset get(Map map, String key, Charset defaultCharSet)(Code)(Java Doc)
public static Level get(Map map, String key, Level defaultLevel)(Code)(Java Doc)
public static URL get(Map map, String key, URL defaultUrl)(Code)(Java Doc)
public static Class get(Map map, String key, Class defaultType)(Code)(Java Doc)
protected String notNull(String s)(Code)(Java Doc)
abstract Object toDTO()(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.