Java Doc for BaseFlatfileTable.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
         org.axiondb.engine.tables.BaseFlatfileTable

All known Subclasses:   org.axiondb.engine.tables.TaggedEBCDICTable,  org.axiondb.engine.tables.DelimitedFlatfileTable,  org.axiondb.engine.tables.FixedWidthFlatfileTable,
BaseFlatfileTable
abstract public class BaseFlatfileTable extends BaseDiskTable implements ExternalTable(Code)
Base Flatfile Table
TODO: Support for decimal and thousand separator, trailing/leading minus sign TODO: Support for multiple record delimiter
author:
   Ahimanikya Satapathy
author:
   Jonathan Giron

Inner Class :abstract protected class BaseFlatfileTableOrganizationContext extends BaseTableOrganizationContext

Field Summary
final protected static  intEOF
    
final protected static  charFILLER
    
final public static  StringPROP_FILENAME
    
final protected static  StringPROP_ISFIRSTLINEHEADER
    
final protected static  StringPROP_MAXFAULTS
    
final protected static  StringPROP_RECORDDELIMITER
    
final protected static  StringPROP_ROWSTOSKIP
    
protected  String_fileName
    
protected  boolean_isFirstLineHeader
    
protected  String_lineSep
    
protected  long_maxFaults
    
protected  int_rowsToSkip
    
protected  TableOrganizationContextcontext
    

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

Method Summary
public  voidaddColumn(Column col, boolean metaUpdateNeeded)
    
public static  StringaddEscapeSequence(String srcString)
    
protected  voidcreateOrLoadDataFile()
    
protected  voidcreateOrLoadDataFile(boolean createNewDataFile)
    
protected  StringevaluateForNull(String colValue, DataType datatype)
    
public static  StringfixEscapeSequence(String srcString)
    
protected  FilegetDataFile()
    
protected  StringgetDefaultDataFileExtension()
    
protected  FilegetLobDir()
    
protected  longignoreRowsToSkip()
    
protected  voidinitializeTable()
    
protected  booleanisEOF(int nextChar)
    
abstract protected  booleanisEndOfRecord(int recLength, int nextChar, BufferedDataInputStream data)
    
protected  booleanisNullString(String str)
    
public  booleanloadExternalTable(Properties props)
     Loads external data using the given properties table - should be called only once by the table factory.
protected  intnextLineLength(long fileOffset)
    
protected  voidreloadFilesAfterTruncate()
    
public  voidremount()
    
protected synchronized  voidrenameTableFiles(String oldName, String name)
    
protected  RowtrySettingColumn(int idToAssign, Row row, int i, String colValue)
    
abstract protected  voidwriteHeader(BufferedDataOutputStream data2)
    

Field Detail
EOF
final protected static int EOF(Code)



FILLER
final protected static char FILLER(Code)



PROP_FILENAME
final public static String PROP_FILENAME(Code)



PROP_ISFIRSTLINEHEADER
final protected static String PROP_ISFIRSTLINEHEADER(Code)



PROP_MAXFAULTS
final protected static String PROP_MAXFAULTS(Code)



PROP_RECORDDELIMITER
final protected static String PROP_RECORDDELIMITER(Code)



PROP_ROWSTOSKIP
final protected static String PROP_ROWSTOSKIP(Code)



_fileName
protected String _fileName(Code)



_isFirstLineHeader
protected boolean _isFirstLineHeader(Code)



_lineSep
protected String _lineSep(Code)



_maxFaults
protected long _maxFaults(Code)



_rowsToSkip
protected int _rowsToSkip(Code)



context
protected TableOrganizationContext context(Code)




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




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



addEscapeSequence
public static String addEscapeSequence(String srcString)(Code)



createOrLoadDataFile
protected void createOrLoadDataFile() throws AxionException(Code)



createOrLoadDataFile
protected void createOrLoadDataFile(boolean createNewDataFile) throws AxionException(Code)



evaluateForNull
protected String evaluateForNull(String colValue, DataType datatype)(Code)



fixEscapeSequence
public static String fixEscapeSequence(String srcString)(Code)



getDataFile
protected File getDataFile()(Code)



getDefaultDataFileExtension
protected String getDefaultDataFileExtension()(Code)



getLobDir
protected File getLobDir()(Code)



ignoreRowsToSkip
protected long ignoreRowsToSkip() throws AxionException(Code)



initializeTable
protected void initializeTable() throws AxionException(Code)



isEOF
protected boolean isEOF(int nextChar)(Code)



isEndOfRecord
abstract protected boolean isEndOfRecord(int recLength, int nextChar, BufferedDataInputStream data) throws IOException(Code)



isNullString
protected boolean isNullString(String str)(Code)



loadExternalTable
public boolean loadExternalTable(Properties props) throws AxionException(Code)
Loads external data using the given properties table - should be called only once by the table factory.
Parameters:
  table - Table to be set
Parameters:
  props - Properties for Table
exception:
  AxionException - thrown while setting Properties



nextLineLength
protected int nextLineLength(long fileOffset) throws AxionException(Code)



reloadFilesAfterTruncate
protected void reloadFilesAfterTruncate() throws AxionException(Code)



remount
public void remount() throws AxionException(Code)



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



trySettingColumn
protected Row trySettingColumn(int idToAssign, Row row, int i, String colValue) throws AxionException(Code)



writeHeader
abstract protected void writeHeader(BufferedDataOutputStream data2) throws AxionException(Code)



Fields inherited from org.axiondb.engine.tables.BaseDiskTable
final protected static int CURRENT_META_VERSION(Code)(Java Doc)
final protected static String FRID_FILE_EXT(Code)(Java Doc)
protected static AxionFileSystem FS(Code)(Java Doc)
final protected static String INDICES_DIR_NAME(Code)(Java Doc)
final protected static long INVALID_OFFSET(Code)(Java Doc)
final protected static String META_FILE_EXT(Code)(Java Doc)
final protected static String PIDX_FILE_EXT(Code)(Java Doc)
final protected static String SEQ_FILE_EXT(Code)(Java Doc)
final protected static String TYPE_FILE_EXT(Code)(Java Doc)
protected File _dataFile(Code)(Java Doc)
protected File _dbdir(Code)(Java Doc)
protected IntList _freeIds(Code)(Java Doc)
protected boolean _readOnly(Code)(Java Doc)
protected int _rowCount(Code)(Java Doc)

Methods inherited from org.axiondb.engine.tables.BaseDiskTable
public void addColumn(Column col) throws AxionException(Code)(Java Doc)
public void addColumn(Column col, boolean metaUpdateNeeded) throws AxionException(Code)(Java Doc)
public void addConstraint(Constraint constraint) throws AxionException(Code)(Java Doc)
public void applyDeletes(IntCollection rowIds) throws AxionException(Code)(Java Doc)
public void applyInserts(RowCollection rows) throws AxionException(Code)(Java Doc)
public void applyUpdates(RowCollection rows) throws AxionException(Code)(Java Doc)
public void checkpoint() throws AxionException(Code)(Java Doc)
protected void clearDataFileReference()(Code)(Java Doc)
protected void closeFiles()(Code)(Java Doc)
protected void createOrLoadDataFile() throws AxionException(Code)(Java Doc)
protected void createOrLoadFreeIdsFile() throws AxionException(Code)(Java Doc)
public void drop() throws AxionException(Code)(Java Doc)
public void freeRowId(int id)(Code)(Java Doc)
abstract protected File getDataFile()(Code)(Java Doc)
protected String getDefaultDataFileExtension()(Code)(Java Doc)
protected synchronized BufferedDataInputStream getInputStream() throws AxionException(Code)(Java Doc)
abstract protected File getLobDir()(Code)(Java Doc)
public int getNextRowId()(Code)(Java Doc)
protected synchronized BufferedDataOutputStream getOutputStream() throws AxionException(Code)(Java Doc)
protected AxionFileSystem.PidxList getPidxList()(Code)(Java Doc)
protected File getRootDir()(Code)(Java Doc)
public Row getRow(int id) throws AxionException(Code)(Java Doc)
abstract protected Row getRowByOffset(int idToAssign, long ptr) throws AxionException(Code)(Java Doc)
public int getRowCount()(Code)(Java Doc)
protected RowIterator getRowIterator() throws AxionException(Code)(Java Doc)
protected File getTableFile(String extension)(Code)(Java Doc)
protected void initFiles(File basedir, boolean datafilesonly) throws AxionException(Code)(Java Doc)
protected void initializeRowCount() throws AxionException(Code)(Java Doc)
protected boolean isReadOnly()(Code)(Java Doc)
protected void loadOrMigrateMetaFile(Database db) throws AxionException(Code)(Java Doc)
public void migrate(Database db) throws AxionException(Code)(Java Doc)
protected synchronized AxionFileSystem.PidxList parsePidxFile(File pidxFile) throws AxionException(Code)(Java Doc)
protected void parseTableProperties(ObjectInputStream in) throws AxionException(Code)(Java Doc)
public void populateIndex(Index index) throws AxionException(Code)(Java Doc)
abstract protected void reloadFilesAfterTruncate() throws AxionException(Code)(Java Doc)
public void remount(File newdir, boolean datafilesonly) throws AxionException(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 renameTableFiles(String oldName, String name)(Code)(Java Doc)
protected void resetLobColumns() throws AxionException(Code)(Java Doc)
protected void saveIndicesAfterTruncate() throws AxionException(Code)(Java Doc)
public void setSequence(Sequence seq) throws AxionException(Code)(Java Doc)
public void shutdown() throws AxionException(Code)(Java Doc)
public void truncate() throws AxionException(Code)(Java Doc)
protected void tryToRemove(RowIterator iter) throws AxionException(Code)(Java Doc)
final protected void writeFridFile() throws AxionException(Code)(Java Doc)
protected void writeMetaFile() throws AxionException(Code)(Java Doc)
protected void writeNameToFile(File file, Object obj) throws AxionException(Code)(Java Doc)
abstract protected void writeRow(BufferedDataOutputStream buffer, Row row) throws AxionException(Code)(Java Doc)
protected void writeTableProperties(ObjectOutputStream out) throws AxionException(Code)(Java Doc)

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.