Java Doc for FlatfileDBTableImpl.java in  » IDE-Netbeans » etl.project » org » netbeans » modules » mashup » db » model » impl » 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 » IDE Netbeans » etl.project » org.netbeans.modules.mashup.db.model.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.netbeans.modules.sql.framework.model.impl.AbstractDBTable
   org.netbeans.modules.mashup.db.model.impl.FlatfileDBTableImpl

FlatfileDBTableImpl
public class FlatfileDBTableImpl extends AbstractDBTable implements FlatfileDBTable,Cloneable,Comparable(Code)
Reference implementation for interface org.netbeans.modules.etl.model.DBTable
author:
   Jonathan Giron
author:
   Girish Patil
author:
   Ahimanikya Satapathy
version:
   $Revision$



Constructor Summary
public  FlatfileDBTableImpl()
    
public  FlatfileDBTableImpl(DBTable src)
     Creates a new instance of FlatfileDBTableImpl, cloning the contents of the given DBTable implementation instance.
public  FlatfileDBTableImpl(FlatfileDBTable src)
     Creates a new instance of FlatfileDBTableImpl, cloning the contents of the given FlatfileDBTable implementation instance.
public  FlatfileDBTableImpl(String aName)
    
public  FlatfileDBTableImpl(String aName, String aSchema, String aCatalog)
     Creates a new instance of FlatfileDBTableImpl with the given name.

Method Summary
public  booleanaddColumn(SQLDBColumn theColumn)
     Adds a DBColumn instance to this table.
Parameters:
  theColumn - column to be added.
public  Objectclone()
     Clone a deep copy of DBTable.
public  intcompareTo(Object refObj)
     Compares DBTable with another object for lexicographical ordering.
public  voidcopyFrom(DBTable source)
     Performs deep copy of contents of given DBTable.
public  voidcopyFrom(FlatfileDBTable source)
     Performs deep copy of contents of given FlatfileDBTable.
public  FlatfileDBColumncreateColumn(String columnName, int jdbcType, int scale, int precision, boolean isPK, boolean isFK, boolean isIndexed, boolean nullable)
     Convenience class to create FlatfileDBColumnImpl instance (with the given column name, data source name, JDBC type, scale, precision, and nullable), and add it to this FlatfileDBTableImpl instance.
protected  voiddeepCopyReferences(DBTable source)
     Perform deep copy of columns.
public  booleanequals(Object obj)
     Overrides default implementation to return value based on memberwise comparison.
public  StringgetCatalog()
    
public  StringgetCreateStatementSQL()
    
public  StringgetCreateStatementSQL(SQLDBTable table)
     Gets the SQL create statement to create a text table representing this flatfile.
public static  StringgetCreateStatementSQL(SQLDBTable table, String generatedName)
     Gets the SQL create statement to create a text table representing this flatfile.
public  StringgetCreateStatementSQL(String directory, String theTableName, String runtimeName, boolean isDynamicFilePath, boolean createDataFileIfNotExist)
     Gets the SQL create statement to create a text table representing this flatfile.
public  StringgetDropStatementSQL()
    
public static  StringgetDropStatementSQL(String generatedTableName)
    
public static  StringgetDropStatementSQL(SQLDBTable table)
     Gets the SQL Drop statement to drop the text table representing this flatfile.
protected  StringgetElementTagName()
    
public  StringgetEncodingScheme()
     Gets the encoding scheme.
public  StringgetFileName()
     Gets the file name.
public  StringgetFlatfilePropertiesSQL()
    
public  StringgetLocalFilePath()
     Gets local path to sample file.
public  StringgetParserType()
     Gets parse type, if any, associated with this flatfile.
public  MapgetProperties()
    
public  StringgetProperty(String key)
     Gets property string associated with the given name.
public  StringgetSchema()
    
public  StringgetSelectStatementSQL(int rows)
     Gets the SQL select statement to retrieve a result set displaying this file's contents, using the given value as a limit to the number of rows returned.
public  StringgetTableName()
     Gets the table name.
public  inthashCode()
     Overrides default implementation to compute hashCode value for those members used in equals() for comparison.
protected  voidparseChildren(NodeList childNodeList)
    
protected  voidparseColumns(Element mapNode)
    
protected  voidparseProperties(Element mapNode)
    
public  voidparseXML(Element xmlElement)
    
public  voidsetEncodingScheme(String newEncoding)
     Sets the encoding scheme.
public  voidsetFileName(String newName)
     Sets the file name.
public  voidsetLocalFilePath(File localFile)
     Sets local path to sample file.
Parameters:
  localFile - File representing path to sample file.
public  voidsetOrPutProperty(String key, Object value)
    
public  voidsetParseType(String type)
     Sets MutableParseConfigurator instance associated with this flatfile.
public  voidsetProperties(Map newProps)
    
public  booleansetProperty(String key, Object value)
     Sets the property associated with the given String key to the given value.
 voidsetTableDefinition(Map props)
    
public  StringtoString()
     Overrides default implementation to return fully-qualified name of this DBTable (including name of parent DatabaseModel).
public  StringtoXMLString(String prefix)
     Marshall this object to XML string.
public  StringtoXMLString(String prefix, boolean tableOnly)
    
public  voidupdateProperties(Map newProps)
    


Constructor Detail
FlatfileDBTableImpl
public FlatfileDBTableImpl()(Code)



FlatfileDBTableImpl
public FlatfileDBTableImpl(DBTable src)(Code)
Creates a new instance of FlatfileDBTableImpl, cloning the contents of the given DBTable implementation instance.
Parameters:
  src - DBTable instance to be cloned



FlatfileDBTableImpl
public FlatfileDBTableImpl(FlatfileDBTable src)(Code)
Creates a new instance of FlatfileDBTableImpl, cloning the contents of the given FlatfileDBTable implementation instance.
Parameters:
  src - FlatfileDBTable instance to be cloned



FlatfileDBTableImpl
public FlatfileDBTableImpl(String aName)(Code)



FlatfileDBTableImpl
public FlatfileDBTableImpl(String aName, String aSchema, String aCatalog)(Code)
Creates a new instance of FlatfileDBTableImpl with the given name.
Parameters:
  aName - name of new DBTable instance
Parameters:
  aSchema - schema of new DBTable instance; may be null
Parameters:
  aCatalog - catalog of new DBTable instance; may be null




Method Detail
addColumn
public boolean addColumn(SQLDBColumn theColumn)(Code)
Adds a DBColumn instance to this table.
Parameters:
  theColumn - column to be added. true if successful. false if failed.



clone
public Object clone()(Code)
Clone a deep copy of DBTable. a copy of DBTable.



compareTo
public int compareTo(Object refObj)(Code)
Compares DBTable with another object for lexicographical ordering. Null objects and those DBTables with null names are placed at the end of any ordered collection using this method.
Parameters:
  refObj - Object to be compared. -1 if the column name is less than obj to be compared. 0 if the column nameis the same. 1 if the column name is greater than obj to be compared.



copyFrom
public void copyFrom(DBTable source)(Code)
Performs deep copy of contents of given DBTable. We deep copy (that is, the method clones all child objects such as columns) because columns have a parent-child relationship that must be preserved internally.
Parameters:
  source - DBTable providing contents to be copied.



copyFrom
public void copyFrom(FlatfileDBTable source)(Code)
Performs deep copy of contents of given FlatfileDBTable. We deep copy (that is, the method clones all child objects such as columns) because columns have a parent-child relationship that must be preserved internally.
Parameters:
  source - FlatfileDBTable providing contents to be copied.



createColumn
public FlatfileDBColumn createColumn(String columnName, int jdbcType, int scale, int precision, boolean isPK, boolean isFK, boolean isIndexed, boolean nullable)(Code)
Convenience class to create FlatfileDBColumnImpl instance (with the given column name, data source name, JDBC type, scale, precision, and nullable), and add it to this FlatfileDBTableImpl instance.
Parameters:
  columnName - Column name
Parameters:
  jdbcType - JDBC type defined in SQL.Types
Parameters:
  scale - Scale
Parameters:
  precision - Precision
Parameters:
  isPK - true if part of primary key, false otherwise
Parameters:
  isFK - true if part of foreign key, false otherwise
Parameters:
  isIndexed - true if indexed, false otherwise
Parameters:
  nullable - Nullable new FlatfileDBColumnImpl instance



deepCopyReferences
protected void deepCopyReferences(DBTable source)(Code)
Perform deep copy of columns.
Parameters:
  source - ETLTable whose columns are to be copied.



equals
public boolean equals(Object obj)(Code)
Overrides default implementation to return value based on memberwise comparison.
Parameters:
  obj - Object against which we compare this instance true if obj is functionally identical to this ETLTable instance; falseotherwise



getCatalog
public String getCatalog()(Code)

See Also:   org.netbeans.modules.model.database.DBTable.getCatalog



getCreateStatementSQL
public String getCreateStatementSQL()(Code)
Gets the Create Statement SQL for creating table for a flat file SQL for this Flatfile with getTableName()



getCreateStatementSQL
public String getCreateStatementSQL(SQLDBTable table)(Code)
Gets the SQL create statement to create a text table representing this flatfile.
Parameters:
  table - to use in synthesizing the create statement; if null,the current table name yielded by getName() will be used SQL statement to create a text table representing the contents of thisflatfile



getCreateStatementSQL
public static String getCreateStatementSQL(SQLDBTable table, String generatedName)(Code)
Gets the SQL create statement to create a text table representing this flatfile.
Parameters:
  table - to use in synthesizing the create statement; if null,the current table name yielded by getName() will be used SQL statement to create a text table representing the contents of thisflatfile



getCreateStatementSQL
public String getCreateStatementSQL(String directory, String theTableName, String runtimeName, boolean isDynamicFilePath, boolean createDataFileIfNotExist)(Code)
Gets the SQL create statement to create a text table representing this flatfile. SQL statement to create a text table representing the contents of thisflatfile



getDropStatementSQL
public String getDropStatementSQL()(Code)



getDropStatementSQL
public static String getDropStatementSQL(String generatedTableName)(Code)



getDropStatementSQL
public static String getDropStatementSQL(SQLDBTable table)(Code)
Gets the SQL Drop statement to drop the text table representing this flatfile.
Parameters:
  table - table to use in synthesizing the drop statement; if null,uses the value yielded by getName() SQLstatement to drop a text table representing the contents of thisflatfile



getElementTagName
protected String getElementTagName()(Code)



getEncodingScheme
public String getEncodingScheme()(Code)
Gets the encoding scheme. encoding scheme



getFileName
public String getFileName()(Code)
Gets the file name. file name



getFlatfilePropertiesSQL
public String getFlatfilePropertiesSQL()(Code)



getLocalFilePath
public String getLocalFilePath()(Code)
Gets local path to sample file. path (in local workstation file system) to file, excluding the filename.



getParserType
public String getParserType()(Code)
Gets parse type, if any, associated with this flatfile. To set this type, call setParseConfigurator with an appropriate ParseConfigurator instance from the ParseConfiguratorFactory. String representing parse type, or null if none has been defined for thisflatfile.



getProperties
public Map getProperties()(Code)



getProperty
public String getProperty(String key)(Code)
Gets property string associated with the given name.
Parameters:
  key - property key property associated with propName, or null if no such property exists.



getSchema
public String getSchema()(Code)

See Also:   org.netbeans.modules.model.database.DBTable.getSchema



getSelectStatementSQL
public String getSelectStatementSQL(int rows)(Code)
Gets the SQL select statement to retrieve a result set displaying this file's contents, using the given value as a limit to the number of rows returned.
Parameters:
  rowCount - number of rows to display; 0 returns all available rows SQL statement to select the contents of this file in the column orderspecified by this instance's FlatfileFields.



getTableName
public String getTableName()(Code)
Gets the table name. Table name



hashCode
public int hashCode()(Code)
Overrides default implementation to compute hashCode value for those members used in equals() for comparison. hash code for this object
See Also:   java.lang.Object.hashCode



parseChildren
protected void parseChildren(NodeList childNodeList) throws BaseException(Code)



parseColumns
protected void parseColumns(Element mapNode) throws BaseException(Code)



parseProperties
protected void parseProperties(Element mapNode)(Code)



parseXML
public void parseXML(Element xmlElement) throws BaseException(Code)



setEncodingScheme
public void setEncodingScheme(String newEncoding)(Code)
Sets the encoding scheme.
Parameters:
  newEncoding - encoding scheme



setFileName
public void setFileName(String newName)(Code)
Sets the file name.
Parameters:
  newName - new file name



setLocalFilePath
public void setLocalFilePath(File localFile)(Code)
Sets local path to sample file.
Parameters:
  localFile - File representing path to sample file. If localFile represents thefile itself, only the directory path will be stored.



setOrPutProperty
public void setOrPutProperty(String key, Object value)(Code)



setParseType
public void setParseType(String type)(Code)
Sets MutableParseConfigurator instance associated with this flatfile.
Parameters:
  newConfig - new MutableParseConfigurator to associate



setProperties
public void setProperties(Map newProps)(Code)



setProperty
public boolean setProperty(String key, Object value)(Code)
Sets the property associated with the given String key to the given value.
Parameters:
  key - key whose associated value is sought
Parameters:
  value - to associate with key



setTableDefinition
void setTableDefinition(Map props)(Code)



toString
public String toString()(Code)
Overrides default implementation to return fully-qualified name of this DBTable (including name of parent DatabaseModel). table name.



toXMLString
public String toXMLString(String prefix) throws BaseException(Code)
Marshall this object to XML string.
Parameters:
  prefix - XML string



toXMLString
public String toXMLString(String prefix, boolean tableOnly) throws BaseException(Code)



updateProperties
public void updateProperties(Map newProps)(Code)



Fields inherited from org.netbeans.modules.sql.framework.model.impl.AbstractDBTable
final protected static String ATTR_COMMIT_BATCH_SIZE(Code)(Java Doc)
final protected static String CATALOG_NAME_ATTR(Code)(Java Doc)
final protected static String DB_TABLE_REF(Code)(Java Doc)
final protected static String DISPLAY_NAME_ATTR(Code)(Java Doc)
final protected static String ID_ATTR(Code)(Java Doc)
final protected static String INDENT(Code)(Java Doc)
final protected static int INIT_XMLBUF_SIZE(Code)(Java Doc)
final protected static String MODEL_NAME_TAG(Code)(Java Doc)
final protected static String SCHEMA_NAME_ATTR(Code)(Java Doc)
final protected static String TABLE_NAME_ATTR(Code)(Java Doc)
protected boolean aliasUsed(Code)(Java Doc)
protected String catalog(Code)(Java Doc)
protected Map<String, DBColumn> columns(Code)(Java Doc)
protected String description(Code)(Java Doc)
protected boolean editable(Code)(Java Doc)
protected Map<String, ForeignKey> foreignKeys(Code)(Java Doc)
protected GUIInfo guiInfo(Code)(Java Doc)
protected Map<String, Index> indexes(Code)(Java Doc)
protected String name(Code)(Java Doc)
protected boolean overrideCatalogName(Code)(Java Doc)
protected boolean overrideSchemaName(Code)(Java Doc)
protected String overridenCatalogName(Code)(Java Doc)
protected String overridenSchemaName(Code)(Java Doc)
protected DatabaseModel parentDBModel(Code)(Java Doc)
protected PrimaryKeyImpl primaryKey(Code)(Java Doc)
protected String schema(Code)(Java Doc)
protected boolean selected(Code)(Java Doc)

Methods inherited from org.netbeans.modules.sql.framework.model.impl.AbstractDBTable
public boolean addColumn(SQLDBColumn theColumn)(Code)(Java Doc)
public boolean addForeignKey(ForeignKeyImpl newFk)(Code)(Java Doc)
public boolean addIndex(IndexImpl newIndex)(Code)(Java Doc)
public void clearForeignKeys()(Code)(Java Doc)
public void clearIndexes()(Code)(Java Doc)
public void clearOverride(boolean clearCatalogOverride, boolean clearSchemaOverride)(Code)(Java Doc)
public int compareTo(Object refObj)(Code)(Java Doc)
public void copyFrom(DBTable source)(Code)(Java Doc)
protected void deepCopyReferences(DBTable source)(Code)(Java Doc)
public boolean deleteAllColumns()(Code)(Java Doc)
public boolean deleteColumn(String columnName)(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public String getAliasName()(Code)(Java Doc)
public int getBatchSize()(Code)(Java Doc)
public String getCatalog()(Code)(Java Doc)
public List<DBColumn> getChildSQLObjects()(Code)(Java Doc)
public DBColumn getColumn(String columnName)(Code)(Java Doc)
public List<DBColumn> getColumnList()(Code)(Java Doc)
public Map<String, DBColumn> getColumns()(Code)(Java Doc)
public String getDescription()(Code)(Java Doc)
public String getDisplayName()(Code)(Java Doc)
protected String getElementTagName()(Code)(Java Doc)
public String getFlatFileLocationRuntimeInputName()(Code)(Java Doc)
public ForeignKey getForeignKey(String fkName)(Code)(Java Doc)
public List<ForeignKey> getForeignKeys()(Code)(Java Doc)
public String getFullyQualifiedName()(Code)(Java Doc)
public GUIInfo getGUIInfo()(Code)(Java Doc)
public Index getIndex(String indexName)(Code)(Java Doc)
public List<Index> getIndexes()(Code)(Java Doc)
public synchronized String getName()(Code)(Java Doc)
public SQLObject getObject(String objectId)(Code)(Java Doc)
public DatabaseModel getParent()(Code)(Java Doc)
public PrimaryKey getPrimaryKey()(Code)(Java Doc)
public String getQualifiedName()(Code)(Java Doc)
public ForeignKey getReferenceFor(DBTable target)(Code)(Java Doc)
public Set getReferencedTables()(Code)(Java Doc)
public String getRuntimeArgumentName()(Code)(Java Doc)
public String getSchema()(Code)(Java Doc)
public String getStagingTableName()(Code)(Java Doc)
public String getTablePrefix()(Code)(Java Doc)
public String getUniqueTableName()(Code)(Java Doc)
public String getUserDefinedCatalogName()(Code)(Java Doc)
public String getUserDefinedSchemaName()(Code)(Java Doc)
public String getUserDefinedTableName()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public boolean isAliasUsed()(Code)(Java Doc)
public boolean isEditable()(Code)(Java Doc)
public boolean isInputStatic(String inputName)(Code)(Java Doc)
public boolean isSelected()(Code)(Java Doc)
public boolean isUsingFullyQualifiedName()(Code)(Java Doc)
public void overrideCatalogName(String nName)(Code)(Java Doc)
public void overrideSchemaName(String nName)(Code)(Java Doc)
protected void parseChildren(NodeList childNodeList) throws BaseException(Code)(Java Doc)
public void parseXML(Element tableElement) throws BaseException(Code)(Java Doc)
public boolean references(DBTable pkTarget)(Code)(Java Doc)
public boolean removeForeignKey(ForeignKeyImpl oldKey)(Code)(Java Doc)
public void setAliasName(String aName)(Code)(Java Doc)
public void setAliasUsed(boolean aliasUsed)(Code)(Java Doc)
public boolean setAllColumns(Map<String, DBColumn> theColumns)(Code)(Java Doc)
public void setBatchSize(int newSize)(Code)(Java Doc)
public void setCatalog(String newCatalog)(Code)(Java Doc)
protected void setDefaultAttributes()(Code)(Java Doc)
public void setDescription(String newDesc)(Code)(Java Doc)
public void setEditable(boolean edit)(Code)(Java Doc)
public void setFlatFileLocationRuntimeInputName(String runtimeArgName)(Code)(Java Doc)
public void setForeignKeyMap(Map<String, ForeignKey> fkMap)(Code)(Java Doc)
public void setName(String newName)(Code)(Java Doc)
public void setParent(SQLDBModel newParent)(Code)(Java Doc)
public boolean setPrimaryKey(PrimaryKeyImpl newPk)(Code)(Java Doc)
public void setSchema(String newSchema)(Code)(Java Doc)
public void setSelected(boolean sel)(Code)(Java Doc)
public void setStagingTableName(String stName)(Code)(Java Doc)
public void setTablePrefix(String tPrefix)(Code)(Java Doc)
public void setUserDefinedCatalogName(String newName)(Code)(Java Doc)
public void setUserDefinedSchemaName(String newName)(Code)(Java Doc)
public void setUserDefinedTableName(String newName)(Code)(Java Doc)
public void setUsingFullyQualifiedName(boolean usesFullName)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public String toXMLString(String prefix) throws BaseException(Code)(Java Doc)
public String toXMLString(String prefix, boolean tableOnly) throws BaseException(Code)(Java Doc)

w_ww.__j__a___v_a_2_s_.___c_o__m___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.