Java Doc for PrimaryKeyImpl.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.PrimaryKeyImpl

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


Field Summary
final public static  StringCOLUMNS_ATTR
    
final public static  StringELEMENT_TAG
    
final public static  StringNAME_ATTR
    
final protected static  StringRS_KEY_NAME
    
final protected static  StringRS_SEQUENCE_NUM
    

Constructor Summary
public  PrimaryKeyImpl(ResultSet rs)
    
public  PrimaryKeyImpl(Element keyElement)
     Creates a new instance of PrimaryKeyImpl, using the keyElement as a source for reconstituting its contents.
public  PrimaryKeyImpl(PrimaryKey src)
     Creates a new instance of PrimaryKeyImpl, cloning the contents of the given PrimaryKey implementation instance.
public  PrimaryKeyImpl(String keyName, List<String> keyColumnNames)
     Creates a new instance of PrimaryKey with the given key name 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  booleanequals(Object refObj)
     Overrides default implementation to return value based on memberwise comparison.
public  intgetColumnCount()
    
public  List<String>getColumnNames()
    
public  StringgetDBColumnName(int iColumn)
    
public  StringgetName()
    
public  DBTablegetParent()
    
public  intgetSequence(DBColumn col)
    
public  intgetSequence(String columnName)
    
public  inthashCode()
     Overrides default implementation to compute hashCode value for those members used in equals() for comparison.
public  booleanisReferencedBy(ForeignKey fk)
    
public  voidparseXML()
     Parses the XML content, if any, represented by the DOM element member variable.
public  voidsetColumnNames(String[] newColNames)
     Replaces the current List of column names with the contents of the given String array.
 voidsetParent(DBTable newParent)
     Sets reference to DBTable that owns this primary key.
public  StringtoString()
    
public synchronized  StringtoXMLString()
     Writes contents of this PrimaryKeyImpl instance out as an XML element, using the default prefix.
public synchronized  StringtoXMLString(String prefix)
     Writes contents of this PrimaryKeyImpl instance out as an XML element, using the given prefix String.

Field Detail
COLUMNS_ATTR
final public static String COLUMNS_ATTR(Code)
Name of attribute used for marshalling out PK column names to XML



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 primary key name to XML



RS_KEY_NAME
final protected static String RS_KEY_NAME(Code)
DatabaseMetaData ResultSet column name used to decode name of associated primary key



RS_SEQUENCE_NUM
final protected static String RS_SEQUENCE_NUM(Code)
DatabaseMetaData ResultSet column name used to decode key sequence number




Constructor Detail
PrimaryKeyImpl
public PrimaryKeyImpl(ResultSet rs)(Code)



PrimaryKeyImpl
public PrimaryKeyImpl(Element keyElement)(Code)
Creates a new instance of PrimaryKeyImpl, using the 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 PrimaryKeyImplinstance



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



PrimaryKeyImpl
public PrimaryKeyImpl(String keyName, List<String> keyColumnNames)(Code)
Creates a new instance of PrimaryKey with the given key name and referencing the column names in the given List.
Parameters:
  keyName - name, if any, of this PrimaryKey
Parameters:
  keyColumnNames - List of Column objects, or column names in key sequenceorder, depending on state of isStringList
Parameters:
  isStringList - true if keyColumnName contains column names in key sequenceorder, false if it contains Column objects which need to be sorted in keysequence order.




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.PrimaryKey.contains(DBColumn)



contains
public boolean contains(String columnName)(Code)

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



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



getColumnCount
public int getColumnCount()(Code)

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



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

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



getDBColumnName
public String getDBColumnName(int iColumn)(Code)

See Also:   org.netbeans.modules.model.database.PrimaryKey.getDBColumnName



getName
public String getName()(Code)

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



getParent
public DBTable getParent()(Code)

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



getSequence
public int getSequence(DBColumn col)(Code)

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



getSequence
public int getSequence(String columnName)(Code)

See Also:   org.netbeans.modules.model.database.PrimaryKey.getSequence(java.lang.String)



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



isReferencedBy
public boolean isReferencedBy(ForeignKey fk)(Code)

See Also:   org.netbeans.modules.model.database.PrimaryKey.isReferencedBy



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(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
void setParent(DBTable newParent)(Code)
Sets reference to DBTable that owns this primary key.
Parameters:
  newParent - new parent of this primary key.



toString
public String toString()(Code)



toXMLString
public synchronized String toXMLString()(Code)
Writes contents of this PrimaryKeyImpl instance out as an XML element, using the default prefix. String containing XML representation of this PrimaryKeyImpl instance



toXMLString
public synchronized String toXMLString(String prefix)(Code)
Writes contents of this PrimaryKeyImpl instance out as an XML element, using the given prefix String.
Parameters:
  prefix - String used to prefix each new line of the XML output String containing XML representation of this PrimaryKeyImpl instance



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)

w__w_w.__j__a_va__2___s__.___c__om_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.