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


org.cougaar.glm.ldm.QueryLDMPlugin
   org.cougaar.logistics.ldm.ClassIPartsPrototypeProvider

ClassIPartsPrototypeProvider
public class ClassIPartsPrototypeProvider extends QueryLDMPlugin (Code)
Creates and rototype and their property groups for Subsistence




Method Summary
public  booleancanHandle(String typeid, Class class_hint)
    
protected  VectordoQuery(String query_name, String a, String b)
     Convenience method to read the query statement from a file and execute the query.
public  voidfillProperties(Asset anAsset)
    
protected  StringgetNomenclature(String type_id, String type)
    
protected  HashMapgetSupplementalList(String meal_type, String alternate_name)
    
public  AssetmakePrototype(String type_name, Class class_hint)
     Makes a prototype for as Asset of an item of type class_hint
Parameters:
  type_name - identifier for item e.g a
Parameters:
  class_hint - hint as to class of item being requested Asset Prtotype that's created.
public  voidsetLoggingService(LoggingService logger)
    
public  StringsubstituteList(String q, String meal_type, String nomenclature)
     Replaces the ":nsn" in the query with the actual NSN.
public  StringsubstituteNSN(String q, String nsn, String nsnStr)
     Replaces the ":nsns" in the query with the actual NSN.



Method Detail
canHandle
public boolean canHandle(String typeid, Class class_hint)(Code)
Method to determine if this class can handle an item typeid of type class_hint
Parameters:
  typeid - identifier for item (an NSN)
Parameters:
  class_hint - hint as to class of item being requested boolean representing whether this prototype provider can handlethis item



doQuery
protected Vector doQuery(String query_name, String a, String b)(Code)
Convenience method to read the query statement from a file and execute the query.
Parameters:
  query_name - String refers to the specific query statement
Parameters:
  a - String for first query variable
Parameters:
  b - String for second query varaible Vector containing the query result



fillProperties
public void fillProperties(Asset anAsset)(Code)



getNomenclature
protected String getNomenclature(String type_id, String type)(Code)
Method to retrieve the nomenclature for the item in question
Parameters:
  type_id - identifier for item e.g a nsn
Parameters:
  type - class type of item being requested Nomenclature



getSupplementalList
protected HashMap getSupplementalList(String meal_type, String alternate_name)(Code)
Gets a list of supplement NSNs for a specific meal_type and specific alternate_name
Parameters:
  meal_type - type of meals: BREAKFAST, LUNCH/DINNER HashMap of NSNs and their rates



makePrototype
public Asset makePrototype(String type_name, Class class_hint)(Code)
Makes a prototype for as Asset of an item of type class_hint
Parameters:
  type_name - identifier for item e.g a
Parameters:
  class_hint - hint as to class of item being requested Asset Prtotype that's created. Note that Asset is actually a prototype here



setLoggingService
public void setLoggingService(LoggingService logger)(Code)



substituteList
public String substituteList(String q, String meal_type, String nomenclature)(Code)
Replaces the ":nsn" in the query with the actual NSN.
Parameters:
  q - query string
Parameters:
  nomenclature - new query



substituteNSN
public String substituteNSN(String q, String nsn, String nsnStr)(Code)
Replaces the ":nsns" in the query with the actual NSN.
Parameters:
  q - query string
Parameters:
  nsn - actual NSN
Parameters:
  nsnStr - String in the database new query



Fields inherited from org.cougaar.glm.ldm.QueryLDMPlugin
protected Vector cannotHandle_(Code)(Java Doc)
protected String className_(Code)(Java Doc)
protected MessageAddress clusterId_(Code)(Java Doc)
protected String dbType(Code)(Java Doc)
protected Hashtable fileParameters_(Code)(Java Doc)
protected LoggingService logger(Code)(Java Doc)
protected Hashtable myParams_(Code)(Java Doc)
protected String url_user_password_(Code)(Java Doc)

Methods inherited from org.cougaar.glm.ldm.QueryLDMPlugin
abstract public boolean canHandle(String typeid, Class class_hint)(Code)(Java Doc)
public Vector executeQuery(String query)(Code)(Java Doc)
public void executeQuery(String query, RowHandler rh)(Code)(Java Doc)
protected Connection getConnection() throws SQLException(Code)(Java Doc)
protected String getParm(String name)(Code)(Java Doc)
public Asset getPrototype(String aTypeName, Class anAssetClassHint)(Code)(Java Doc)
protected void initializeDriver()(Code)(Java Doc)
abstract public Asset makePrototype(java.lang.String aTypeName, java.lang.Class anAssetClassHint)(Code)(Java Doc)
protected Asset newAsset(String typeid, String type, String nomenclature)(Code)(Java Doc)
protected void parseArguments()(Code)(Java Doc)
protected void parseQueryFile(String queryFile)(Code)(Java Doc)
protected void parseQueryLine(String s)(Code)(Java Doc)
protected void parseQueryLine(String s, boolean dbSpecific)(Code)(Java Doc)
protected void releaseConnection(Connection conn)(Code)(Java Doc)
public void setLoggingService(LoggingService loggingService)(Code)(Java Doc)
protected void setupSubscriptions()(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.