Java Doc for ResultSetToResourceMapping.java in  » Search-Engine » compass-2.0 » org » compass » gps » device » jdbc » mapping » 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 » Search Engine » compass 2.0 » org.compass.gps.device.jdbc.mapping 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.compass.gps.device.jdbc.mapping.ResultSetToResourceMapping

All known Subclasses:   org.compass.gps.device.jdbc.mapping.TableToResourceMapping,
ResultSetToResourceMapping
public class ResultSetToResourceMapping (Code)
Maps a Jdbc ResultSet to a Compass Resource.

The required mappings are the alias of the Resource, the select query that generates the ResultSet, and at least one id mapping that maps the ResultSet identifiers columns ( org.compass.gps.device.jdbc.mapping.IdColumnToPropertyMapping ).

Mapping data columns ( org.compass.gps.device.jdbc.mapping.DataColumnToPropertyMapping ) is optional, but provides the meta data (Resource Proeprty) for searching. You can also enable (which is disabled by default) for indexing all the un mapped columns of the ResultSet using the ResultSetToResourceMapping.setIndexUnMappedColumns(boolean) .

For real time mirroring, the version query and at least one version column mapping ( org.compass.gps.device.jdbc.mapping.VersionColumnMapping ) is required.
author:
   kimchy




Constructor Summary
public  ResultSetToResourceMapping()
     Creates a new ResultSet to Resource mapping.
public  ResultSetToResourceMapping(String alias, String selectQuery)
     Creates a new ResultSet to Resource mapping using the supplied alias and select query.
public  ResultSetToResourceMapping(String alias, String selectQuery, ColumnToPropertyMapping idMapping)
     Creates a new ResultSet to Resource mapping using the supplied alias and select query and one id column mapping.

Method Summary
public  voidaddDataMapping(ColumnToPropertyMapping dataMapping)
     Adds data column mapping.
public  voidaddIdMapping(ColumnToPropertyMapping idMapping)
     Adds id column mapping.
public  voidaddVersionMapping(VersionColumnMapping versionColumnMapping)
     Adds version column mapping for real time mirror data changes.
public  IteratordataMappingsIt()
     Returns an iterator over the data mappings.
public  intdataMappingsSize()
     Returns the size of the data mappings.
public  StringgetAlias()
     Returns the alias of the mapped Resource.
public  ListgetMappingsForColumn(String columnName)
     Returns a list of all the ColumnMapping s that are mapped to the column name.
Parameters:
  columnName - The column name for the mapped columns.
public  ListgetMappingsForColumn(int columnIndex)
     Returns a list of all the ColumnMapping s that are mapped to the column index.
Parameters:
  columnIndex - The column index for the mapped columns.
public  StringgetSelectQuery()
     Returns the select query that generates the ResultSet.
public  StringgetVersionQuery()
     Returns the version query that is used for real time mirror data changes.
public  IteratoridMappingsIt()
     Returns an iterator over the id mappings.
public  intidMappingsSize()
     Returns the size of the id mappings.
public  booleanisIndexUnMappedColumns()
     Should the mapping index unmapped columns as data columns.
public  IteratormappingsIt()
    
public  voidsetAlias(String alias)
     Sets the alias of the mapped Resource.
public  voidsetDataMappings(ColumnToPropertyMapping[] dataMappingsArr)
     Adds of array of ColumnToPropertyMapping s which acts as the data column mappings.
public  voidsetIdMappings(ColumnToPropertyMapping[] idMappingsArr)
     Adds the array of ColumnToPropertyMapping s which acts as the id column mappings.
public  voidsetIndexUnMappedColumns(boolean indexUnMappedColumns)
     Returns if the mapping should set to index unmapped columns as data columns.
public  voidsetSelectQuery(String selectQuery)
     Sets the select query that generates the ResultSet.
public  voidsetVersionMappings(VersionColumnMapping[] versionColumnMappingsArr)
     Adds an array of ColumnToPropertyMapping s which acts as the version column mappings.
public  voidsetVersionQuery(String snapshotQuery)
     Sets the version query that is used for real time mirror data changes.
public  booleansupportsVersioning()
     Is the mapping support versioning.
public  StringtoString()
    
public  IteratorversionMappingsIt()
     Returns an iterator of the version mappings.
public  intversionMappingsSize()
     Returns the size of the version mappings.


Constructor Detail
ResultSetToResourceMapping
public ResultSetToResourceMapping()(Code)
Creates a new ResultSet to Resource mapping. Must set at least the alias, the select query, and at lease one id mapping.

Indexing of unmapped columns is diasabled by default.




ResultSetToResourceMapping
public ResultSetToResourceMapping(String alias, String selectQuery)(Code)
Creates a new ResultSet to Resource mapping using the supplied alias and select query. At least one id mapping is required to be configured as well.

Indexing of unmapped columns is diasabled by default.
Parameters:
  alias - The alias of the mapped Resource.
Parameters:
  selectQuery - The select query that generates teh ResultSet.




ResultSetToResourceMapping
public ResultSetToResourceMapping(String alias, String selectQuery, ColumnToPropertyMapping idMapping)(Code)
Creates a new ResultSet to Resource mapping using the supplied alias and select query and one id column mapping.

If additional id column mappings are required, use ResultSetToResourceMapping.addIdMapping(ColumnToPropertyMapping) to add them.

Indexing of unmapped columns is diasabled by default.
Parameters:
  alias - The alias of the mapped Resource.
Parameters:
  selectQuery - The select query that generates teh ResultSet.
Parameters:
  idMapping - Id mapping used to map an id column.





Method Detail
addDataMapping
public void addDataMapping(ColumnToPropertyMapping dataMapping)(Code)
Adds data column mapping.



addIdMapping
public void addIdMapping(ColumnToPropertyMapping idMapping)(Code)
Adds id column mapping.



addVersionMapping
public void addVersionMapping(VersionColumnMapping versionColumnMapping)(Code)
Adds version column mapping for real time mirror data changes.



dataMappingsIt
public Iterator dataMappingsIt()(Code)
Returns an iterator over the data mappings.



dataMappingsSize
public int dataMappingsSize()(Code)
Returns the size of the data mappings.



getAlias
public String getAlias()(Code)
Returns the alias of the mapped Resource.



getMappingsForColumn
public List getMappingsForColumn(String columnName)(Code)
Returns a list of all the ColumnMapping s that are mapped to the column name.
Parameters:
  columnName - The column name for the mapped columns. A list of all the ColumnMappings.



getMappingsForColumn
public List getMappingsForColumn(int columnIndex)(Code)
Returns a list of all the ColumnMapping s that are mapped to the column index.
Parameters:
  columnIndex - The column index for the mapped columns. A list of all the ColumnMappings.



getSelectQuery
public String getSelectQuery()(Code)
Returns the select query that generates the ResultSet.



getVersionQuery
public String getVersionQuery()(Code)
Returns the version query that is used for real time mirror data changes.



idMappingsIt
public Iterator idMappingsIt()(Code)
Returns an iterator over the id mappings.



idMappingsSize
public int idMappingsSize()(Code)
Returns the size of the id mappings.



isIndexUnMappedColumns
public boolean isIndexUnMappedColumns()(Code)
Should the mapping index unmapped columns as data columns.



mappingsIt
public Iterator mappingsIt()(Code)



setAlias
public void setAlias(String alias)(Code)
Sets the alias of the mapped Resource.



setDataMappings
public void setDataMappings(ColumnToPropertyMapping[] dataMappingsArr)(Code)
Adds of array of ColumnToPropertyMapping s which acts as the data column mappings.
Parameters:
  dataMappingsArr - An array of ColumnToPropertyMappings to add.



setIdMappings
public void setIdMappings(ColumnToPropertyMapping[] idMappingsArr)(Code)
Adds the array of ColumnToPropertyMapping s which acts as the id column mappings.
Parameters:
  idMappingsArr - An array of ColumnToPropertyMappings to add.



setIndexUnMappedColumns
public void setIndexUnMappedColumns(boolean indexUnMappedColumns)(Code)
Returns if the mapping should set to index unmapped columns as data columns.



setSelectQuery
public void setSelectQuery(String selectQuery)(Code)
Sets the select query that generates the ResultSet.



setVersionMappings
public void setVersionMappings(VersionColumnMapping[] versionColumnMappingsArr)(Code)
Adds an array of ColumnToPropertyMapping s which acts as the version column mappings.
Parameters:
  versionColumnMappingsArr - An array of ColumnToPropertyMappings to add.



setVersionQuery
public void setVersionQuery(String snapshotQuery)(Code)
Sets the version query that is used for real time mirror data changes.



supportsVersioning
public boolean supportsVersioning()(Code)
Is the mapping support versioning. It is a derived property, returning false if no version column mapping are set.



toString
public String toString()(Code)



versionMappingsIt
public Iterator versionMappingsIt()(Code)
Returns an iterator of the version mappings.



versionMappingsSize
public int versionMappingsSize()(Code)
Returns the size of the version mappings.



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.