Java Doc for QueryLDMPlugin.java in  » Science » Cougaar12_4 » org » cougaar » glm » ldm » 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 » Science » Cougaar12_4 » org.cougaar.glm.ldm 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.cougaar.mlm.plugin.ldm.LDMEssentialPlugin
   org.cougaar.glm.ldm.QueryLDMPlugin

All known Subclasses:   org.cougaar.logistics.ldm.ClassIConsumerPrototypeProvider,  org.cougaar.logistics.ldm.PartsPrototypeProvider,  org.cougaar.logistics.ldm.MEIPrototypeProvider,  org.cougaar.logistics.ldm.ClassIPartsPrototypeProvider,
QueryLDMPlugin
abstract public class QueryLDMPlugin extends LDMEssentialPlugin (Code)
Provides wrappers around the query routines. Takes care of a few LDMPlugin calls. Expects to have one Plugin argument - the name of the file describing the queries ex. SpecialQueryLDMPlugin(specialQueryDescription.q)
See Also:   QueryLDMPlugin.parseQueryFile(String queryFile)
See Also:    for a description of the query file.

Inner Class :public interface RowHandler
Inner Class :public static class QueryComplete extends RuntimeException

Field Summary
protected  VectorcannotHandle_
    
protected  StringclassName_
    
protected  MessageAddressclusterId_
    
protected  StringdbType
    
protected  HashtablefileParameters_
    
protected  LoggingServicelogger
    
protected  HashtablemyParams_
    
protected  Stringurl_user_password_
    


Method Summary
abstract public  booleancanHandle(String typeid, Class class_hint)
    
public  VectorexecuteQuery(String query)
    
public  voidexecuteQuery(String query, RowHandler rh)
    
protected  ConnectiongetConnection()
    
protected  StringgetParm(String name)
    
public  AssetgetPrototype(String aTypeName, Class anAssetClassHint)
     calls makePrototype().
protected  voidinitializeDriver()
    
abstract public  AssetmakePrototype(java.lang.String aTypeName, java.lang.Class anAssetClassHint)
     Called by getPrototype() to actually create the prototype.
protected  AssetnewAsset(String typeid, String type, String nomenclature)
     Calls LDM factory to create prototype and set nomenclature and alternameTypeIdentification.
protected  voidparseArguments()
    
protected  voidparseQueryFile(String queryFile)
     parses query file into local hashtable
Parameters:
  queryFile - name of query file The query file is expected to be in the format param_name=param_value Thenecessary parameters are: Database, Driver, Username, Password Some parameters are not currentlyused, but may be in the future.
protected  voidparseQueryLine(String s)
    
protected  voidparseQueryLine(String s, boolean dbSpecific)
    
protected  voidreleaseConnection(Connection conn)
    
public  voidsetLoggingService(LoggingService loggingService)
     Parse plugIn arguments, initialize driver, get cluster identifier.
protected  voidsetupSubscriptions()
    

Field Detail
cannotHandle_
protected Vector cannotHandle_(Code)



className_
protected String className_(Code)



clusterId_
protected MessageAddress clusterId_(Code)



dbType
protected String dbType(Code)



fileParameters_
protected Hashtable fileParameters_(Code)



logger
protected LoggingService logger(Code)



myParams_
protected Hashtable myParams_(Code)



url_user_password_
protected String url_user_password_(Code)





Method Detail
canHandle
abstract public boolean canHandle(String typeid, Class class_hint)(Code)
quick check for all things it should be able to handle



executeQuery
public Vector executeQuery(String query)(Code)
Vector of results or null (on failure)



executeQuery
public void executeQuery(String query, RowHandler rh)(Code)
Less expensive variation on executeQuery(String) *



getConnection
protected Connection getConnection() throws SQLException(Code)



getParm
protected String getParm(String name)(Code)



getPrototype
public Asset getPrototype(String aTypeName, Class anAssetClassHint)(Code)
calls makePrototype(). calls fillProperties(). caches result



initializeDriver
protected void initializeDriver()(Code)



makePrototype
abstract public Asset makePrototype(java.lang.String aTypeName, java.lang.Class anAssetClassHint)(Code)
Called by getPrototype() to actually create the prototype.



newAsset
protected Asset newAsset(String typeid, String type, String nomenclature)(Code)
Calls LDM factory to create prototype and set nomenclature and alternameTypeIdentification.
Parameters:
  typeid - type identification of desired asset
Parameters:
  type - the class name of the desired asset
Parameters:
  nomenclature - *



parseArguments
protected void parseArguments()(Code)



parseQueryFile
protected void parseQueryFile(String queryFile)(Code)
parses query file into local hashtable
Parameters:
  queryFile - name of query file The query file is expected to be in the format param_name=param_value Thenecessary parameters are: Database, Driver, Username, Password Some parameters are not currentlyused, but may be in the future. These inclue MIN_IN_POOL, MAX_IN_POOL, TIMEOUT, andNUMBER_OF_TRIES. The rest of the lines are expected to be the query statements. Here is an examplefrom icisParts.q. Database = ${org.cougaar.database} Username = ${icis.database.user} Password =${icis.database.password} MIN_IN_POOL= 1 MAX_IN_POOL= 4 TIMEOUT= 1 NUMBER_OF_TRIES= 2headerQuery=select commodity, nsn, nomenclature, ui, ssc, price, icc, alt, plt, pcm, boq, diq,iaq, nso, qfd, rop, owrmrp, weight, cube, aac, slq from header where NSN = :nsnsassetsQuery=select nsn, ric, purpose, condition, iaq from assets where NSN = :nsns nomen=selectnomenclature from header where NSN = :nsns cost=select price from header where NSN = :nsns



parseQueryLine
protected void parseQueryLine(String s)(Code)



parseQueryLine
protected void parseQueryLine(String s, boolean dbSpecific)(Code)



releaseConnection
protected void releaseConnection(Connection conn)(Code)



setLoggingService
public void setLoggingService(LoggingService loggingService)(Code)
Parse plugIn arguments, initialize driver, get cluster identifier.



setupSubscriptions
protected void setupSubscriptions()(Code)



Methods inherited from org.cougaar.mlm.plugin.ldm.LDMEssentialPlugin
public void execute()(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.