Java Doc for BaseDiskTable.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) 


org.axiondb.engine.tables.AbstractBaseTable
   org.axiondb.engine.tables.BaseTable
      org.axiondb.engine.tables.BaseDiskTable

All known Subclasses:   org.axiondb.engine.tables.BaseFlatfileTable,  org.axiondb.engine.tables.DiskTable,
BaseDiskTable
abstract public class BaseDiskTable extends BaseTable implements Table(Code)
Abstract base disk-resident implementation of Table . BaseDiskTable manages the column meta-data for a disk-based table.
version:
   $Revision: 1.36 $ $Date: 2005/12/22 09:02:31 $
author:
   Chuck Burdick
author:
   Rodney Waldhoff
author:
   Ahimanikya Satapathy


Field Summary
final protected static  intCURRENT_META_VERSION
    
final protected static  StringFRID_FILE_EXT
    
protected static  AxionFileSystemFS
    
final protected static  StringINDICES_DIR_NAME
    
final protected static  longINVALID_OFFSET
    
final protected static  StringMETA_FILE_EXT
    
final protected static  StringPIDX_FILE_EXT
    
final protected static  StringSEQ_FILE_EXT
    
final protected static  StringTYPE_FILE_EXT
    
protected  File_dataFile
     The name of my ".data" file.
protected  File_dbdir
    
protected  IntList_freeIds
     List of free ids.
protected  boolean_readOnly
    
protected  int_rowCount
    

Constructor Summary
public  BaseDiskTable(String name, Database db, TableFactory factory)
    

Method Summary
public  voidaddColumn(Column col)
    
public  voidaddColumn(Column col, boolean metaUpdateNeeded)
    
public  voidaddConstraint(Constraint constraint)
    
public  voidapplyDeletes(IntCollection rowIds)
    
public  voidapplyInserts(RowCollection rows)
    
public  voidapplyUpdates(RowCollection rows)
    
public  voidcheckpoint()
    
protected  voidclearDataFileReference()
    
protected  voidcloseFiles()
    
protected  voidcreateOrLoadDataFile()
    
protected  voidcreateOrLoadFreeIdsFile()
    
public  voiddrop()
    
public  voidfreeRowId(int id)
    
abstract protected  FilegetDataFile()
    
protected  StringgetDefaultDataFileExtension()
    
protected synchronized  BufferedDataInputStreamgetInputStream()
    
abstract protected  FilegetLobDir()
    
public  intgetNextRowId()
    
protected synchronized  BufferedDataOutputStreamgetOutputStream()
    
protected  AxionFileSystem.PidxListgetPidxList()
    
protected  FilegetRootDir()
    
public  RowgetRow(int id)
    
abstract protected  RowgetRowByOffset(int idToAssign, long ptr)
    
public  intgetRowCount()
    
protected  RowIteratorgetRowIterator()
    
protected  FilegetTableFile(String extension)
    
protected  voidinitFiles(File basedir, boolean datafilesonly)
    
protected  voidinitializeRowCount()
    
protected  booleanisReadOnly()
    
protected  voidloadOrMigrateMetaFile(Database db)
    
public  voidmigrate(Database db)
    
protected synchronized  AxionFileSystem.PidxListparsePidxFile(File pidxFile)
    
protected  voidparseTableProperties(ObjectInputStream in)
    
public  voidpopulateIndex(Index index)
    
abstract protected  voidreloadFilesAfterTruncate()
    
public  voidremount(File newdir, boolean datafilesonly)
    
public  voidremoveIndex(Index index)
    
public  voidrename(String oldName, String newName)
    
protected  voidrenameTableFiles(String oldName, String name)
    
protected  voidresetLobColumns()
    
protected  voidsaveIndicesAfterTruncate()
    
public  voidsetSequence(Sequence seq)
    
public  voidshutdown()
    
public  voidtruncate()
    
protected  voidtryToRemove(RowIterator iter)
    
final protected  voidwriteFridFile()
    
protected  voidwriteMetaFile()
    
protected  voidwriteNameToFile(File file, Object obj)
    
abstract protected  voidwriteRow(BufferedDataOutputStream buffer, Row row)
    
protected  voidwriteTableProperties(ObjectOutputStream out)
    

Field Detail
CURRENT_META_VERSION
final protected static int CURRENT_META_VERSION(Code)



FRID_FILE_EXT
final protected static String FRID_FILE_EXT(Code)



FS
protected static AxionFileSystem FS(Code)



INDICES_DIR_NAME
final protected static String INDICES_DIR_NAME(Code)



INVALID_OFFSET
final protected static long INVALID_OFFSET(Code)



META_FILE_EXT
final protected static String META_FILE_EXT(Code)



PIDX_FILE_EXT
final protected static String PIDX_FILE_EXT(Code)



SEQ_FILE_EXT
final protected static String SEQ_FILE_EXT(Code)



TYPE_FILE_EXT
final protected static String TYPE_FILE_EXT(Code)



_dataFile
protected File _dataFile(Code)
The name of my ".data" file.



_dbdir
protected File _dbdir(Code)



_freeIds
protected IntList _freeIds(Code)
List of free ids.



_readOnly
protected boolean _readOnly(Code)



_rowCount
protected int _rowCount(Code)




Constructor Detail
BaseDiskTable
public BaseDiskTable(String name, Database db, TableFactory factory) throws AxionException(Code)




Method Detail
addColumn
public void addColumn(Column col) throws AxionException(Code)



addColumn
public void addColumn(Column col, boolean metaUpdateNeeded) throws AxionException(Code)



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



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



applyInserts
public void applyInserts(RowCollection rows) throws AxionException(Code)



applyUpdates
public void applyUpdates(RowCollection rows) throws AxionException(Code)



checkpoint
public void checkpoint() throws AxionException(Code)



clearDataFileReference
protected void clearDataFileReference()(Code)



closeFiles
protected void closeFiles()(Code)



createOrLoadDataFile
protected void createOrLoadDataFile() throws AxionException(Code)



createOrLoadFreeIdsFile
protected void createOrLoadFreeIdsFile() throws AxionException(Code)



drop
public void drop() throws AxionException(Code)



freeRowId
public void freeRowId(int id)(Code)



getDataFile
abstract protected File getDataFile()(Code)



getDefaultDataFileExtension
protected String getDefaultDataFileExtension()(Code)



getInputStream
protected synchronized BufferedDataInputStream getInputStream() throws AxionException(Code)



getLobDir
abstract protected File getLobDir()(Code)



getNextRowId
public int getNextRowId()(Code)



getOutputStream
protected synchronized BufferedDataOutputStream getOutputStream() throws AxionException(Code)



getPidxList
protected AxionFileSystem.PidxList getPidxList()(Code)



getRootDir
protected File getRootDir()(Code)



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



getRowByOffset
abstract protected Row getRowByOffset(int idToAssign, long ptr) throws AxionException(Code)



getRowCount
public int getRowCount()(Code)



getRowIterator
protected RowIterator getRowIterator() throws AxionException(Code)



getTableFile
protected File getTableFile(String extension)(Code)



initFiles
protected void initFiles(File basedir, boolean datafilesonly) throws AxionException(Code)



initializeRowCount
protected void initializeRowCount() throws AxionException(Code)



isReadOnly
protected boolean isReadOnly()(Code)



loadOrMigrateMetaFile
protected void loadOrMigrateMetaFile(Database db) throws AxionException(Code)



migrate
public void migrate(Database db) throws AxionException(Code)
Migrate from older version to newer version for this table



parsePidxFile
protected synchronized AxionFileSystem.PidxList parsePidxFile(File pidxFile) throws AxionException(Code)



parseTableProperties
protected void parseTableProperties(ObjectInputStream in) throws AxionException(Code)



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



reloadFilesAfterTruncate
abstract protected void reloadFilesAfterTruncate() throws AxionException(Code)



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



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



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



renameTableFiles
protected void renameTableFiles(String oldName, String name)(Code)



resetLobColumns
protected void resetLobColumns() throws AxionException(Code)



saveIndicesAfterTruncate
protected void saveIndicesAfterTruncate() throws AxionException(Code)



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



shutdown
public void shutdown() throws AxionException(Code)



truncate
public void truncate() throws AxionException(Code)



tryToRemove
protected void tryToRemove(RowIterator iter) throws AxionException(Code)



writeFridFile
final protected void writeFridFile() throws AxionException(Code)



writeMetaFile
protected void writeMetaFile() throws AxionException(Code)



writeNameToFile
protected void writeNameToFile(File file, Object obj) throws AxionException(Code)



writeRow
abstract protected void writeRow(BufferedDataOutputStream buffer, Row row) throws AxionException(Code)



writeTableProperties
protected void writeTableProperties(ObjectOutputStream out) throws AxionException(Code)



Methods inherited from org.axiondb.engine.tables.BaseTable
public void addColumn(Column col) throws AxionException(Code)(Java Doc)
public void addConstraint(Constraint constraint) throws AxionException(Code)(Java Doc)
public void addIndex(Index index) throws AxionException(Code)(Java Doc)
public void addRow(Row row) throws AxionException(Code)(Java Doc)
abstract public void applyDeletes(IntCollection rowids) throws AxionException(Code)(Java Doc)
protected void applyDeletesToIndices(IntCollection rowIds) throws AxionException(Code)(Java Doc)
abstract public void applyInserts(RowCollection rows) throws AxionException(Code)(Java Doc)
protected void applyInsertsToIndices(RowCollection rows) throws AxionException(Code)(Java Doc)
abstract public void applyUpdates(RowCollection rows) throws AxionException(Code)(Java Doc)
protected void applyUpdatesToIndices(RowCollection rows) throws AxionException(Code)(Java Doc)
public void checkpoint() throws AxionException(Code)(Java Doc)
final protected void clearCache()(Code)(Java Doc)
public void deleteRow(Row row) throws AxionException(Code)(Java Doc)
public void drop() throws AxionException(Code)(Java Doc)
abstract public void freeRowId(int id)(Code)(Java Doc)
final public Column getColumn(int index)(Code)(Java Doc)
public Column getColumn(String name)(Code)(Java Doc)
final public int getColumnCount()(Code)(Java Doc)
public List getColumnIdentifiers()(Code)(Java Doc)
public int getColumnIndex(String name) throws AxionException(Code)(Java Doc)
final public Constraint getConstraint(String name)(Code)(Java Doc)
public Iterator getConstraints()(Code)(Java Doc)
public Index getIndexForColumn(Column column)(Code)(Java Doc)
public RowIterator getIndexedRows(Selectable node, boolean readOnly) throws AxionException(Code)(Java Doc)
public RowIterator getIndexedRows(RowSource source, Selectable node, boolean readOnly) throws AxionException(Code)(Java Doc)
public Iterator getIndices()(Code)(Java Doc)
final public String getName()(Code)(Java Doc)
abstract public int getNextRowId()(Code)(Java Doc)
abstract public Row getRow(int id) throws AxionException(Code)(Java Doc)
abstract public int getRowCount()(Code)(Java Doc)
abstract protected RowIterator getRowIterator() throws AxionException(Code)(Java Doc)
public RowIterator getRowIterator(boolean readOnly) throws AxionException(Code)(Java Doc)
final public Sequence getSequence()(Code)(Java Doc)
final public String getType()(Code)(Java Doc)
public boolean hasColumn(ColumnIdentifier id)(Code)(Java Doc)
public boolean hasIndex(String name)(Code)(Java Doc)
public boolean isColumnIndexed(Column column)(Code)(Java Doc)
public boolean isPrimaryKeyConstraintExists(String columnName)(Code)(Java Doc)
public boolean isUniqueConstraintExists(String columnName)(Code)(Java Doc)
public RowDecorator makeRowDecorator()(Code)(Java Doc)
public TransactableTable makeTransactableTable()(Code)(Java Doc)
protected void notifyColumnsOfNewLobDir(File directory) throws AxionException(Code)(Java Doc)
abstract public void populateIndex(Index index) throws AxionException(Code)(Java Doc)
protected void readColumns(ObjectInputStream in) throws IOException, ClassNotFoundException(Code)(Java Doc)
protected void readConstraints(ObjectInputStream in, Database db) throws IOException, ClassNotFoundException, AxionException(Code)(Java Doc)
protected void recreateIndices() throws AxionException(Code)(Java Doc)
public void remount(File dir, boolean datafilesonly) throws AxionException(Code)(Java Doc)
public Constraint removeConstraint(String name)(Code)(Java Doc)
public void removeIndex(Index index) throws AxionException(Code)(Java Doc)
public void rename(String oldName, String newName) throws AxionException(Code)(Java Doc)
protected void setName(String name)(Code)(Java Doc)
public void setSequence(Sequence seq) throws AxionException(Code)(Java Doc)
protected void setType(String type)(Code)(Java Doc)
public void shutdown() throws AxionException(Code)(Java Doc)
public String toString()(Code)(Java Doc)
protected void truncateIndices() throws AxionException(Code)(Java Doc)
public void updateRow(Row oldrow, Row newrow) throws AxionException(Code)(Java Doc)
protected void writeColumns(ObjectOutputStream out) throws IOException(Code)(Java Doc)
protected void writeConstraints(ObjectOutputStream out) throws IOException(Code)(Java Doc)

Methods inherited from org.axiondb.engine.tables.AbstractBaseTable
protected void checkConstraints(RowEvent event, RowDecorator dec) throws AxionException(Code)(Java Doc)
protected void checkConstraints(RowEvent event, boolean deferred, RowDecorator dec) throws AxionException(Code)(Java Doc)
protected void checkConstraints(RowIterator oldRows, RowIterator newRows) throws AxionException(Code)(Java Doc)
public RowIterator getMatchingRows(List selectables, List values, boolean readOnly) throws AxionException(Code)(Java Doc)
protected boolean hasDeferredConstraint()(Code)(Java Doc)
protected boolean isDeferAll()(Code)(Java Doc)
public void migrate() throws AxionException(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.