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

TableColumn
public class TableColumn (Code)
Captures metadata information for a database table column.
author:
   Susan Chen
version:
  



Constructor Summary
public  TableColumn()
     Constructs an instance of TableColumn.
public  TableColumn(String newName)
     Constructs an instance of TableColumn using the given name.
public  TableColumn(String newName, String newJavaType)
     Constructs an instance of TableColumn using the given name and Java type.
public  TableColumn(String newName, String newJavaType, boolean newIsNullable, boolean newIsSelected, boolean newIsPrimaryKey, boolean newIsForeignKey, int newSqlTypeCode)
     Constructs a new instance of TableColumn using the given attributes.
public  TableColumn(TableColumn tCol)
    

Method Summary
public  StringgetDefaultValue()
     Gets String representation of default value for this column (may be null).
public  booleangetIsForeignKey()
    
public  booleangetIsNullable()
    
public  booleangetIsPrimaryKey()
    
public  booleangetIsSelected()
    
public  StringgetJavaType()
     Gets Java type.
public  StringgetName()
     Gets name of column.
public  intgetNumericPrecision()
     Gets precision (for numeric types) or maximum number of characters (for char or date types).
public  intgetNumericRadix()
     Gets radix (number base) of this column, e.g., 10 (decimal), 2 (binary).
public  intgetNumericScale()
     Gets numeric scale of this column.
public  intgetOrdinalPosition()
     Gets ordinal position of column among siblings in its table.
public  StringgetSqlType()
     Gets JDBC SQL type.
public  intgetSqlTypeCode()
     Gets SQL type code.
public  StringgetValue()
     Gets String representation of value for this column (may be null).
public  voidsetDefaultValue(String newDefault)
     Sets default value, if any, of column.
public  voidsetIsForeignKey(boolean newIsForeignKey)
     Sets whether column is a foreign key.
public  voidsetIsNullable(boolean newIsNullable)
    
public  voidsetIsPrimaryKey(boolean newIsPrimaryKey)
     Sets whether column is a primary key.
public  voidsetIsSelected(boolean newIsSelected)
     Sets selection state of column.
public  voidsetJavaType(String newJavaType)
     Sets Java type of column.
public  voidsetName(String newName)
     Sets column name.
public  voidsetNumericPrecision(int newNumericPrecision)
     Sets numeric precision or maximum character width of column.
public  voidsetNumericRadix(int newNumericRadix)
     Sets numeric radix of column.
public  voidsetNumericScale(int newNumericScale)
     Sets numeric scale of column.
public  voidsetOrdinalPosition(int newPosition)
     Sets ordinal position of column.
public  voidsetSqlType(String newSqlType)
    
public  voidsetSqlTypeCode(int newCode)
     Sets SQL type code.
public  voidsetValue(String newValue)
     Sets value, if any, of column.


Constructor Detail
TableColumn
public TableColumn()(Code)
Constructs an instance of TableColumn.



TableColumn
public TableColumn(String newName)(Code)
Constructs an instance of TableColumn using the given name.
Parameters:
  newName - name of this new instance



TableColumn
public TableColumn(String newName, String newJavaType)(Code)
Constructs an instance of TableColumn using the given name and Java type.
Parameters:
  newName - name of new instance
Parameters:
  newJavaType - Java type of this new instance



TableColumn
public TableColumn(String newName, String newJavaType, boolean newIsNullable, boolean newIsSelected, boolean newIsPrimaryKey, boolean newIsForeignKey, int newSqlTypeCode)(Code)
Constructs a new instance of TableColumn using the given attributes.
Parameters:
  newName - name of new instance
Parameters:
  newJavaType - Java type of new instance
Parameters:
  newIsNullable - true if column is nullable, false otherwise
Parameters:
  newIsSelected - true if column is selected, false otherwise
Parameters:
  newIsPrimaryKey - true if column is PK, false otherwise
Parameters:
  newIsForeignKey - true if column if FK, false otherwise
Parameters:
  newSqlTypeCode - SQL type code as enumerated in java.sql.Types



TableColumn
public TableColumn(TableColumn tCol)(Code)




Method Detail
getDefaultValue
public String getDefaultValue()(Code)
Gets String representation of default value for this column (may be null). default value, or null if none was defined



getIsForeignKey
public boolean getIsForeignKey()(Code)
Indicates whether column is foreign key true if FK, false otherwise



getIsNullable
public boolean getIsNullable()(Code)
Indicates whether column is nullable true if nullable, false otherwise



getIsPrimaryKey
public boolean getIsPrimaryKey()(Code)
Indicates whether column is primary key true if PK, false otherwise



getIsSelected
public boolean getIsSelected()(Code)
Indicates whether column is selected true if selected, false otherwise



getJavaType
public String getJavaType()(Code)
Gets Java type. Java type



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



getNumericPrecision
public int getNumericPrecision()(Code)
Gets precision (for numeric types) or maximum number of characters (for char or date types). numeric precision or maximum number of characters, as determinedby column type



getNumericRadix
public int getNumericRadix()(Code)
Gets radix (number base) of this column, e.g., 10 (decimal), 2 (binary). Meaningful only for numeric columns. numeric radix of column; meaningless for non-numeric columns



getNumericScale
public int getNumericScale()(Code)
Gets numeric scale of this column. Meaningful only for numeric columns. numeric scale of column; meaningless for non-numeric columns



getOrdinalPosition
public int getOrdinalPosition()(Code)
Gets ordinal position of column among siblings in its table. ordinal position



getSqlType
public String getSqlType()(Code)
Gets JDBC SQL type. JDBC SQL type (as String)



getSqlTypeCode
public int getSqlTypeCode()(Code)
Gets SQL type code.
Parameters:
  newCode - SQL code



getValue
public String getValue()(Code)
Gets String representation of value for this column (may be null). value, or null if none was defined



setDefaultValue
public void setDefaultValue(String newDefault)(Code)
Sets default value, if any, of column.
Parameters:
  newDefault - default value; set to null to indicate that nodefault exists.



setIsForeignKey
public void setIsForeignKey(boolean newIsForeignKey)(Code)
Sets whether column is a foreign key. Note that multiple columns may participate in a composite FK.
Parameters:
  newIsForeignKey - true if FK; false otherwise



setIsNullable
public void setIsNullable(boolean newIsNullable)(Code)
Sets nullability of column
Parameters:
  newIsNullable - true if nullable; false otherwise



setIsPrimaryKey
public void setIsPrimaryKey(boolean newIsPrimaryKey)(Code)
Sets whether column is a primary key. Note that multiple columns may participate in a composite PK.
Parameters:
  newIsPrimaryKey - true if PK; false otherwise



setIsSelected
public void setIsSelected(boolean newIsSelected)(Code)
Sets selection state of column.
Parameters:
  newIsSelected - true if selected; false otherwise



setJavaType
public void setJavaType(String newJavaType)(Code)
Sets Java type of column.
Parameters:
  newJavaType - new Java type of column



setName
public void setName(String newName)(Code)
Sets column name.
Parameters:
  newName - new name of column



setNumericPrecision
public void setNumericPrecision(int newNumericPrecision)(Code)
Sets numeric precision or maximum character width of column.
Parameters:
  newNumericPrecision - new precision of column



setNumericRadix
public void setNumericRadix(int newNumericRadix)(Code)
Sets numeric radix of column.
Parameters:
  newNumericRadix - new radix of column



setNumericScale
public void setNumericScale(int newNumericScale)(Code)
Sets numeric scale of column.
Parameters:
  newNumericScale - new scale of column



setOrdinalPosition
public void setOrdinalPosition(int newPosition)(Code)
Sets ordinal position of column.
Parameters:
  newPosition - new ordinal position of column



setSqlType
public void setSqlType(String newSqlType)(Code)
Sets JDBC SQL type of column
Parameters:
  newSqlType - new JDBC SQL type (expressed as String representation)



setSqlTypeCode
public void setSqlTypeCode(int newCode)(Code)
Sets SQL type code.
Parameters:
  newCode - SQL code



setValue
public void setValue(String newValue)(Code)
Sets value, if any, of column.
Parameters:
  newDefault - default value; set to null to indicate that nodefault exists.



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.