Java Doc for ColumnDisplayDefinition.java in  » Database-Client » squirrel-sql-2.6.5a » net » sourceforge » squirrel_sql » fw » datasetviewer » 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 » Database Client » squirrel sql 2.6.5a » net.sourceforge.squirrel_sql.fw.datasetviewer 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sourceforge.squirrel_sql.fw.datasetviewer.ColumnDisplayDefinition

ColumnDisplayDefinition
public class ColumnDisplayDefinition (Code)
This defines the display information for a column.
author:
   Colin Bell



Constructor Summary
public  ColumnDisplayDefinition(int displayWidth, String label)
     Ctor.
public  ColumnDisplayDefinition(int displayWidth, String fullTableColumnName, String columnName, String label, int sqlType, String sqlTypeName, boolean isNullable, int columnSize, int precision, int scale, boolean isSigned, boolean isCurrency, boolean isAutoIncrement)
     Constructor for use when the type of data in the column is known/needed.
public  ColumnDisplayDefinition(ResultSet rs, int idx)
     Constructs a new ColumnDisplayDefinition using ResultSetMetaData from the specified ResultSet.

Method Summary
public  StringgetClassName()
     Return the class name associated with the sql data type.
public  StringgetColumnName()
    
public  intgetColumnSize()
     Return the size of the column as known to the DB in number of characters, For non-character fields (e.g.
public  intgetDisplayWidth()
     Return the number of characters to display.
public  StringgetFullTableColumnName()
     Return the full name of the column including the table Catalog, Schema and Table names.
public  StringgetLabel()
     Return the column heading.
public  intgetPrecision()
     Return the number of decimal digits that may be entered into this field.
public  intgetScale()
     Return the number of decimal digits to the right of the decimal point.
public  intgetSqlType()
     Return the column data type, which may be Types.NULL.
public  StringgetSqlTypeName()
     Return the column data type name.
public  booleanisAutoIncrement()
    
public  booleanisCurrency()
     Return the flag for whether this column represents currency or not.
public  booleanisNullable()
     Return a boolean indicating column is nullable or not.
public  booleanisSigned()
     Return the flag for whether this column is signed or unsigned.
public  voidsetColumnName(String _columnName)
    
public  voidsetIsAutoIncrement(boolean autoIncrement)
    
public  voidsetIsNullable(boolean isNullable)
     Override the isNullable field after creation.
public  voidsetSqlType(int sqlType)
    
public  voidsetSqlTypeName(String sqlTypeName)
    
public  StringtoString()
    


Constructor Detail
ColumnDisplayDefinition
public ColumnDisplayDefinition(int displayWidth, String label)(Code)
Ctor.
Parameters:
  displayWidth - Number of characters to display.
Parameters:
  label - Column heading.



ColumnDisplayDefinition
public ColumnDisplayDefinition(int displayWidth, String fullTableColumnName, String columnName, String label, int sqlType, String sqlTypeName, boolean isNullable, int columnSize, int precision, int scale, boolean isSigned, boolean isCurrency, boolean isAutoIncrement)(Code)
Constructor for use when the type of data in the column is known/needed.
Parameters:
  displayWidth - Number of characters to display.
Parameters:
  label - Column heading.
Parameters:
  className - Name of the class for the type of data in the column.



ColumnDisplayDefinition
public ColumnDisplayDefinition(ResultSet rs, int idx) throws SQLException(Code)
Constructs a new ColumnDisplayDefinition using ResultSetMetaData from the specified ResultSet.
Parameters:
  rs - the ResultSet to use
Parameters:
  idx - the index of the column to build a display definition for.
throws:
  SQLException -




Method Detail
getClassName
public String getClassName()(Code)
Return the class name associated with the sql data type. When the type is unknown or cannot be edited we return "java.lang.Object". The java class name for the data type



getColumnName
public String getColumnName()(Code)
the _columnName



getColumnSize
public int getColumnSize()(Code)
Return the size of the column as known to the DB in number of characters, For non-character fields (e.g. Integer) this will be the number of characters used in the DB to represent the data (e.g. 4 for an Int) rather than the number of characters (e.g. decimal digits) that the user may enter.



getDisplayWidth
public int getDisplayWidth()(Code)
Return the number of characters to display. The number of characters to display.



getFullTableColumnName
public String getFullTableColumnName()(Code)
Return the full name of the column including the table Catalog, Schema and Table names. The full table name.



getLabel
public String getLabel()(Code)
Return the column heading. The column heading.



getPrecision
public int getPrecision()(Code)
Return the number of decimal digits that may be entered into this field.



getScale
public int getScale()(Code)
Return the number of decimal digits to the right of the decimal point.



getSqlType
public int getSqlType()(Code)
Return the column data type, which may be Types.NULL. The type of data in the column (may be Types.NULL).



getSqlTypeName
public String getSqlTypeName()(Code)
Return the column data type name. The DBMS-specific name of the type of data in the column.



isAutoIncrement
public boolean isAutoIncrement()(Code)



isCurrency
public boolean isCurrency()(Code)
Return the flag for whether this column represents currency or not.



isNullable
public boolean isNullable()(Code)
Return a boolean indicating column is nullable or not. true = column may contain null (with some uncertainty);false= definitely no nulls allowed.



isSigned
public boolean isSigned()(Code)
Return the flag for whether this column is signed or unsigned.



setColumnName
public void setColumnName(String _columnName)(Code)

Parameters:
  _columnName - the _columnName to set



setIsAutoIncrement
public void setIsAutoIncrement(boolean autoIncrement)(Code)



setIsNullable
public void setIsNullable(boolean isNullable)(Code)
Override the isNullable field after creation.



setSqlType
public void setSqlType(int sqlType)(Code)



setSqlTypeName
public void setSqlTypeName(String sqlTypeName)(Code)



toString
public String toString()(Code)



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.