Java Doc for Column.java in  » J2EE » hgcommons » biz » hammurapi » sql » columns » 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 » J2EE » hgcommons » biz.hammurapi.sql.columns 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   biz.hammurapi.sql.columns.Column

All known Subclasses:   biz.hammurapi.sql.columns.BooleanColumn,  biz.hammurapi.sql.columns.IntColumn,  biz.hammurapi.sql.columns.ObjectColumn,  biz.hammurapi.sql.columns.DoubleColumn,  biz.hammurapi.sql.columns.CharColumn,  biz.hammurapi.sql.columns.ShortColumn,  biz.hammurapi.sql.columns.FloatColumn,  biz.hammurapi.sql.columns.LongColumn,  biz.hammurapi.sql.columns.ByteColumn,
Column
abstract public class Column implements Cloneable,ContextConfigurable,DomConfigurable,Attributable,Serializable(Code)
Base class for different column types
author:
   Pavel Vlasov
version:
   $Revision: 1.14 $


Field Summary
protected  booleanforce
    

Constructor Summary
public  Column(String name, boolean isPrimaryKey)
    

Method Summary
abstract public  voidclear()
     Sets field value to default and clears modified flag.
public  voidclearModified()
     Clears modified flag.
public  Objectclone()
    
public static  ClasscolumnType(String typeName)
    
public  voidconfigure(Node configNode, Context context)
    
protected  StringgetAlignment()
    
public  ObjectgetAttribute(Object key)
    
public  StringgetLabel()
    
public  ColumnChangeListenergetListener()
    
public  StringgetName()
    
abstract public  ObjectgetObjectValue(boolean originalValue)
    
abstract protected  StringgetType()
    
public static  booleanhasColumn(ResultSet rs, String name)
    
public  booleanisModified()
    
public  booleanisPrimaryKey()
    
public  StringlistName()
    
abstract public  voidload(String textValue)
    
protected  voidonChange()
    
public  intparameterize(PreparedStatement ps, int idx, boolean force)
     Parameterizes prepared statement.
abstract protected  voidparameterizeInternal(PreparedStatement ps, int idx)
     Implement this method in subclasses.
abstract public  voidparameterizeOriginal(PreparedStatement ps, int idx)
     Implement this method in subclasses.
public  ObjectremoveAttribute(Object key)
    
abstract public  voidset(Column source)
    
public  voidsetAttribute(Object key, Object value)
    
public  voidsetForce(boolean force)
    
public  voidsetLabel(String label)
    
public  voidsetListener(ColumnChangeListener listener)
    
abstract public  voidsetOriginal()
    
public  voidtoDom(Element owner, String nodeName, boolean originalValue)
    

Field Detail
force
protected boolean force(Code)




Constructor Detail
Column
public Column(String name, boolean isPrimaryKey)(Code)

Parameters:
  name - Column name
Parameters:
  isPrimaryKey - 'true' if column is part of primary key




Method Detail
clear
abstract public void clear()(Code)
Sets field value to default and clears modified flag.



clearModified
public void clearModified()(Code)
Clears modified flag.



clone
public Object clone() throws CloneNotSupportedException(Code)



columnType
public static Class columnType(String typeName)(Code)

Parameters:
  typeName - Column type for Java type



configure
public void configure(Node configNode, Context context) throws ConfigurationException(Code)



getAlignment
protected String getAlignment()(Code)



getAttribute
public Object getAttribute(Object key)(Code)



getLabel
public String getLabel()(Code)
display label for column



getListener
public ColumnChangeListener getListener()(Code)
Returns the listener.



getName
public String getName()(Code)
name



getObjectValue
abstract public Object getObjectValue(boolean originalValue)(Code)
Returns column value as object
Parameters:
  originalValue - if true this method returns original value instead of current value.



getType
abstract protected String getType()(Code)



hasColumn
public static boolean hasColumn(ResultSet rs, String name) throws SQLException(Code)

Parameters:
  rs -
Parameters:
  name - True if result set has a column with specified name.
throws:
  SQLException -



isModified
public boolean isModified()(Code)
Returns the isModified.



isPrimaryKey
public boolean isPrimaryKey()(Code)
Returns the isPrimaryKey.



listName
public String listName()(Code)
Column name if value was modified, null otherwise.



load
abstract public void load(String textValue)(Code)
Loads value from XML Element
Parameters:
  textValue - Text value



onChange
protected void onChange()(Code)



parameterize
public int parameterize(PreparedStatement ps, int idx, boolean force) throws SQLException(Code)
Parameterizes prepared statement.
Parameters:
  ps -
Parameters:
  idx - Parameter index
Parameters:
  force - If true column is treated a modified idx+1 if column was modified and prepared statement was parameterized, idx otherwise.



parameterizeInternal
abstract protected void parameterizeInternal(PreparedStatement ps, int idx) throws SQLException(Code)
Implement this method in subclasses.



parameterizeOriginal
abstract public void parameterizeOriginal(PreparedStatement ps, int idx) throws SQLException(Code)
Implement this method in subclasses.



removeAttribute
public Object removeAttribute(Object key)(Code)



set
abstract public void set(Column source)(Code)
Copies values from source column
Parameters:
  source -



setAttribute
public void setAttribute(Object key, Object value)(Code)



setForce
public void setForce(boolean force)(Code)

Parameters:
  force -



setLabel
public void setLabel(String label)(Code)
Sets display label for column
Parameters:
  label -



setListener
public void setListener(ColumnChangeListener listener)(Code)

Parameters:
  listener - The listener to set.



setOriginal
abstract public void setOriginal()(Code)



toDom
public void toDom(Element owner, String nodeName, boolean originalValue)(Code)

Parameters:
  owner -



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.