Java Doc for IndexColumn.java in  » IDE-Netbeans » sql.project » org » netbeans » modules » sql » project » dbmodel » 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 » IDE Netbeans » sql.project » org.netbeans.modules.sql.project.dbmodel 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.sql.project.dbmodel.IndexColumn

IndexColumn
public class IndexColumn implements Comparable(Code)
Captures database index metadata associated with a specific database table column.
author:
   Jonathan Giron
version:
  



Constructor Summary
 IndexColumn(ResultSet rs)
    
public  IndexColumn(String colName, String indexName, short indexType, short colOrder, boolean isUnique, String sortOrder, int indexCardinality)
     Creates a new instance of IndexColumn using the given values.
public  IndexColumn(IndexColumn iCol)
    

Method Summary
public  intcompareTo(Object o)
     Compares this instance against the given object with respect to some "natural" ordering.
public static  ListcreateIndexList(ResultSet rs)
     Creates a List of IndexColumn instances from the given ResultSet.
public  intgetCardinality()
     Gets index cardinality.
public  StringgetColumnName()
     Gets column name.
public  StringgetIndexName()
     Gets index name.
public  intgetOrdinalPosition()
     Gets ordinal position of this column within a (composite) index.
public  StringgetSortOrder()
     Gets sort order, if any, associated with this index.
public  intgetType()
     Gets index type.
public  booleanisUnique()
     Indicates whether the index associated with this column is unique.


Constructor Detail
IndexColumn
IndexColumn(ResultSet rs) throws SQLException(Code)



IndexColumn
public IndexColumn(String colName, String indexName, short indexType, short colOrder, boolean isUnique, String sortOrder, int indexCardinality)(Code)
Creates a new instance of IndexColumn using the given values.
Parameters:
  colName - name of column
Parameters:
  indexName - name of index
Parameters:
  indexType - index type, as defined in DatabaseMetaData; note thattableIndexStatistic is not a valid type for IndexColumn
Parameters:
  colOrder - sequence of this column within the (composite) index;should be 1 for single-column indexes
Parameters:
  isUnique - true if index enforces unique values, false otherwise
Parameters:
  sortOrder - "A" for ascending order, "D" for descending order, null forno defined sort order
Parameters:
  indexCardinality - count of unique values contained in the index



IndexColumn
public IndexColumn(IndexColumn iCol)(Code)




Method Detail
compareTo
public int compareTo(Object o)(Code)
Compares this instance against the given object with respect to some "natural" ordering. Useful for sorting IndexColumn instances for UI display. Note: this class has a natural ordering that is inconsistent with equals.
Parameters:
  o - Object against which this will be compared -1 if this is lesser than o; 0 if this is equal to o; 1 if thisis greater than o



createIndexList
public static List createIndexList(ResultSet rs) throws SQLException(Code)
Creates a List of IndexColumn instances from the given ResultSet.
Parameters:
  rs - ResultSet containing index metadata as obtained from DatabaseMetaData List of IndexColumn instances based from metadata in rs'
throws:
  SQLException - if SQL error occurs while reading in data fromgiven ResultSet



getCardinality
public int getCardinality()(Code)
Gets index cardinality. It represents the number of unique values associated with the index (for clustered, hashed, or other index types). count of unique values in the associated index



getColumnName
public String getColumnName()(Code)
Gets column name. name of column



getIndexName
public String getIndexName()(Code)
Gets index name. index name



getOrdinalPosition
public int getOrdinalPosition()(Code)
Gets ordinal position of this column within a (composite) index. For an index associated with a single column, this should be 1. ordinal position of column within the composite index; 1 if



getSortOrder
public String getSortOrder()(Code)
Gets sort order, if any, associated with this index. "A" for ascending, "D" for descending, or null if no sort orderis defined



getType
public int getType()(Code)
Gets index type. index type, one of DatabaseMetaData.tableIndexClustered,DatabaseMetaData.tableIndexHashed, or DatabaseMetaData.tableIndexOther
See Also:   java.sql.DatabaseMetaData.tableIndexClustered
See Also:   java.sql.DatabaseMetaData.tableIndexHashed
See Also:   java.sql.DatabaseMetaData.tableIndexOther



isUnique
public boolean isUnique()(Code)
Indicates whether the index associated with this column is unique. true if index is unique, false otherwise



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.