Java Doc for AbstractDBColumn.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.AbstractSQLObject
      org.netbeans.modules.sql.framework.model.impl.AbstractDBColumn

All known Subclasses:   org.netbeans.modules.sql.framework.model.impl.TargetColumnImpl,  org.netbeans.modules.sql.framework.model.impl.SourceColumnImpl,  org.netbeans.modules.mashup.db.model.impl.FlatfileDBColumnImpl,
AbstractDBColumn
abstract public class AbstractDBColumn extends AbstractSQLObject implements SQLDBColumn,Cloneable,Comparable(Code)
Abstract implementation for org.netbeans.modules.model.database.DBColumn and SQLObject interfaces.
author:
   Sudhendra Seshachala, Jonathan Giron
version:
   $Revision$


Field Summary
final protected static  StringCOLUMN_CATALOGNAME_ATTR
     Constant for catalog name tag.
final protected static  StringCOLUMN_DEFAULTVALUE_ATTR
     Constant for column default value tag.
final protected static  StringCOLUMN_INDEXED_ATTR
     Constant for column isForeignKey name tag.
final protected static  StringCOLUMN_ISFK_ATTR
     Constant for column isForeignKey name tag.
final protected static  StringCOLUMN_ISPK_ATTR
     Constant for column isPrimaryKey name tag.
final protected static  StringCOLUMN_MODEL_ATTR
     Constant for column model name tag.
final protected static  StringCOLUMN_NAME_ATTR
     Constant for column name tag.
final protected static  StringCOLUMN_NULLABLE_ATTR
     Constant for column nullable name tag.
final protected static  StringCOLUMN_ORDINAL_POSITION_ATTR
     Constant for column ordinal position tag.
final protected static  StringCOLUMN_PRECISION_ATTR
     Constant for column precision name tag.
final protected static  StringCOLUMN_SCALE_ATTR
     Constant for column scale name tag.
final protected static  StringCOLUMN_SCHEMANAME_ATTR
     Constant for schema name tag.
final protected static  StringCOLUMN_TABLENAME_ATTR
     Constant for column table name tag.
final protected static  StringCOLUMN_TYPE_ATTR
     Constant for column type name tag.
final static  StringELEMENT_TAG
     Constant for column metadata name tag.
final public static  intPOSITION_UNKNOWN
     Constant for indicating unknown ordinal position for this column.
final protected static  StringUNKNOWN_TYPE
    
protected  StringdefaultValue
    
protected  booleanfkFlag
    
protected  booleanindexed
    
protected  intjdbcType
    
protected  Stringname
    
protected  booleannullable
    
protected  intordinalPosition
    
protected  DBTableparent
    
protected  booleanpkFlag
    
protected  intprecision
    
protected  intscale
    

Constructor Summary
public  AbstractDBColumn()
     Constructs default instance of AbstractDBColumn.
public  AbstractDBColumn(String colName, int sqlJdbcType, int colScale, int colPrecision, boolean isNullable)
     Constructs a new instance of AbstractDBColumn using the given parameters and assuming that the column is not part of a foreign key or primary key, and that it accepts null values.
public  AbstractDBColumn(String colName, int sqlJdbcType, int colScale, int colPrecision, boolean isPrimaryKey, boolean isForeignKey, boolean isIndexed, boolean isNullable)
     Constructs a new instance of AbstractDBColumn using the given parameters.

Method Summary
protected  voidappendXMLAttributes(StringBuilder xml)
     Appends attributes defined in this abstract class to the given StringBuilder.
public  Objectclone()
    
public  intcompareTo(Object refObj)
     Compares DBColumn with another object for lexicographical ordering.
public  voidcopyFrom(DBColumn source)
     Sets the various member variables and collections using the given DBColumn instance as a source object.
public  booleanequals(Object refObj)
     Overrides default implementation to return value based on memberwise comparison.
public  StringgetDefaultValue()
    
public  StringgetDisplayName()
    
abstract protected  StringgetElementTagName()
     Gets String representing tag name for this table class.
public  intgetJdbcType()
    
public  StringgetJdbcTypeString()
    
public  StringgetName()
    
public  intgetOrdinalPosition()
    
public  DBTablegetParent()
    
public  intgetPrecision()
    
public  StringgetQualifiedName()
    
public  intgetScale()
    
public  inthashCode()
     Gets the hashCode for this object.
public  booleanisEditable()
    
public  booleanisForeignKey()
    
public  booleanisIndexed()
    
public  booleanisNullable()
    
public  booleanisPrimaryKey()
    
public  booleanisVisible()
    
public  voidparseXML(Element columnElement)
     Parses the XML content, if any, represented by the given DOM element.
public  voidsetDefaultValue(String defaultVal)
    
public  voidsetEditable(boolean editable)
    
public  voidsetForeignKey(boolean newFlag)
     Sets whether this column is flagged as part of a foreign key.
public  voidsetIndexed(boolean newFlag)
     Sets whether this column is flagged as indexed.
public  voidsetJdbcType(int newType)
    
public  voidsetName(String theName)
    
public  voidsetNullable(boolean newFlag)
     Sets whether this column is flagged as nullable.
public  voidsetOrdinalPosition(int cardinalPos)
    
public  voidsetParent(DBTable newParent)
     Sets reference to DBTable that owns this DBColumn.
public  voidsetPrecision(int thePrecision)
    
public  voidsetPrimaryKey(boolean newFlag)
     Sets whether this column is flagged as part of a primary key.
public  voidsetScale(int theScale)
    
public  voidsetVisible(boolean visible)
    
public  StringtoString()
    
abstract public  StringtoXMLString(String prefix)
    

Field Detail
COLUMN_CATALOGNAME_ATTR
final protected static String COLUMN_CATALOGNAME_ATTR(Code)
Constant for catalog name tag.



COLUMN_DEFAULTVALUE_ATTR
final protected static String COLUMN_DEFAULTVALUE_ATTR(Code)
Constant for column default value tag.



COLUMN_INDEXED_ATTR
final protected static String COLUMN_INDEXED_ATTR(Code)
Constant for column isForeignKey name tag.



COLUMN_ISFK_ATTR
final protected static String COLUMN_ISFK_ATTR(Code)
Constant for column isForeignKey name tag.



COLUMN_ISPK_ATTR
final protected static String COLUMN_ISPK_ATTR(Code)
Constant for column isPrimaryKey name tag.



COLUMN_MODEL_ATTR
final protected static String COLUMN_MODEL_ATTR(Code)
Constant for column model name tag.



COLUMN_NAME_ATTR
final protected static String COLUMN_NAME_ATTR(Code)
Constant for column name tag.



COLUMN_NULLABLE_ATTR
final protected static String COLUMN_NULLABLE_ATTR(Code)
Constant for column nullable name tag.



COLUMN_ORDINAL_POSITION_ATTR
final protected static String COLUMN_ORDINAL_POSITION_ATTR(Code)
Constant for column ordinal position tag.



COLUMN_PRECISION_ATTR
final protected static String COLUMN_PRECISION_ATTR(Code)
Constant for column precision name tag.



COLUMN_SCALE_ATTR
final protected static String COLUMN_SCALE_ATTR(Code)
Constant for column scale name tag.



COLUMN_SCHEMANAME_ATTR
final protected static String COLUMN_SCHEMANAME_ATTR(Code)
Constant for schema name tag.



COLUMN_TABLENAME_ATTR
final protected static String COLUMN_TABLENAME_ATTR(Code)
Constant for column table name tag.



COLUMN_TYPE_ATTR
final protected static String COLUMN_TYPE_ATTR(Code)
Constant for column type name tag.



ELEMENT_TAG
final static String ELEMENT_TAG(Code)
Constant for column metadata name tag.



POSITION_UNKNOWN
final public static int POSITION_UNKNOWN(Code)
Constant for indicating unknown ordinal position for this column.



UNKNOWN_TYPE
final protected static String UNKNOWN_TYPE(Code)
String constant for unknown SQL type



defaultValue
protected String defaultValue(Code)
default value



fkFlag
protected boolean fkFlag(Code)
whether this column is part of a foreign key



indexed
protected boolean indexed(Code)
whether this column is indexed



jdbcType
protected int jdbcType(Code)
JDBC SQL type, as enumerated in java.sql.Types



name
protected String name(Code)
name of column



nullable
protected boolean nullable(Code)
whether this column can accept null as a valid value



ordinalPosition
protected int ordinalPosition(Code)
Cardinal Position



parent
protected DBTable parent(Code)
DBTable to which this PK belongs



pkFlag
protected boolean pkFlag(Code)
whether this column is part of a primary key



precision
protected int precision(Code)
column precision (for numeric types) / width (for char types)



scale
protected int scale(Code)
column scale (meaningful only for numeric types)




Constructor Detail
AbstractDBColumn
public AbstractDBColumn()(Code)
Constructs default instance of AbstractDBColumn.



AbstractDBColumn
public AbstractDBColumn(String colName, int sqlJdbcType, int colScale, int colPrecision, boolean isNullable)(Code)
Constructs a new instance of AbstractDBColumn using the given parameters and assuming that the column is not part of a foreign key or primary key, and that it accepts null values.
Parameters:
  colName - name of this column
Parameters:
  sqlJdbcType - JDBC type of this column
Parameters:
  colScale - scale of this column
Parameters:
  colPrecision - precision of this column
Parameters:
  isNullable - true if nullable, false otherwise
See Also:   java.sql.Types



AbstractDBColumn
public AbstractDBColumn(String colName, int sqlJdbcType, int colScale, int colPrecision, boolean isPrimaryKey, boolean isForeignKey, boolean isIndexed, boolean isNullable)(Code)
Constructs a new instance of AbstractDBColumn using the given parameters.
Parameters:
  colName - name of this column
Parameters:
  sqlJdbcType - JDBC type of this column
Parameters:
  colScale - scale of this column
Parameters:
  colPrecision - precision of this column
Parameters:
  isPrimaryKey - true if part of a primary key, false otherwise
Parameters:
  isForeignKey - true if part of a foreign key, false otherwise
Parameters:
  isIndexed - true if indexed, false otherwise
Parameters:
  isNullable - true if nullable, false otherwise
See Also:   java.sql.Types




Method Detail
appendXMLAttributes
protected void appendXMLAttributes(StringBuilder xml)(Code)
Appends attributes defined in this abstract class to the given StringBuilder.
Parameters:
  xml - StringBuilder to receive XML attribute output



clone
public Object clone() throws CloneNotSupportedException(Code)
Clone method cloned object
throws:
  CloneNotSupportedException - - exception



compareTo
public int compareTo(Object refObj)(Code)
Compares DBColumn with another object for lexicographical ordering. Null objects and those DBColumns with null names are placed at the end of any ordered collection using this method.
Parameters:
  refObj - Object to be compared. -1 if the column name is less than obj to be compared. 0 if the column nameis the same. 1 if the column name is greater than obj to be compared.



copyFrom
public void copyFrom(DBColumn source)(Code)
Sets the various member variables and collections using the given DBColumn instance as a source object. Concrete implementations should override this method, call super.copyFrom(DBColumn) to pick up member variables defined in this class and then implement its own logic for copying member variables defined within itself.
Parameters:
  source - DBColumn from which to obtain values for member variables andcollections



equals
public boolean equals(Object refObj)(Code)
Overrides default implementation to return value based on memberwise comparison. Concrete implementations should override this method and combine the result of super.equals(Object) [calling this method] with its own comparison of member variables declared in its class as its own return value.
Parameters:
  refObj - Object against which we compare this instance true if refObj is functionally identical to this instance; false otherwise



getDefaultValue
public String getDefaultValue()(Code)
Get default value default value



getDisplayName
public String getDisplayName()(Code)

See Also:   SQLObject



getElementTagName
abstract protected String getElementTagName()(Code)
Gets String representing tag name for this table class. String representing element tag for this instance



getJdbcType
public int getJdbcType()(Code)

See Also:   org.netbeans.modules.model.database.DBColumn.getJdbcType



getJdbcTypeString
public String getJdbcTypeString()(Code)

See Also:   org.netbeans.modules.model.database.DBColumn.getJdbcTypeString



getName
public String getName()(Code)

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



getOrdinalPosition
public int getOrdinalPosition()(Code)
Gets the Ordinal Position cardinalPosition to be used



getParent
public DBTable getParent()(Code)

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



getPrecision
public int getPrecision()(Code)

See Also:   org.netbeans.modules.model.database.DBColumn.getPrecision



getQualifiedName
public String getQualifiedName()(Code)
get table qualified name qualified column name prefixed with alias



getScale
public int getScale()(Code)

See Also:   org.netbeans.modules.model.database.DBColumn.getScale



hashCode
public int hashCode()(Code)
Gets the hashCode for this object. Concrete implementations should override this method and combine the result of super.hashCode() [this method] and its own implementation of hashCode as its own return value. the hashCode of this object.



isEditable
public boolean isEditable()(Code)
gui property editable check if this column is editable isEditable



isForeignKey
public boolean isForeignKey()(Code)

See Also:   org.netbeans.modules.model.database.DBColumn.isForeignKey



isIndexed
public boolean isIndexed()(Code)

See Also:   org.netbeans.modules.model.database.DBColumn.isIndexed



isNullable
public boolean isNullable()(Code)

See Also:   org.netbeans.modules.model.database.DBColumn.isNullable



isPrimaryKey
public boolean isPrimaryKey()(Code)

See Also:   org.netbeans.modules.model.database.DBColumn.isPrimaryKey



isVisible
public boolean isVisible()(Code)
is this column visible boolean



parseXML
public void parseXML(Element columnElement) throws BaseException(Code)
Parses the XML content, if any, represented by the given DOM element.
Parameters:
  columnElement - DOM element to be parsed for column content
exception:
  BaseException - thrown while parsing XML, or if columnElement is null



setDefaultValue
public void setDefaultValue(String defaultVal)(Code)
Set default value
Parameters:
  defaultVal - - value



setEditable
public void setEditable(boolean editable)(Code)
gui property editable set this column editable property
Parameters:
  editable - - editable



setForeignKey
public void setForeignKey(boolean newFlag)(Code)
Sets whether this column is flagged as part of a foreign key.
Parameters:
  newFlag - true if this column is part of a foreign key; false otherwise



setIndexed
public void setIndexed(boolean newFlag)(Code)
Sets whether this column is flagged as indexed.
Parameters:
  newFlag - true if this column is indexed; false otherwise



setJdbcType
public void setJdbcType(int newType)(Code)
Sets JDBC type of this column
Parameters:
  newType - new JDBC type value



setName
public void setName(String theName)(Code)
Set name
Parameters:
  name - - name



setNullable
public void setNullable(boolean newFlag)(Code)
Sets whether this column is flagged as nullable.
Parameters:
  newFlag - true if this column is nullable; false otherwise



setOrdinalPosition
public void setOrdinalPosition(int cardinalPos)(Code)
Gets the Ordinal Position
Parameters:
  cardinalPos - to be used



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



setPrecision
public void setPrecision(int thePrecision)(Code)
Set precision
Parameters:
  precision - - precision



setPrimaryKey
public void setPrimaryKey(boolean newFlag)(Code)
Sets whether this column is flagged as part of a primary key.
Parameters:
  newFlag - true if this column is part of a primary key; false otherwise



setScale
public void setScale(int theScale)(Code)
Set scale
Parameters:
  scale - - scale



setVisible
public void setVisible(boolean visible)(Code)
set this column to be visible
Parameters:
  visible - boolean



toString
public String toString()(Code)
toString String



toXMLString
abstract public String toXMLString(String prefix) throws BaseException(Code)

See Also:   SQLObject.toXMLString(java.lang.String)



Fields inherited from org.netbeans.modules.sql.framework.model.impl.AbstractSQLObject
protected Map attributes(Code)(Java Doc)
protected transient String displayName(Code)(Java Doc)
protected transient String id(Code)(Java Doc)
protected transient String objectType(Code)(Java Doc)
protected transient Object parentObject(Code)(Java Doc)
protected int type(Code)(Java Doc)

Methods inherited from org.netbeans.modules.sql.framework.model.impl.AbstractSQLObject
public Object cloneSQLObject() throws CloneNotSupportedException(Code)(Java Doc)
public void copyFromSource(SQLObject source)(Code)(Java Doc)
public boolean equals(Object o)(Code)(Java Doc)
public Attribute getAttribute(String attrName)(Code)(Java Doc)
public Collection getAttributeNames()(Code)(Java Doc)
public Object getAttributeObject(String attrName)(Code)(Java Doc)
public List getChildSQLObjects()(Code)(Java Doc)
public String getDisplayName()(Code)(Java Doc)
public String getFooter()(Code)(Java Doc)
public String getHeader()(Code)(Java Doc)
public String getId()(Code)(Java Doc)
public int getJdbcType()(Code)(Java Doc)
public int getObjectType()(Code)(Java Doc)
public SQLObject getOutput(String argName) throws BaseException(Code)(Java Doc)
public Object getParentObject()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
protected void parseCommonAttributesAndTags(Element xmlElement) throws BaseException(Code)(Java Doc)
public void parseXML(Element xmlElement) throws BaseException(Code)(Java Doc)
public void reset()(Code)(Java Doc)
public void secondPassParse(Element element) throws BaseException(Code)(Java Doc)
public void setAttribute(String attrName, Object val)(Code)(Java Doc)
public void setDisplayName(String newName)(Code)(Java Doc)
public void setId(String newId) throws BaseException(Code)(Java Doc)
public void setJdbcType(int newType)(Code)(Java Doc)
public void setParentObject(Object newParent) throws BaseException(Code)(Java Doc)
protected String toXMLAttributeTags(String prefix)(Code)(Java Doc)
public String toXMLString(String prefix) throws BaseException(Code)(Java Doc)

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_v_a___2s.___c__om_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.