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

SQLConditionImpl
public class SQLConditionImpl implements SQLCondition,Cloneable(Code)
This class represents the condition set at source table, target table and at each case when condition. This holds predicates used in this condition and columnref used in it
author:
   Ritesh Adval

Inner Class :class SecondParseObjectInfo


Constructor Summary
public  SQLConditionImpl(SQLCondition src)
    
public  SQLConditionImpl(String displayName)
    

Method Summary
public  voidaddEqualityPredicate(SQLObject input, SQLDBColumn col)
     Adds equality predicate to the condition.
public  voidaddObject(SQLObject newObject)
     Adds given SQLObject instance to this SQLDefinition.
public  voidaddSecondPassSQLObject(SQLObject sqlObj, Element element)
     Adds SQLObject to list of object references to be resolved in a second pass.
public  Objectclone()
    
public  ObjectcloneSQLObject()
    
public  SQLObjectcreateObject(String objTag)
     Creates a new SQLObject instance of the given type with the given display name - does not associated the vended SQLObject with this instance.
public  SQLObjectcreateSQLObject(String className)
     Creates a new SQLObject instance of the given type with the given display name - does not associated the vended SQLObject with this instance.
public  booleanequals(Object obj)
    
 StringgenerateId()
    
public  CollectiongetAllObjects()
     Gets the Collection of active SQLObjects.
public  AttributegetAttribute(String attrName)
    
public  CollectiongetAttributeNames()
    
public  ObjectgetAttributeValue(String attrName)
    
public  StringgetConditionText()
    
public  StringgetConditionText(boolean constructIfEmpty)
    
public  StringgetDisplayName()
     Gets display name.
public  GUIInfogetGUIInfo()
    
public  intgetGuiMode()
    
public  CollectiongetInputCanvasObjectsNotIn(List gg)
    
public  SQLObjectgetObject(String objectId, int type)
     Gets associated SQLObject instance, if any, with the given object ID.
public  CollectiongetObjectsOfType(int type)
    
public  ObjectgetParent()
     Gets parent object, if any, that owns this SQLDefinition instance.
public  ObjectgetParentObject()
    
public  ListgetParticipatingColumns()
    
public  SQLPredicategetRootPredicate()
    
 SQLObjectgetSQLObject(String id)
    
public  inthashCode()
     Overrides default implementation to compute hashcode based on any associated attributes as well as values of non-transient member variables.
public  booleanisConditionDefined()
    
public  booleanisContainsJavaOperators()
     Check if a java operator is used in the model.
 booleanisIdExists(String id)
    
public  SQLObjectisObjectExist(SQLObject obj)
    
public  booleanisValid()
    
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  voidremoveDanglingColumnRef(ColumnRefImpl col)
    
public  voidremoveDanglingColumnRef(SQLObject column)
    
public  voidremoveEqualsPredicate(SQLDBColumn col, SQLObject value)
     Removes equality operator "col = value" from the condition and any reference to it using "AND" operator.
public  voidremoveObject(SQLObject sqlObj)
    
public  voidremoveObjects(Collection sqlObjs)
     Removes the given list of objects from SQLCondition collection.
public  voidreplaceTargetColumnIsNullPredicate()
     Removes the "TargetColumn IS NULL" expression from the target condition.
public  voidsetAttribute(String attrName, Object val)
    
public  voidsetConditionText(String text)
    
public  voidsetContainsJavaOperators(boolean javaOp)
    
public  voidsetDisplayName(String newName)
     Sets display name to given value.
public  voidsetGuiMode(int mode)
    
public  voidsetParent(Object newParent)
     Sets parent object, if any, that owns this SQLDefinition instance.
public  voidsetParentObject(Object myParent)
    
public  StringtoXMLString(String prefix)
     Returns the XML representation of collabSegment.
Parameters:
  prefix - the xml.
public  Listvalidate()
    
public  voidvisit(SQLVisitor visitor)
    


Constructor Detail
SQLConditionImpl
public SQLConditionImpl(SQLCondition src) throws BaseException(Code)



SQLConditionImpl
public SQLConditionImpl(String displayName)(Code)
Creates a new instance of SQLCondition




Method Detail
addEqualityPredicate
public void addEqualityPredicate(SQLObject input, SQLDBColumn col) throws BaseException(Code)
Adds equality predicate to the condition. If a different predicate already exists then it is linked with "AND" predicator. Ex: 1) col = input 2) (T1.EMP_ID = S1.EMP_ID) AND (T1.LAST_NAME = S2.LAST_NAME)
Parameters:
  input -
Parameters:
  col -



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.



addSecondPassSQLObject
public void addSecondPassSQLObject(SQLObject sqlObj, Element element)(Code)
Adds SQLObject to list of object references to be resolved in a second pass.
Parameters:
  sqlObj - to be added
Parameters:
  element - DOM Element of SQLObject to be resolved later



clone
public Object clone() throws CloneNotSupportedException(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 with the given display name - does not associated the vended SQLObject with this instance. To associate the returned SQLObject instance with this instance, the calling method should call addSQLObject(SQLObject) which will ensure the parent-child relationship is preserved.
Parameters:
  objTag - objTag of object to create new SQLObject instance
throws:
  BaseException - if error occurs during creation
See Also:   SQLConditionImpl.addObject(SQLObject)



createSQLObject
public SQLObject createSQLObject(String className) throws BaseException(Code)
Creates a new SQLObject instance of the given type with the given display name - does not associated the vended SQLObject with this instance. To associate the returned SQLObject instance with this instance, the calling method should call addSQLObject(SQLObject) which will ensure the parent-child relationship is preserved.
Parameters:
  className - className of object to create new SQLObject instance
throws:
  BaseException - if error occurs during creation
See Also:   SQLConditionImpl.addObject(SQLObject)



equals
public boolean equals(Object obj)(Code)
check if two objects are equal



generateId
String generateId()(Code)



getAllObjects
public Collection getAllObjects()(Code)
Gets the Collection of active SQLObjects. Collection of current SQLObjects in this SQLDefinition instance.



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 getAttributeNames()(Code)

See Also:   SQLObject.getAttributeNames



getAttributeValue
public Object getAttributeValue(String attrName)(Code)

See Also:   SQLObject.getAttributeObject



getConditionText
public String getConditionText()(Code)



getConditionText
public String getConditionText(boolean constructIfEmpty)(Code)



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



getGUIInfo
public GUIInfo getGUIInfo()(Code)



getGuiMode
public int getGuiMode()(Code)



getInputCanvasObjectsNotIn
public Collection getInputCanvasObjectsNotIn(List gg)(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 a Collection of SQLObjects, if any, with the given type
Parameters:
  type - SQLObject type to retrieve Collection (possibly empty) of SQLObjects with the given type



getParent
public Object getParent()(Code)
Gets parent object, if any, that owns this SQLDefinition instance. parent object



getParentObject
public Object getParentObject()(Code)



getParticipatingColumns
public List getParticipatingColumns()(Code)



getRootPredicate
public SQLPredicate getRootPredicate()(Code)



getSQLObject
SQLObject getSQLObject(String id)(Code)



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



isConditionDefined
public boolean isConditionDefined()(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)



isObjectExist
public SQLObject isObjectExist(SQLObject obj)(Code)
check if the object already exist true if object already exist



isValid
public boolean isValid()(Code)
is this condition a valid condition true if condition is valid



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



removeDanglingColumnRef
public void removeDanglingColumnRef(ColumnRefImpl col)(Code)



removeDanglingColumnRef
public void removeDanglingColumnRef(SQLObject column) throws BaseException(Code)
when a table is removed whose column are refered in this condition rhen we need to remove the column references



removeEqualsPredicate
public void removeEqualsPredicate(SQLDBColumn col, SQLObject value) throws BaseException(Code)
Removes equality operator "col = value" from the condition and any reference to it using "AND" operator.
Parameters:
  col -
Parameters:
  value -
throws:
  BaseException -



removeObject
public void removeObject(SQLObject sqlObj) throws BaseException(Code)
Removes the given object from SQLDefinition
Parameters:
  sqlObj - to be removed
throws:
  BaseException - while removing



removeObjects
public void removeObjects(Collection sqlObjs) throws BaseException(Code)
Removes the given list of objects from SQLCondition collection.
Parameters:
  sqlObjs - collection of SQLObjects to be removed
throws:
  BaseException - while removing



replaceTargetColumnIsNullPredicate
public void replaceTargetColumnIsNullPredicate() throws BaseException(Code)
Removes the "TargetColumn IS NULL" expression from the target condition. Used when target table is outer joined with source/table view and SQL being generated for ANSI satndard FROM clause.
Parameters:
  cond -
throws:
  BaseException -



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

See Also:   SQLObject.setAttribute



setConditionText
public void setConditionText(String text)(Code)



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



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



setGuiMode
public void setGuiMode(int mode)(Code)



setParent
public void setParent(Object newParent)(Code)
Sets parent object, if any, that owns this SQLDefinition instance.
Parameters:
  newParent - new parent object



setParentObject
public void setParentObject(Object myParent)(Code)



toXMLString
public String toXMLString(String prefix) throws BaseException(Code)
Returns the XML representation of collabSegment.
Parameters:
  prefix - the xml. Returns the XML representation of collabSegment.



validate
public List validate()(Code)



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.java___2s___.__c__o___m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.