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


java.lang.Object
   org.netbeans.modules.sql.framework.model.impl.SQLDefinitionImpl

SQLDefinitionImpl
public class SQLDefinitionImpl implements SQLDefinition,Serializable(Code)
Implements SQLDefinition.
author:
   Ahimanikya Satapathy

Inner Class :class SecondParseObjectInfo

Field Summary
final protected static  StringTAG_DEFINITION
    
protected  Map<String, Attribute>attributes
    

Constructor Summary
public  SQLDefinitionImpl()
     Creates a new default instance of SQLDefinitionImpl.
public  SQLDefinitionImpl(Element xmlElement)
     Creates a new instance of SQLDefinitionImpl, parsing the given DOM Element to retrieve its contents.
public  SQLDefinitionImpl(Element xmlElement, SQLFrameworkParentObject parent)
     Creates a new instance of SQLDefinitionImpl, parsing the given DOM Element to retrieve its contents.
public  SQLDefinitionImpl(String aDisplayName)
     Creates a new instance of SQLDefinitionImpl with the given display name.

Method Summary
public  voidaddObject(SQLObject newObject)
     Adds given SQLObject instance to this SQLDefinition.
public synchronized  voidaddSQLObjectListener(SQLObjectListener listener)
    
public  voidaddSecondPassSQLObject(SQLObject sqlObj, Element element)
    
public  List<ValidationInfo>badgeValidate()
     validate the definition starting from the target tables.
public  voidclearOverride(boolean clearCatalogOverride, boolean clearSchemaOverride)
    
public  ObjectcloneSQLObject()
    
public  SQLObjectcreateObject(String objTag)
     Creates a new SQLObject instance of the given type.
public  SQLObjectcreateSQLObject(String className)
     Creates a new SQLObject instance of the given type.
public  booleanequals(Object o)
     Overrides default implementation to determine value based on any associated attributes as well as values of non-transient member variables.
public  StringgenerateId()
    
public  List<SQLDBModel>getAllDatabases()
     Gets List of all Databases associated with this model.
public  Collection<SQLObject>getAllObjects()
     Gets Collection of all SQLObjects in this model.
public  AttributegetAttribute(String attrName)
    
public  Collection<String>getAttributeNames()
    
public  ObjectgetAttributeValue(String attrName)
    
public  StringgetDBWorkingFolder()
    
public  StringgetDbInstanceName()
    
public  StringgetDisplayName()
     Gets display name.
public  IntegergetExecutionStrategyCode()
    
public  StringgetExecutionStrategyStr()
    
public  List<DBTable>getJoinSources()
    
public  SQLObjectgetObject(String objectId, int type)
     Gets associated SQLObject instance, if any, with the given object ID.
public  CollectiongetObjectsOfType(int type)
     Gets Collection of SQLObjects matching the given object type.
public  ObjectgetParent()
    
public  SQLObjectgetRootJoin(List<DBTable> sourceTables)
    
public  Collection<SQLObject>getRootJoins(int type)
     Gets Collection of SQLJoinOperators representing "root" joins for this model.
public  RuntimeDatabaseModelgetRuntimeDbModel()
    
public  List<SQLFilter>getSQLFilterFor(SourceColumn sColumn)
     Given a column find out the filters when the given column is used in left or right of it.
public  SQLFrameworkParentObjectgetSQLFrameworkParentObject()
    
public  List<DBColumn>getSourceColumns()
     Gets List of source columns associated with source tables of this model.
public  List<SQLDBModel>getSourceDatabaseModels()
     Gets List of source DatabaseModels associated with this model.
public  List<DBTable>getSourceTables()
     Gets List of source tables participating in this model.
public  StringgetTagName()
    
public  List<DBColumn>getTargetColumns()
     Gets List of target columns associated with target tables of this model.
public  List<SQLDBModel>getTargetDatabaseModels()
     Gets List of target DatabaseModels associated with this model.
public  List<DBTable>getTargetTables()
     Gets List of target tables participating in this model.
public  StringgetVersion()
    
public  booleanhasValidationConditions()
    
public  inthashCode()
     Overrides default implementation to compute hashcode based on any associated attributes as well as values of non-transient member variables.
protected  voidinit()
    
public  booleanisContainsJavaOperators()
     Check if a java operator is used in the model.
 booleanisIdExists(String id)
    
public  ObjectisTableExists(DBTable table)
    
public  voidmigrateFromOlderVersions()
    
public  voidoverrideCatalogNamesForDb(Map overrideMapMap)
    
public  voidoverrideSchemaNamesForDb(Map overrideMapMap)
    
public  voidparseXML(Element xmlElement)
     Parses the XML content, if any, using the given Element as a source for reconstituting the member variables and collections of this instance.
public  voidremoveAllObjects()
    
public  voidremoveObject(SQLObject sqlObj)
     Removes given SQLObject instance from this SQLDefinition.
public  voidremoveObjects(Collection sqlObjs)
     Removes given SQLObjects from SQLDefinition collection.
public synchronized  voidremoveSQLObjectListener(SQLObjectListener listener)
    
public  booleanrequiresPipelineProcess()
     check if we have to use axion database if definition contains a java operator or there is a validation condition on one of source tables.
public  voidsetAttribute(String attrName, Object val)
    
public  voidsetContainsJavaOperators(boolean javaOp)
    
public  voidsetDbInstanceName(String dbInstanceName)
    
public  voidsetDisplayName(String newName)
     Sets display name to given value.
public  voidsetExecutionStrategyCode(Integer code)
    
public  voidsetExecutionStrategyStr(String text)
    
public  voidsetParent(Object newParent)
    
public  voidsetSQLFrameworkParentObject(SQLFrameworkParentObject aParent)
    
protected  voidsetSQLObjectProperties(SQLObject obj)
    
public  voidsetVersion(String newVersion)
    
public  voidsetWorkingFolder(String appDataRoot)
    
protected  StringtoXMLAttributeTags(String prefix)
     Generates XML elements representing this object's associated attributes.
protected  StringtoXMLExtra(String prefix)
     Provides a way for child classes to write out their own XML elements.
public  StringtoXMLString()
     Gets the XML representation of this SQLDefinition.
public  StringtoXMLString(String prefix)
     Gets the XML representation of this SQLDefinition, using the given String as a prefix for individual XML elements.
Parameters:
  prefix - indent string to prefix each element in the xml document.
public  List<ValidationInfo>validate()
     validate the definition starting from the target tables.
public  List<ValidationInfo>validateDbDrivers()
     Validates if the Database drivers required for this SQLDefinition are already installed in Database Explorer.
public  List<ValidationInfo>validateDbSynchronization()
     Validate Database synchronization.
public  voidvisit(SQLVisitor visitor)
    

Field Detail
TAG_DEFINITION
final protected static String TAG_DEFINITION(Code)
TAG_DEFINITION is the tag for an SQL definition



attributes
protected Map<String, Attribute> attributes(Code)
Map of attributes; used by concrete implementations to store class-specific fields without hard coding them as member variables




Constructor Detail
SQLDefinitionImpl
public SQLDefinitionImpl()(Code)
Creates a new default instance of SQLDefinitionImpl.



SQLDefinitionImpl
public SQLDefinitionImpl(Element xmlElement) throws BaseException(Code)
Creates a new instance of SQLDefinitionImpl, parsing the given DOM Element to retrieve its contents.
Parameters:
  xmlElement - DOM element containing content information
exception:
  BaseException - if error occurs while parsing



SQLDefinitionImpl
public SQLDefinitionImpl(Element xmlElement, SQLFrameworkParentObject parent) throws BaseException(Code)
Creates a new instance of SQLDefinitionImpl, parsing the given DOM Element to retrieve its contents.
Parameters:
  xmlElement - DOM element containing content information
exception:
  BaseException - if error occurs while parsing



SQLDefinitionImpl
public SQLDefinitionImpl(String aDisplayName)(Code)
Creates a new instance of SQLDefinitionImpl with the given display name.
Parameters:
  aDisplayName - for this




Method Detail
addObject
public void addObject(SQLObject newObject) throws BaseException(Code)
Adds given SQLObject instance to this SQLDefinition.
Parameters:
  newObject - new instance to add
throws:
  BaseException - if add fails or instance implements an unrecognized objecttype.



addSQLObjectListener
public synchronized void addSQLObjectListener(SQLObjectListener listener)(Code)
add an SQL object listener
Parameters:
  listener - SQL object listener



addSecondPassSQLObject
public void addSecondPassSQLObject(SQLObject sqlObj, Element element)(Code)
Add SecondPass SQLObject to list
Parameters:
  sqlObj - to be added
Parameters:
  element - xmlElement of SQLObject



badgeValidate
public List<ValidationInfo> badgeValidate()(Code)
validate the definition starting from the target tables. Map of invalid input object as keys and reason as value



clearOverride
public void clearOverride(boolean clearCatalogOverride, boolean clearSchemaOverride)(Code)



cloneSQLObject
public Object cloneSQLObject() throws CloneNotSupportedException(Code)
all sql objects are cloneable



createObject
public SQLObject createObject(String objTag) throws BaseException(Code)
Creates a new SQLObject instance of the given type. Does not add the the vended SQLObject to this SQLDefinition, although it does set its parent reference to this. To correctly associate the returned SQLObject instance with this instance, the calling method should call addSQLObject(SQLObject).
Parameters:
  objTag - objTag of object to create new SQLObject instance
throws:
  BaseException - if error occurs during creation
See Also:   SQLDefinitionImpl.addObject(SQLObject)



createSQLObject
public SQLObject createSQLObject(String className) throws BaseException(Code)
Creates a new SQLObject instance of the given type. Does not add the the vended SQLObject to this SQLDefinition, although it does set its parent reference to this. To correctly associate the returned SQLObject instance with this instance, the calling method should call addSQLObject(SQLObject).
Parameters:
  className - className of object to create new SQLObject instance
throws:
  BaseException - if error occurs during creation
See Also:   SQLDefinitionImpl.addObject(SQLObject)



equals
public boolean equals(Object o)(Code)
Overrides default implementation to determine value based on any associated attributes as well as values of non-transient member variables.
Parameters:
  o - Object to be compared true if o is equivalent to this; false otherwise



generateId
public String generateId()(Code)



getAllDatabases
public List<SQLDBModel> getAllDatabases()(Code)
Gets List of all Databases associated with this model. List of DatabaseModels representing participating Databases



getAllObjects
public Collection<SQLObject> getAllObjects()(Code)
Gets Collection of all SQLObjects in this model. Collection, possibly empty, of all SQLObjects



getAttribute
public Attribute getAttribute(String attrName)(Code)
Gets an attribute based on its name
Parameters:
  attrName - attribute Name Attribute instance associated with attrName, or null if none exists



getAttributeNames
public Collection<String> getAttributeNames()(Code)

See Also:   SQLObject.getAttributeNames



getAttributeValue
public Object getAttributeValue(String attrName)(Code)

See Also:   SQLObject.getAttributeObject



getDBWorkingFolder
public String getDBWorkingFolder()(Code)



getDbInstanceName
public String getDbInstanceName()(Code)



getDisplayName
public String getDisplayName()(Code)
Gets display name. current display name



getExecutionStrategyCode
public Integer getExecutionStrategyCode()(Code)



getExecutionStrategyStr
public String getExecutionStrategyStr()(Code)



getJoinSources
public List<DBTable> getJoinSources()(Code)



getObject
public SQLObject getObject(String objectId, int type)(Code)
Gets associated SQLObject instance, if any, with the given object ID.
Parameters:
  objectId - ID of SQLObject instance to be retrieved
Parameters:
  type - type of object to retrieve associated SQLObject instance, or null if no such instance exists



getObjectsOfType
public Collection getObjectsOfType(int type)(Code)
Gets Collection of SQLObjects matching the given object type.
Parameters:
  type - type of objects to retrieve Collection, possibly empty, of SQLObjects with matching type



getParent
public Object getParent()(Code)

See Also:   SQLDefinition.getParent



getRootJoin
public SQLObject getRootJoin(List<DBTable> sourceTables) throws BaseException(Code)
Gets the Root SQLJoinOperator Object in a given List
Parameters:
  sourceTables - List of Source Table SQLObjects SQLObject Root Join from List
throws:
  BaseException - while getting the Root



getRootJoins
public Collection<SQLObject> getRootJoins(int type)(Code)
Gets Collection of SQLJoinOperators representing "root" joins for this model.
Parameters:
  type - ??? Collection, possibly empty, of root SQLJoinOperators



getRuntimeDbModel
public RuntimeDatabaseModel getRuntimeDbModel()(Code)



getSQLFilterFor
public List<SQLFilter> getSQLFilterFor(SourceColumn sColumn)(Code)
Given a column find out the filters when the given column is used in left or right of it.
Parameters:
  sColumn - sourceColumn list of filters which have reference to these columns



getSQLFrameworkParentObject
public SQLFrameworkParentObject getSQLFrameworkParentObject()(Code)



getSourceColumns
public List<DBColumn> getSourceColumns()(Code)
Gets List of source columns associated with source tables of this model. List of SourceColumn instances



getSourceDatabaseModels
public List<SQLDBModel> getSourceDatabaseModels()(Code)
Gets List of source DatabaseModels associated with this model. List of DatabaseModels containing source tables



getSourceTables
public List<DBTable> getSourceTables()(Code)
Gets List of source tables participating in this model. List of instances



getTagName
public String getTagName()(Code)
get the tag name for this SQLDefinition override at subclass level to return a different tag name tag name to be used in xml representation of this object



getTargetColumns
public List<DBColumn> getTargetColumns()(Code)
Gets List of target columns associated with target tables of this model. List of TargetColumn instances



getTargetDatabaseModels
public List<SQLDBModel> getTargetDatabaseModels()(Code)
Gets List of target DatabaseModels associated with this model. List of DatabaseModels containing target tables



getTargetTables
public List<DBTable> getTargetTables()(Code)
Gets List of target tables participating in this model. List of TargetTable instances



getVersion
public String getVersion()(Code)



hasValidationConditions
public boolean hasValidationConditions()(Code)

See Also:   org.netbeans.modules.sql.framework.model.SQLDefinition.hasValidationConditions



hashCode
public int hashCode()(Code)
Overrides default implementation to compute hashcode based on any associated attributes as well as values of non-transient member variables. hashcode for this instance



init
protected void init()(Code)



isContainsJavaOperators
public boolean isContainsJavaOperators()(Code)
Check if a java operator is used in the model. true if a java operator is used.



isIdExists
boolean isIdExists(String id)(Code)



isTableExists
public Object isTableExists(DBTable table) throws BaseException(Code)
Check if a table already exists in this definition
Parameters:
  table - - table the existing object
throws:
  BaseException - - exception



migrateFromOlderVersions
public void migrateFromOlderVersions() throws BaseException(Code)

See Also:   org.netbeans.modules.sql.framework.model.SQLDefinition.migrateFromOlderVersions



overrideCatalogNamesForDb
public void overrideCatalogNamesForDb(Map overrideMapMap)(Code)



overrideSchemaNamesForDb
public void overrideSchemaNamesForDb(Map overrideMapMap)(Code)



parseXML
public void parseXML(Element xmlElement) throws BaseException(Code)
Parses the XML content, if any, using the given Element as a source for reconstituting the member variables and collections of this instance.
Parameters:
  xmlElement - DOM element containing XML marshalled version of a SQLDefinitioninstance
exception:
  BaseException - thrown while parsing XML, or if xmlElement is null



removeAllObjects
public void removeAllObjects()(Code)
Remove all objects from this container



removeObject
public void removeObject(SQLObject sqlObj) throws BaseException(Code)
Removes given SQLObject instance from this SQLDefinition.
Parameters:
  sqlObj - instance to remove
throws:
  BaseException - if error occurs during removal



removeObjects
public void removeObjects(Collection sqlObjs) throws BaseException(Code)
Removes given SQLObjects from SQLDefinition collection.
Parameters:
  sqlObjects - to be removed
throws:
  BaseException - while removing



removeSQLObjectListener
public synchronized void removeSQLObjectListener(SQLObjectListener listener)(Code)
remove SQL object listener
Parameters:
  listener - SQL object listener



requiresPipelineProcess
public boolean requiresPipelineProcess()(Code)
check if we have to use axion database if definition contains a java operator or there is a validation condition on one of source tables.



setAttribute
public void setAttribute(String attrName, Object val)(Code)

See Also:   SQLObject.setAttribute



setContainsJavaOperators
public void setContainsJavaOperators(boolean javaOp)(Code)
set it to true if a java operator is used in the model
Parameters:
  javaOp - true if there is a java operator



setDbInstanceName
public void setDbInstanceName(String dbInstanceName)(Code)
sets the axion database instance name
Parameters:
  dbInstanceName -



setDisplayName
public void setDisplayName(String newName)(Code)
Sets display name to given value.
Parameters:
  newName - new display name



setExecutionStrategyCode
public void setExecutionStrategyCode(Integer code)(Code)



setExecutionStrategyStr
public void setExecutionStrategyStr(String text)(Code)



setParent
public void setParent(Object newParent)(Code)

See Also:   SQLDefinition.setParent



setSQLFrameworkParentObject
public void setSQLFrameworkParentObject(SQLFrameworkParentObject aParent)(Code)



setSQLObjectProperties
protected void setSQLObjectProperties(SQLObject obj)(Code)



setVersion
public void setVersion(String newVersion)(Code)



setWorkingFolder
public void setWorkingFolder(String appDataRoot)(Code)
sets the axion database working folder
Parameters:
  appDataRoot -



toXMLAttributeTags
protected String toXMLAttributeTags(String prefix)(Code)
Generates XML elements representing this object's associated attributes.
Parameters:
  prefix - Prefix string to be prepended to each element String containing XML representation of attributes



toXMLExtra
protected String toXMLExtra(String prefix)(Code)
Provides a way for child classes to write out their own XML elements.
Parameters:
  prefix - - prefix a string



toXMLString
public String toXMLString() throws BaseException(Code)
Gets the XML representation of this SQLDefinition. Returns the XML representation of this SQLDefinition.



toXMLString
public String toXMLString(String prefix) throws BaseException(Code)
Gets the XML representation of this SQLDefinition, using the given String as a prefix for individual XML elements.
Parameters:
  prefix - indent string to prefix each element in the xml document. the XML representation of this SQLDefinition.



validate
public List<ValidationInfo> validate()(Code)
validate the definition starting from the target tables. Map of invalid input object as keys and reason as value



validateDbDrivers
public List<ValidationInfo> validateDbDrivers()(Code)
Validates if the Database drivers required for this SQLDefinition are already installed in Database Explorer. Map of invalid object as keys and reason as value



validateDbSynchronization
public List<ValidationInfo> validateDbSynchronization()(Code)
Validate Database synchronization. Identify any eTL Collaboration element which has been deleted or modified in Database. Map of invalid object as keys and reason as value



visit
public void visit(SQLVisitor visitor)(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)

w___w_w.__j_a_va__2_s_._c_om___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.