Java Doc for Schema.java in  » Database-ORM » Torque » com » workingdogs » village » 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 ORM » Torque » com.workingdogs.village 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.workingdogs.village.Schema

Schema
final public class Schema (Code)
The Schema object represents the Columns in a database table. It contains a collection of Column objects.
author:
   Jon S. Stevens
author:
   John D. McNally
version:
   $Revision: 568 $



Constructor Summary
public  Schema()
    

Method Summary
 voidappendTableName(String app)
     Appends data to the tableName that this schema was first created with.
public  Stringattributes()
    
public  Columncolumn(int i)
    
public  Columncolumn(String colName)
    
public  String[]getAllTableNames()
    
public  ColumngetColumn(String colName)
    
public  ColumngetColumn(String tableName, String colName)
    
 Column[]getColumns()
    
public  StringgetTableName()
    
public  intindex(String colName)
     Gets the index position of a named column.
public  intindex(String tableName, String colName)
     Gets the index position of a named column.
public  booleanisSingleTable()
     Checks to see if this DataSet represents one table in the database.
public  intnumberOfColumns()
    
 voidpopulate(ResultSetMetaData meta, String tableName)
     Internal method which populates this Schema object with Columns.
public  Schemaschema(Connection conn, String tableName)
    
public synchronized  Schemaschema(Connection conn, String tableName, String columnsAttribute)
    
 voidsetAttributes(String attributes)
    
 voidsetTableName(String tableName)
    
public  StringtableName()
    
public  StringtoString()
    


Constructor Detail
Schema
public Schema()(Code)
A blank Schema object




Method Detail
appendTableName
void appendTableName(String app)(Code)
Appends data to the tableName that this schema was first created with.


Parameters:
  app - String to append to tableName
See Also:   TableDataSet.tableQualifier(java.lang.String)



attributes
public String attributes()(Code)
List of columns to select from the table the list of columns to select from the table



column
public Column column(int i) throws DataSetException(Code)
Returns the requested Column object at index i
Parameters:
  i - the requested column
exception:
  DataSetException -



column
public Column column(String colName) throws DataSetException(Code)
Returns the requested Column object by name
Parameters:
  colName - the requested column
exception:
  DataSetException -



getAllTableNames
public String[] getAllTableNames()(Code)
returns all table names that this Schema represents the table names that this Schema represents



getColumn
public Column getColumn(String colName) throws DataSetException(Code)
Returns the requested Column object by name
Parameters:
  colName - the requested column
exception:
  DataSetException -



getColumn
public Column getColumn(String tableName, String colName) throws DataSetException(Code)
Returns the requested Column object belonging to the specified table by name
Parameters:
  tableName -
Parameters:
  colName - the requested column, null if a column by the specified name does not exist.
exception:
  DataSetException -



getColumns
Column[] getColumns()(Code)
Returns an array of columns an array of columns



getTableName
public String getTableName() throws DataSetException(Code)
returns the table name that this Schema represents the table name that this Schema represents
throws:
  DataSetException - TODO: DOCUMENT ME!



index
public int index(String colName) throws DataSetException(Code)
Gets the index position of a named column. If multiple tables are represented and they have columns with the same name, this method returns the first one listed, if the table name is not specified.
Parameters:
  colName - the requested column index integer
exception:
  DataSetException -



index
public int index(String tableName, String colName) throws DataSetException(Code)
Gets the index position of a named column.
Parameters:
  tableName -
Parameters:
  colName - the requested column index integer
exception:
  DataSetException -



isSingleTable
public boolean isSingleTable()(Code)
Checks to see if this DataSet represents one table in the database. true if only one table is represented, false otherwise.



numberOfColumns
public int numberOfColumns()(Code)
Gets the number of columns in this Schema integer number of columns



populate
void populate(ResultSetMetaData meta, String tableName) throws SQLException, DataSetException(Code)
Internal method which populates this Schema object with Columns.
Parameters:
  meta - The meta data of the ResultSet used to build this Schema.
Parameters:
  tableName - The name of the table referenced in this schema, or null if unknown or multiple tables are involved.
exception:
  SQLException -
exception:
  DataSetException -



schema
public Schema schema(Connection conn, String tableName) throws SQLException, DataSetException(Code)
Creates a Schema with all columns
Parameters:
  conn -
Parameters:
  tableName - an instance of myself
exception:
  SQLException -
exception:
  DataSetException -



schema
public synchronized Schema schema(Connection conn, String tableName, String columnsAttribute) throws SQLException, DataSetException(Code)
Creates a Schema with the named columns in the columnsAttribute
Parameters:
  conn -
Parameters:
  tableName -
Parameters:
  columnsAttribute - an instance of myself
exception:
  SQLException -
exception:
  DataSetException -



setAttributes
void setAttributes(String attributes)(Code)
Sets the columns to select from the table
Parameters:
  attributes - comma separated list of column names



setTableName
void setTableName(String tableName)(Code)
Sets the table name that this Schema represents
Parameters:
  tableName -



tableName
public String tableName() throws DataSetException(Code)
returns the table name that this Schema represents the table name that this Schema represents
throws:
  DataSetException - TODO: DOCUMENT ME!



toString
public String toString()(Code)
This returns a representation of this Schema a string



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.