Java Doc for ExternalDatabaseTable.java in  » Database-DBMS » axion » org » axiondb » engine » tables » 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 DBMS » axion » org.axiondb.engine.tables 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.axiondb.engine.tables.ExternalDatabaseTable

ExternalDatabaseTable
public class ExternalDatabaseTable implements ExternalTable,TransactableTable(Code)
Base implementation of ExternalTable interface.

Example: create external table emp (lname varchar(80), sid integer(6), fname varchar(80), id integer(6) not null, dob timestamp(6)) organization (loadtype='remote' SERVER='myserver' REMOTETABLE='mytablename' SCHEMA='myschema' WHERE='id > 1000');

Note : We have tested this for Oracle 8i/9i/10g , SQL Server, Sybase and DB2.

version:
   $Revision: 1.27 $ $Date: 2006/01/10 21:02:36 $
author:
   Jonathan Giron
author:
   Rahul Dwivedi
author:
   Ahimanikya Satapathy
See Also:   org.axiondb.DatabaseLink




Constructor Summary
public  ExternalDatabaseTable(String name, Database db)
    

Method Summary
public  voidaddColumn(Column col)
     Add the given Column to this table.
public  voidaddConstraint(Constraint constraint)
    
public  voidaddConstraint(Constraint constraint, boolean checkExistingRows)
    
public  voidaddIndex(Index index)
    
public  voidaddRow(Row row)
    
public  voidaddTableModificationListener(TableModificationListener listener)
    
public  voidapply()
    
public  voidapplyDeletes(IntCollection rowIds)
    
public  voidapplyInserts(RowCollection rows)
    
public  voidapplyUpdates(RowCollection rows)
    
protected  voidcheckConstraints(RowEvent event)
    
public  voidcheckpoint()
    
public  voidcommit()
    
public  voiddeleteRow(Row row)
    
public  voiddrop()
    
public  voidfreeRowId(int id)
    
final public  ColumngetColumn(int index)
    
public  ColumngetColumn(String name)
    
final public  intgetColumnCount()
    
public  ListgetColumnIdentifiers()
    
public  intgetColumnIndex(String name)
    
final public  ConstraintgetConstraint(String name)
    
public  IteratorgetConstraints()
    
public  StringgetDBLinkName()
    
protected  StringgetDeleteSQL()
    
public  IndexgetIndexForColumn(Column column)
    
public  RowIteratorgetIndexedRows(RowSource source, Selectable node, boolean readOnly)
    
public  RowIteratorgetIndexedRows(Selectable node, boolean readOnly)
    
public  IteratorgetIndices()
    
protected  StringgetInsertSQL()
    
public  RowIteratorgetMatchingRows(List selectables, List values, boolean readOnly)
    
final public  StringgetName()
    
public  intgetNextRowId()
    
public  RowgetRow(int id)
    
public  intgetRowCount()
    
public  RowIteratorgetRowIterator(boolean readOnly)
    
protected  RowIteratorgetRowIterator()
    
protected  StringgetSchemaWildcardForRemoteDB()
     Gets appropriate string for use in indicating wildcard search for schemas.
protected  StringgetSelectSQL(String where)
    
final public  SequencegetSequence()
    
public  IteratorgetTableModificationListeners()
    
public  PropertiesgetTableProperties()
    
final public  StringgetType()
    
protected  StringgetUpdateSQL()
    
public  booleanhasColumn(ColumnIdentifier id)
    
public  booleanhasIndex(String name)
    
public  booleanisColumnIndexed(Column column)
    
public  booleanisPrimaryKeyConstraintExists(String columnName)
    
public  booleanisUniqueConstraintExists(String columnName)
    
public  booleanloadExternalTable(Properties props)
    
public  RowDecoratormakeRowDecorator()
    
public  TransactableTablemakeTransactableTable()
    
public  voidmigrate()
    
public  voidpopulateIndex(Index index)
    
public  voidremount()
    
public  voidremount(File dir, boolean datafilesonly)
    
public  ConstraintremoveConstraint(String name)
    
public  voidremoveIndex(Index index)
    
public  voidremoveTableModificationListener(TableModificationListener listener)
    
public  voidrename(String oldName, String newName)
    
public  voidrollback()
    
public  voidsetDeferAllConstraints(boolean deferAll)
    
public  voidsetSequence(Sequence seq)
    
protected  voidsetUp(DatabaseLink server)
    
public  voidshutdown()
    
public  StringtoString()
    
public  voidtruncate()
    
public  voidupdateRow(Row oldrow, Row newrow)
    
public  voidupdateRow(Row oldrow, Row newrow, List cols)
    


Constructor Detail
ExternalDatabaseTable
public ExternalDatabaseTable(String name, Database db)(Code)




Method Detail
addColumn
public void addColumn(Column col) throws AxionException(Code)
Add the given Column to this table. This implementation throws an AxionException if rows have already been added to the table.



addConstraint
public void addConstraint(Constraint constraint) throws AxionException(Code)



addConstraint
public void addConstraint(Constraint constraint, boolean checkExistingRows) throws AxionException(Code)



addIndex
public void addIndex(Index index) throws AxionException(Code)



addRow
public void addRow(Row row) throws AxionException(Code)



addTableModificationListener
public void addTableModificationListener(TableModificationListener listener)(Code)



apply
public void apply() throws AxionException(Code)



applyDeletes
public void applyDeletes(IntCollection rowIds) throws AxionException(Code)



applyInserts
public void applyInserts(RowCollection rows)(Code)



applyUpdates
public void applyUpdates(RowCollection rows)(Code)



checkConstraints
protected void checkConstraints(RowEvent event) throws AxionException(Code)



checkpoint
public void checkpoint() throws AxionException(Code)



commit
public void commit() throws AxionException(Code)



deleteRow
public void deleteRow(Row row) throws AxionException(Code)



drop
public void drop() throws AxionException(Code)



freeRowId
public void freeRowId(int id)(Code)



getColumn
final public Column getColumn(int index)(Code)



getColumn
public Column getColumn(String name)(Code)



getColumnCount
final public int getColumnCount()(Code)



getColumnIdentifiers
public List getColumnIdentifiers()(Code)



getColumnIndex
public int getColumnIndex(String name) throws AxionException(Code)



getConstraint
final public Constraint getConstraint(String name)(Code)



getConstraints
public Iterator getConstraints()(Code)



getDBLinkName
public String getDBLinkName()(Code)



getDeleteSQL
protected String getDeleteSQL()(Code)



getIndexForColumn
public Index getIndexForColumn(Column column)(Code)



getIndexedRows
public RowIterator getIndexedRows(RowSource source, Selectable node, boolean readOnly) throws AxionException(Code)



getIndexedRows
public RowIterator getIndexedRows(Selectable node, boolean readOnly) throws AxionException(Code)



getIndices
public Iterator getIndices()(Code)



getInsertSQL
protected String getInsertSQL()(Code)



getMatchingRows
public RowIterator getMatchingRows(List selectables, List values, boolean readOnly) throws AxionException(Code)



getName
final public String getName()(Code)



getNextRowId
public int getNextRowId()(Code)



getRow
public Row getRow(int id) throws AxionException(Code)



getRowCount
public int getRowCount()(Code)



getRowIterator
public RowIterator getRowIterator(boolean readOnly) throws AxionException(Code)



getRowIterator
protected RowIterator getRowIterator() throws AxionException(Code)



getSchemaWildcardForRemoteDB
protected String getSchemaWildcardForRemoteDB()(Code)
Gets appropriate string for use in indicating wildcard search for schemas. wildcard string.



getSelectSQL
protected String getSelectSQL(String where)(Code)



getSequence
final public Sequence getSequence()(Code)



getTableModificationListeners
public Iterator getTableModificationListeners()(Code)



getTableProperties
public Properties getTableProperties()(Code)



getType
final public String getType()(Code)



getUpdateSQL
protected String getUpdateSQL()(Code)



hasColumn
public boolean hasColumn(ColumnIdentifier id)(Code)



hasIndex
public boolean hasIndex(String name)(Code)



isColumnIndexed
public boolean isColumnIndexed(Column column)(Code)



isPrimaryKeyConstraintExists
public boolean isPrimaryKeyConstraintExists(String columnName)(Code)



isUniqueConstraintExists
public boolean isUniqueConstraintExists(String columnName)(Code)
check if unique constraint exists on a column
Parameters:
  columnName - name of the column true if uniqueConstraint exists on the column



loadExternalTable
public boolean loadExternalTable(Properties props) throws AxionException(Code)



makeRowDecorator
public RowDecorator makeRowDecorator()(Code)



makeTransactableTable
public TransactableTable makeTransactableTable()(Code)



migrate
public void migrate() throws AxionException(Code)



populateIndex
public void populateIndex(Index index) throws AxionException(Code)



remount
public void remount() throws AxionException(Code)



remount
public void remount(File dir, boolean datafilesonly) throws AxionException(Code)



removeConstraint
public Constraint removeConstraint(String name)(Code)



removeIndex
public void removeIndex(Index index) throws AxionException(Code)



removeTableModificationListener
public void removeTableModificationListener(TableModificationListener listener)(Code)



rename
public void rename(String oldName, String newName) throws AxionException(Code)



rollback
public void rollback() throws AxionException(Code)



setDeferAllConstraints
public void setDeferAllConstraints(boolean deferAll)(Code)



setSequence
public void setSequence(Sequence seq) throws AxionException(Code)



setUp
protected void setUp(DatabaseLink server) throws AxionException(Code)



shutdown
public void shutdown() throws AxionException(Code)



toString
public String toString()(Code)



truncate
public void truncate() throws AxionException(Code)



updateRow
public void updateRow(Row oldrow, Row newrow) throws AxionException(Code)



updateRow
public void updateRow(Row oldrow, Row newrow, List cols) throws AxionException(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.