Java Doc for TableActions.java in  » Database-Client » SQLMinus » isql » 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 Client » SQLMinus » isql 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   isql.TableActions

TableActions
public class TableActions (Code)

author:
   Rahul Kumar $Author: rahul_kumar $
version:
   $Id: TableActions.java,v 1.7 2004/02/01 05:36:12 rahul_kumar Exp rahul $
version:
   XXX: these may bomb if selected from menubar and there is no data in
version:
   Table mode, thus need to check exceptions.
version:
   RK added on 20040111 19:32:42 - ignore case functionality

Inner Class :public static class SetTableViewAction extends AbstractAction
Inner Class :public static class DiscoverLinksAction extends AbstractAction
Inner Class :public static class DeleteAction extends AbstractAction
Inner Class :public static class InsertAction extends AbstractAction
Inner Class :public static class UpdateAction extends AbstractAction
Inner Class :public static class SearchAction extends AbstractAction
Inner Class :public static class SortAction extends AbstractAction
Inner Class :public static class ReverseSortAction extends AbstractAction
Inner Class :public static class AskSortAction extends AbstractAction
Inner Class :public static class AskFilterAction extends AbstractAction
Inner Class :public static class RememberAction extends AbstractAction
Inner Class :public static class OverwriteRememberAction extends AbstractAction
Inner Class :public static class GetLinkedInfoAction extends AbstractAction
Inner Class :public static class ClearRememberAction extends AbstractAction
Inner Class :public static class ClearSelectedRememberAction extends AbstractAction
Inner Class :public static class NextDataAction extends AbstractAction
Inner Class :public static class PreviousDataAction extends AbstractAction

Field Summary
final public static  intMATCHCASE
    
final public static  intMATCHWORD
    
final public static  StringP
    
final public static  intPAGING_COUNT
     how many rows shown at a time.
final public static  intREGEX
    
 SQLForm_form
    
final public static  StringaskFilterAction
    
final public static  StringasksortAction
    
final public static  StringclearRememberAction
    
final public static  StringclearSelectedRememberAction
    
static  PatternCompilercompiler
    
final public static  StringdeleteAction
    
final public static  StringdiscoverLinksAction
    
final public static  StringgetLinkedInfoAction
    
final public static  StringinsertAction
    
static  PatternMatchermatcher
    
final public static  StringnextDataAction
    
final public static  StringoverwriteRememberAction
    
final public static  StringpreviousDataAction
    
final public static  StringrememberAction
    
final public static  StringrememberLastAction
    
final public static  StringreversesortAction
    
final public static  StringsaveStateAction
    
final public static  StringsearchAction
    
final public static  StringsearchPartialMatchAction
    
final public static  StringsearchRegexMatchAction
    
final public static  StringsearchRegexPartialMatchAction
    
final public static  StringsetTableViewAction
    
final public static  StringsortAction
    
final public static  StringupdateAction
    

Constructor Summary
public  TableActions(SQLForm form)
     constructor passing whatever is needed.

Method Summary
public static  StringformatCharWherePortion(String f, String columnname, String currentvalue)
     format the where portion of a string with columnname and int range.
public static  StringformatCondition(String sql, String where, String oldwhere, boolean overwrite)
     adds the given where cond to the TRIVIAL sql. It does not replace previous sqls, it keeps appending.
public static  StringformatDateWherePortion(String f, String columnname, String currentvalue, Map params)
     format the where portion of a string with columnname and formatted date part.
public static  StringformatFilter(String s, int type, String columnname, Object currentvalue, Map params)
    
public static  StringformatIntWherePortion(String f, String columnname, String currentvalue)
     format the where portion of a string with columnname and int range.
public static  MapgetActionMap(SQLForm _form, JTable jt)
     return a Map of keys and actions so that a user can map the 2 automatically without changing his code for each new mapping.
public  Action[]getActions(JTable jt)
    
public static  intgetClosestDescriptiveColumn(String[] acols, String linkcolumn, int defaultindex, String desc_col_regex)
    
public static  intgetClosestPossibleMatch(String[] arr, String col)
     finds the index of the closest field to the given one. First checks for exact match, then partial matches.
public static  StringpromptForColumn(SQLForm _form, JTable jt, String message, String tablename, String possiblecolumn)
    
public static  StringpromptForFullLink(SQLForm _form, JTable jt, String oldtable, String oldcolumn)
     prompts user for full link which can then be saved in session for constructSQL and other programs to use.
public static  StringpromptForLink(SQLForm _form, JTable jt, String oldtable, String oldcolumn)
    
public static  StringpromptForTable(SQLForm _form, JTable jt, String message, String suppress)
     popup for selecting a table, with given message/prompt. The list will now show the suppressed table.
protected static  voidremember(SQLForm _form, JTable jt, boolean overwrite)
     called by the 2 remember actions, one with overwrite true, and one with false.
public static  intsearchaction(SQLForm _form, JTable jt, String ss, int searchtype)
     common method to search for a string/pattern.
public static  StringsubstituteFields(String value, SQLForm _form, int no)
    

Field Detail
MATCHCASE
final public static int MATCHCASE(Code)



MATCHWORD
final public static int MATCHWORD(Code)



P
final public static String P(Code)



PAGING_COUNT
final public static int PAGING_COUNT(Code)
how many rows shown at a time. should pick from ini



REGEX
final public static int REGEX(Code)



_form
SQLForm _form(Code)



askFilterAction
final public static String askFilterAction(Code)



asksortAction
final public static String asksortAction(Code)



clearRememberAction
final public static String clearRememberAction(Code)



clearSelectedRememberAction
final public static String clearSelectedRememberAction(Code)



compiler
static PatternCompiler compiler(Code)



deleteAction
final public static String deleteAction(Code)



discoverLinksAction
final public static String discoverLinksAction(Code)



getLinkedInfoAction
final public static String getLinkedInfoAction(Code)



insertAction
final public static String insertAction(Code)



matcher
static PatternMatcher matcher(Code)



nextDataAction
final public static String nextDataAction(Code)



overwriteRememberAction
final public static String overwriteRememberAction(Code)



previousDataAction
final public static String previousDataAction(Code)



rememberAction
final public static String rememberAction(Code)



rememberLastAction
final public static String rememberLastAction(Code)



reversesortAction
final public static String reversesortAction(Code)



saveStateAction
final public static String saveStateAction(Code)



searchAction
final public static String searchAction(Code)



searchPartialMatchAction
final public static String searchPartialMatchAction(Code)



searchRegexMatchAction
final public static String searchRegexMatchAction(Code)



searchRegexPartialMatchAction
final public static String searchRegexPartialMatchAction(Code)



setTableViewAction
final public static String setTableViewAction(Code)



sortAction
final public static String sortAction(Code)



updateAction
final public static String updateAction(Code)




Constructor Detail
TableActions
public TableActions(SQLForm form)(Code)
constructor passing whatever is needed. Do we need to pass SQLString or give a method or what.




Method Detail
formatCharWherePortion
public static String formatCharWherePortion(String f, String columnname, String currentvalue)(Code)
format the where portion of a string with columnname and int range.
Parameters:
  f -



formatCondition
public static String formatCondition(String sql, String where, String oldwhere, boolean overwrite)(Code)
adds the given where cond to the TRIVIAL sql. It does not replace previous sqls, it keeps appending. so you cant keep playing with it. How to address this ?? Simple implementation, it will bomb if you have a field ending with WHERE, or the case of where is different, where doesnt have a space or there is no WHERE, but other clauses exist. FIXME XXX TODO work on floats, ints etc also.



formatDateWherePortion
public static String formatDateWherePortion(String f, String columnname, String currentvalue, Map params)(Code)
format the where portion of a string with columnname and formatted date part.
Parameters:
  f - formatted date returned by DateResolver usually as ajdbc date or dates with a ':' defining a range.



formatFilter
public static String formatFilter(String s, int type, String columnname, Object currentvalue, Map params)(Code)
valid formats for date [:]([+-](\d+)[mdyw]+)[:]($1)? t = +0 = -0 = '=' = todays date only M = current month Y = current year +1M = next month (entire month, start to end) +1Y = next year (entire year, start to end) +1 = eq to tomorrow -1 = eq yesterday +1m = eq the day one month hence :+1m = upto next month (same date) :-1m = upto last month (same date as today) -1m: = from last month onwards -1m:+1m = last month to next month



formatIntWherePortion
public static String formatIntWherePortion(String f, String columnname, String currentvalue)(Code)
format the where portion of a string with columnname and int range.
Parameters:
  f -



getActionMap
public static Map getActionMap(SQLForm _form, JTable jt)(Code)
return a Map of keys and actions so that a user can map the 2 automatically without changing his code for each new mapping.



getActions
public Action[] getActions(JTable jt)(Code)



getClosestDescriptiveColumn
public static int getClosestDescriptiveColumn(String[] acols, String linkcolumn, int defaultindex, String desc_col_regex)(Code)



getClosestPossibleMatch
public static int getClosestPossibleMatch(String[] arr, String col)(Code)
finds the index of the closest field to the given one. First checks for exact match, then partial matches. Used during linking tables.



promptForColumn
public static String promptForColumn(SQLForm _form, JTable jt, String message, String tablename, String possiblecolumn)(Code)



promptForFullLink
public static String promptForFullLink(SQLForm _form, JTable jt, String oldtable, String oldcolumn)(Code)
prompts user for full link which can then be saved in session for constructSQL and other programs to use. This adds a descriptive field to pick up once it has linked.



promptForLink
public static String promptForLink(SQLForm _form, JTable jt, String oldtable, String oldcolumn)(Code)



promptForTable
public static String promptForTable(SQLForm _form, JTable jt, String message, String suppress)(Code)
popup for selecting a table, with given message/prompt. The list will now show the suppressed table. No longer used, since we often need a self-join.



remember
protected static void remember(SQLForm _form, JTable jt, boolean overwrite)(Code)
called by the 2 remember actions, one with overwrite true, and one with false.



searchaction
public static int searchaction(SQLForm _form, JTable jt, String ss, int searchtype)(Code)
common method to search for a string/pattern. Based on searchtype. returns the number of matches, or 0 if none. if user cancels, returns a -1.



substituteFields
public static String substituteFields(String value, SQLForm _form, int no)(Code)
this will take an SQL statement with fields ($abc) and substitute them with values from table if such rows and columns exist



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)

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