Java Doc for Column.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » amber » table » 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 » EJB Server resin 3.1.5 » resin » com.caucho.amber.table 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.amber.table.Column

All known Subclasses:   com.caucho.amber.table.ForeignColumn,
Column
public class Column (Code)
Column configuration.



Constructor Summary
 Column(Table table, String name)
    
public  Column(Table table, String name, Type type)
     Creates the column.

Method Summary
protected  ConfigExceptionerror(String msg, Throwable e)
    
 StringgenerateCreateTableSQL(AmberPersistenceUnit manager)
     Generates the clause to create the column.
public  StringgenerateInsertName()
     Generates the insert name.
public  intgenerateLoad(JavaWriter out, String rs, String indexVar, int index)
     Generates a string to load the type as a property.
public  StringgenerateMatchArgWhere(String id)
     Generates the where clause.
public  voidgeneratePrologue(JavaWriter out)
     Generates the prologue.
public  StringgenerateSelect(String id)
     Generates the clause to load the column.
public  voidgenerateSet(JavaWriter out, String pstmt, String index, String value)
     Generates a string to load the type as a property.
public  voidgenerateSetVersion(JavaWriter out, String pstmt, String index, String value)
     Generates a string to load the type as a property.
public  StringgenerateUpdateSet()
     Generates the update clause.
public  StringgenerateUpdateSetNull()
     Generates the update clause setting to null.
public  StringgetFieldName()
     Returns the field name.
public  intgetLength()
     Gets the length property.
public  StringgetName()
     Gets the column name.
public  intgetPrecision()
     Gets the precision property.
public  StringgetSQLType()
    
public  intgetScale()
    
public  TablegetTable()
     Returns the owning table.
public  TypegetType()
     Returns the type.
public  booleanisNotNull()
     Gets the not-null property.
public  booleanisPrimaryKey()
     Return true for a primary key column.
public  booleanisUnique()
     Gets the unique property.
public  voidsetConfigLocation(String location)
     Sets the config location.
public  voidsetGeneratorType(String type)
     Sets the generator type.
public  voidsetLength(int length)
     Sets the length property.
public  voidsetName(String name)
     Sets the column name.
public  voidsetNotNull(boolean isNotNull)
     Sets the not-null property.
public  voidsetPrecision(int precision)
     Set the precision property.
public  voidsetPrimaryKey(boolean isPrimaryKey)
     Sets the primary key property.
public  voidsetSQLType(String sqlType)
    
public  voidsetScale(int scale)
    
public  voidsetUnique(boolean isUnique)
     Sets the unique property.
public  ObjecttoObjectKey(long value)
     Converts to the object key.
public  StringtoString()
     Returns the name.
 voidvalidateDatabase(AmberPersistenceUnit amberPersistenceUnit)
     Creates the table if missing.


Constructor Detail
Column
Column(Table table, String name)(Code)



Column
public Column(Table table, String name, Type type)(Code)
Creates the column.
Parameters:
  table - the owning table
Parameters:
  name - the column sql name
Parameters:
  type - the column's type




Method Detail
error
protected ConfigException error(String msg, Throwable e)(Code)



generateCreateTableSQL
String generateCreateTableSQL(AmberPersistenceUnit manager)(Code)
Generates the clause to create the column.



generateInsertName
public String generateInsertName()(Code)
Generates the insert name.



generateLoad
public int generateLoad(JavaWriter out, String rs, String indexVar, int index) throws IOException(Code)
Generates a string to load the type as a property.



generateMatchArgWhere
public String generateMatchArgWhere(String id)(Code)
Generates the where clause.



generatePrologue
public void generatePrologue(JavaWriter out) throws IOException(Code)
Generates the prologue.



generateSelect
public String generateSelect(String id)(Code)
Generates the clause to load the column.



generateSet
public void generateSet(JavaWriter out, String pstmt, String index, String value) throws IOException(Code)
Generates a string to load the type as a property.



generateSetVersion
public void generateSetVersion(JavaWriter out, String pstmt, String index, String value) throws IOException(Code)
Generates a string to load the type as a property.



generateUpdateSet
public String generateUpdateSet()(Code)
Generates the update clause.



generateUpdateSetNull
public String generateUpdateSetNull()(Code)
Generates the update clause setting to null.



getFieldName
public String getFieldName()(Code)
Returns the field name.



getLength
public int getLength()(Code)
Gets the length property.



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



getPrecision
public int getPrecision()(Code)
Gets the precision property.



getSQLType
public String getSQLType()(Code)
Gets the sql type for the create table



getScale
public int getScale()(Code)
Get the scale property



getTable
public Table getTable()(Code)
Returns the owning table.



getType
public Type getType()(Code)
Returns the type.



isNotNull
public boolean isNotNull()(Code)
Gets the not-null property.



isPrimaryKey
public boolean isPrimaryKey()(Code)
Return true for a primary key column.



isUnique
public boolean isUnique()(Code)
Gets the unique property.



setConfigLocation
public void setConfigLocation(String location)(Code)
Sets the config location.



setGeneratorType
public void setGeneratorType(String type)(Code)
Sets the generator type.



setLength
public void setLength(int length)(Code)
Sets the length property.



setName
public void setName(String name)(Code)
Sets the column name.



setNotNull
public void setNotNull(boolean isNotNull)(Code)
Sets the not-null property.



setPrecision
public void setPrecision(int precision)(Code)
Set the precision property.



setPrimaryKey
public void setPrimaryKey(boolean isPrimaryKey)(Code)
Sets the primary key property.



setSQLType
public void setSQLType(String sqlType)(Code)
Sets the sql type for create table



setScale
public void setScale(int scale)(Code)
Set the scale property



setUnique
public void setUnique(boolean isUnique)(Code)
Sets the unique property.



toObjectKey
public Object toObjectKey(long value)(Code)
Converts to the object key.



toString
public String toString()(Code)
Returns the name.



validateDatabase
void validateDatabase(AmberPersistenceUnit amberPersistenceUnit) throws ConfigException(Code)
Creates the table if missing.



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.