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


org.netbeans.modules.sql.framework.model.SQLCondition

All known Subclasses:   org.netbeans.modules.sql.framework.model.impl.SQLConditionImpl,
SQLCondition
public interface SQLCondition extends SQLContainerObject,SQLVisitedObject(Code)
This defines condition container for sql, which are defined at source table target table
author:
   Ritesh Adval


Field Summary
final public static  StringATTR_CONTAINS_JAVA_OPERATORS
    
final public static  StringDISPLAY_NAME
    
final public static  intGUIMODE_GRAPHICAL
    
final public static  intGUIMODE_SQLCODE
    
final public static  StringTAG_CONDITION
    
final public static  StringTAG_SQLCODE
    


Method Summary
public  voidaddEqualityPredicate(SQLObject newInput, SQLDBColumn col)
     Adds equality predicate to the condition.
public  AttributegetAttribute(String attrName)
    
public  CollectiongetAttributeNames()
     Gets Collection of active attribute names.
public  ObjectgetAttributeValue(String attrName)
     Gets the object referenced by a named Attribute, if it exists.
public  StringgetConditionText()
    
public  StringgetConditionText(boolean constructIfEmpty)
     Get the condition sql text.
public  StringgetDisplayName()
     Gets display name.
public  GUIInfogetGUIInfo()
    
public  intgetGuiMode()
    
public  ObjectgetParentObject()
    
public  ListgetParticipatingColumns()
     Returns list of Source or Target table columns used in the Condition expression.
public  SQLPredicategetRootPredicate()
    
public  booleanisConditionDefined()
    
public  booleanisContainsJavaOperators()
     Check if a java operator is used in the model.
public  SQLObjectisObjectExist(SQLObject obj)
    
public  booleanisValid()
    
public  voidremoveDanglingColumnRef(SQLObject column)
    
public  voidremoveEqualsPredicate(SQLDBColumn col, SQLObject victim)
     Removes equality operator "col = value" from the condition and any reference to it using "AND" operator.
public  voidreplaceTargetColumnIsNullPredicate()
     Removes the "targetColumn IS NULL" predicate from the target condition.
public  voidsetAttribute(String attrName, Object val)
     Sets an attribute name-value pair.
public  voidsetConditionText(String text)
    
public  voidsetContainsJavaOperators(boolean javaOp)
    
public  voidsetDisplayName(String newName)
     Sets display name to given value.
public  voidsetGuiMode(int mode)
    
public  Listvalidate()
    

Field Detail
ATTR_CONTAINS_JAVA_OPERATORS
final public static String ATTR_CONTAINS_JAVA_OPERATORS(Code)



DISPLAY_NAME
final public static String DISPLAY_NAME(Code)
XML attribute name for display name



GUIMODE_GRAPHICAL
final public static int GUIMODE_GRAPHICAL(Code)
GUI Mode Type II : Graphical



GUIMODE_SQLCODE
final public static int GUIMODE_SQLCODE(Code)
GUI Mode Type I : Text Mode



TAG_CONDITION
final public static String TAG_CONDITION(Code)
XML tag name for SQL Condition



TAG_SQLCODE
final public static String TAG_SQLCODE(Code)





Method Detail
addEqualityPredicate
public void addEqualityPredicate(SQLObject newInput, 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:
  newInput -
Parameters:
  col -
throws:
  com.sun.sql.framework.exception.BaseException -



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)
Gets Collection of active attribute names. Collection of attribute names



getAttributeValue
public Object getAttributeValue(String attrName)(Code)
Gets the object referenced by a named Attribute, if it exists.
Parameters:
  attrName - attribute Name Object referenced by Attributed with name attrName, or null if none exists



getConditionText
public String getConditionText()(Code)
get the condition sql text condition sql text



getConditionText
public String getConditionText(boolean constructIfEmpty)(Code)
Get the condition sql text. Tries to construct Sql text from graphic model if the sql text is null or empty.
Parameters:
  constructIfEmpty - condition sql text



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



getGUIInfo
public GUIInfo getGUIInfo()(Code)



getGuiMode
public int getGuiMode()(Code)
get the gui mode gui mode



getParentObject
public Object getParentObject()(Code)



getParticipatingColumns
public List getParticipatingColumns()(Code)
Returns list of Source or Target table columns used in the Condition expression.



getRootPredicate
public SQLPredicate getRootPredicate()(Code)



isConditionDefined
public boolean isConditionDefined()(Code)
check if there is some condition is defined, it may be invalid condition true if some form of condition exist



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



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



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



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
Parameters:
  column - AbstractDBColumn
throws:
  com.sun.sql.framework.exception.BaseException -



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



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



setAttribute
public void setAttribute(String attrName, Object val)(Code)
Sets an attribute name-value pair. The name of the Attribute should be one of the String constants defined in this class.
Parameters:
  attrName - attribute Name
Parameters:
  val - value of the attribute



setConditionText
public void setConditionText(String text)(Code)
set the condition text
Parameters:
  text - condition text



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)
set the gui mode
Parameters:
  mode - gui mode



validate
public List validate()(Code)
Validate SQL Condition and retuns list of Invalid Input Object List



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.