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


java.lang.Object
   org.netbeans.modules.sql.framework.model.impl.IndexImpl

IndexImpl
public class IndexImpl implements Cloneable,Index(Code)
Implements Index interface.
author:
   Jonathan Giron
version:
   $Revision$

Inner Class :public static class Column implements Comparable

Field Summary
final public static  StringCARDINALITY_ATTR
    
final public static  StringCOLUMNS_ATTR
     List of column names in key sequence order.
final public static  StringELEMENT_TAG
    
final public static  StringNAME_ATTR
    
final public static  StringSORTORDER_ATTR
    
final public static  StringTYPE_ATTR
    
final public static  StringUNIQUE_ATTR
    

Constructor Summary
 IndexImpl(ResultSet rs)
    
public  IndexImpl(Element keyElement)
     Creates a new instance of IndexImpl, using the given keyElement as a source for reconstituting its contents.
public  IndexImpl(Index src)
     Creates a new instance of Index, cloning the contents of the given Index implementation instance.
public  IndexImpl(String indexName, int indexType, boolean isUnique, String sortOrder, int indexCardinality)
     Creates a new instance of Index with the given key name and attributes.
public  IndexImpl(String indexName, int indexType, boolean isUnique, String sortOrder, int indexCardinality, List indexColumnNames, boolean isStringList)
     Creates a new instance of Index with the given key name and attributes, and referencing the column names in the given List.

Method Summary
public  Objectclone()
     Create a clone of this PrimaryKeyImpl.
public  booleancontains(DBColumn col)
    
public  booleancontains(String columnName)
    
public static  List<IndexImpl>createIndexList(ResultSet rs)
     Creates a List of IndexColumn instances from the given ResultSet.
public  booleanequals(Object refObj)
     Overrides default implementation to return value based on memberwise comparison.
public  intgetCardinality()
    
public  intgetColumnCount()
    
public  StringgetColumnName(int iColumn)
    
public  List<String>getColumnNames()
    
public  StringgetName()
    
public  DBTablegetParent()
    
public  intgetSequence(DBColumn col)
    
public  intgetSequence(String columnName)
     Gets the ordinal position of the column, if any, associated with the given columnName.
public  StringgetSortSequence()
    
public  intgetType()
    
public  inthashCode()
     Overrides default implementation to compute hashCode value for those members used in equals() for comparison.
public  booleanisUnique()
    
public  voidparseXML()
     Parses the XML content, if any, represented by the DOM element member variable.
public  voidsetColumnNames(List<String> indexColumnNames, boolean isStringList)
     Sets column names associated with this index from the given List, using the given flag to interpret the type of objects contained in the list.
public  voidsetColumnNames(String[] newColNames)
     Replaces the current List of column names with the contents of the given String array.
public  voidsetParent(DBTable newParent)
     Sets reference to SQLTable that owns this primary key.
public synchronized  StringtoXMLString()
     Gets the default XML representation of index metadata.
public synchronized  StringtoXMLString(String prefix)
     Gets the XML representation of index metadata, using the given String as a prefix for successive elements.
Parameters:
  prefix - start-of-line prefix for the XML representation.

Field Detail
CARDINALITY_ATTR
final public static String CARDINALITY_ATTR(Code)
Name of attribute used for marshalling out cardinality value to XML



COLUMNS_ATTR
final public static String COLUMNS_ATTR(Code)
List of column names in key sequence order.



ELEMENT_TAG
final public static String ELEMENT_TAG(Code)
Document element tag name for marshalling out this object to XML



NAME_ATTR
final public static String NAME_ATTR(Code)
Name of attribute used for marshalling out index name to XML



SORTORDER_ATTR
final public static String SORTORDER_ATTR(Code)
Name of attribute used for marshalling out sort order value to XML



TYPE_ATTR
final public static String TYPE_ATTR(Code)
Name of attribute used for marshalling out index type to XML



UNIQUE_ATTR
final public static String UNIQUE_ATTR(Code)
Name of attribute used for marshalling out uniqueness flag to XML




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



IndexImpl
public IndexImpl(Element keyElement)(Code)
Creates a new instance of IndexImpl, using the given keyElement as a source for reconstituting its contents. Caller must invoke parseXML() after this constructor returns in order to unmarshal and reconstitute the instance object.
Parameters:
  keyElement - DOM element containing XML marshalled version of a IndexImplinstance
See Also:   IndexImpl.parseXML



IndexImpl
public IndexImpl(Index src)(Code)
Creates a new instance of Index, cloning the contents of the given Index implementation instance.
Parameters:
  src - Index instance to be cloned



IndexImpl
public IndexImpl(String indexName, int indexType, boolean isUnique, String sortOrder, int indexCardinality)(Code)
Creates a new instance of Index with the given key name and attributes.
Parameters:
  indexName - name of this Index, must be non-empty
Parameters:
  indexType - type of Index, as enumerated in java.sql.DatabaseMetaData; one oftableIndexClustered, tableIndexHashed, or tableIndexOther
Parameters:
  isUnique - true if index enforces uniqueness, false otherwise
Parameters:
  sortOrder - 'A' for ascending, 'D' for descending, null if undefined
Parameters:
  indexCardinality - cardinality of this index
See Also:   java.sql.DatabaseMetaData.tableIndexClustered
See Also:   java.sql.DatabaseMetaData.tableIndexHashed
See Also:   java.sql.DatabaseMetaData.tableIndexOther



IndexImpl
public IndexImpl(String indexName, int indexType, boolean isUnique, String sortOrder, int indexCardinality, List indexColumnNames, boolean isStringList)(Code)
Creates a new instance of Index with the given key name and attributes, and referencing the column names in the given List.
Parameters:
  indexName - name of this Index, must be non-empty
Parameters:
  indexType - type of Index, as enumerated in java.sql.DatabaseMetaData; one oftableIndexClustered, tableIndexHashed, or tableIndexOther
Parameters:
  isUnique - true if index enforces uniqueness, false otherwise
Parameters:
  sortOrder - 'A' for ascending, 'D' for descending, null if undefined
Parameters:
  indexCardinality - cardinality of this index
Parameters:
  indexColumnNames - List of Column objects, or column names in sequentialorder, depending on state of isStringList
Parameters:
  isStringList - true if indexColumnName contains column names in sequentialorder, false if it contains Column objects which need to be sorted insequential order.
See Also:   java.sql.DatabaseMetaData.tableIndexClustered
See Also:   java.sql.DatabaseMetaData.tableIndexHashed
See Also:   java.sql.DatabaseMetaData.tableIndexOther




Method Detail
clone
public Object clone()(Code)
Create a clone of this PrimaryKeyImpl. cloned copy of DBColumn.



contains
public boolean contains(DBColumn col)(Code)

See Also:   org.netbeans.modules.model.database.Index.contains(DBColumn)



contains
public boolean contains(String columnName)(Code)

See Also:   org.netbeans.modules.model.database.Index.contains(java.lang.String)



createIndexList
public static List<IndexImpl> 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



equals
public boolean equals(Object refObj)(Code)
Overrides default implementation to return value based on memberwise comparison.
Parameters:
  refObj - Object against which we compare this instance true if refObj is functionally identical to this instance; false otherwise



getCardinality
public int getCardinality()(Code)

See Also:   org.netbeans.modules.model.database.Index.getCardinality



getColumnCount
public int getColumnCount()(Code)

See Also:   org.netbeans.modules.model.database.Index.getColumnCount



getColumnName
public String getColumnName(int iColumn)(Code)

See Also:   org.netbeans.modules.model.database.Index.getColumnName



getColumnNames
public List<String> getColumnNames()(Code)

See Also:   org.netbeans.modules.model.database.Index.getColumnNames



getName
public String getName()(Code)

See Also:   org.netbeans.modules.model.database.Index.getName



getParent
public DBTable getParent()(Code)

See Also:   org.netbeans.modules.model.database.Index.getParent



getSequence
public int getSequence(DBColumn col)(Code)

See Also:   org.netbeans.modules.model.database.Index.getSequence(DBColumn)



getSequence
public int getSequence(String columnName)(Code)
Gets the ordinal position of the column, if any, associated with the given columnName.
Parameters:
  columnName - name of column whose position is desired (zero-based) position of given column, or -1 if no column by the givencolumnName could be located



getSortSequence
public String getSortSequence()(Code)

See Also:   org.netbeans.modules.model.database.Index.getSortSequence



getType
public int getType()(Code)

See Also:   org.netbeans.modules.model.database.Index.getType



hashCode
public int hashCode()(Code)
Overrides default implementation to compute hashCode value for those members used in equals() for comparison. hash code for this object
See Also:   java.lang.Object.hashCode



isUnique
public boolean isUnique()(Code)

See Also:   org.netbeans.modules.model.database.Index.contains(java.lang.String)



parseXML
public void parseXML() throws BaseException(Code)
Parses the XML content, if any, represented by the DOM element member variable.
exception:
  BaseException - thrown while parsing XML, or if member variable element isnull



setColumnNames
public void setColumnNames(List<String> indexColumnNames, boolean isStringList)(Code)
Sets column names associated with this index from the given List, using the given flag to interpret the type of objects contained in the list.
Parameters:
  indexColumnNames - List of column names (either as Index.Column objects orString values)
Parameters:
  isStringList - true if List contains column names as Strings, false if Listcontains Index.Column objects.



setColumnNames
public void setColumnNames(String[] newColNames)(Code)
Replaces the current List of column names with the contents of the given String array.
Parameters:
  newColNames - array of names to supplant current list of column names



setParent
public void setParent(DBTable newParent)(Code)
Sets reference to SQLTable that owns this primary key.
Parameters:
  newParent - new parent of this primary key.



toXMLString
public synchronized String toXMLString()(Code)
Gets the default XML representation of index metadata. XML representation of the index metadata.



toXMLString
public synchronized String toXMLString(String prefix)(Code)
Gets the XML representation of index metadata, using the given String as a prefix for successive elements.
Parameters:
  prefix - start-of-line prefix for the XML representation. XML representation of the index metadata.



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)

ww_w_.j___a___v___a2s.c_om | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.