Java Doc for Bookmark.java in  » Database-Client » iSQL-Viewer » org » isqlviewer » bookmarks » 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 » iSQL Viewer » org.isqlviewer.bookmarks 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.isqlviewer.bookmarks.BookmarkReference
      org.isqlviewer.bookmarks.Bookmark

Bookmark
public class Bookmark extends BookmarkReference implements Cloneable(Code)
Bookmark for an SQL command(s).

Like any kind of bookmark metaphor this allows the creation of an object represent an SQL command or series of commands. A bookmark can also represent a prepared statement with well formed data objects parameterized and generated on the fly.
author:
   Mark A. Kobold <mkobold at isqlviewer dot com>
version:
   1.0



Field Summary
final public static  DataFlavorBOOKMARK_FLAVOR
     Standard data-transfer flavor for DnD operations.

Constructor Summary
public  Bookmark()
     Creates a new bookmark as child to the given folder.

Method Summary
public  booleanadd(BindVariable parameter)
     Adds a bookmark parameter component to this bookmark.

When a bookmark represents a prepared statement, the bind variables for that statement are defined via the bookmark parameter data object.

A prepared statement will only be attempted if and only if there are bookmark parameters defined within the bookmark.
Parameters:
  parameter - to add to internal list of parameters.

public  voidclearParameters()
     Removes all bookmark parameters from this bookmark.
public  Bookmarkclone()
    
public  booleancontainsParameters()
     Checks to see if this bookmark contains any parameters.
public  StringgetCommandText()
     Gets the SQL command or commands contained in this bookmark.
public  DategetCreationTime()
     Date in milliseconds when this bookmark was created.
public  DategetLastAccess()
     Gets the last time this bookmark was executed against a JDBC connection.
public  ObjectgetTransferData(DataFlavor flavor)
    
public  DataFlavor[]getTransferDataFlavors()
    
public  longgetUseCount()
     Gets the number of times this bookmark has been executed.
public  booleanisDataFlavorSupported(DataFlavor flavor)
    
public  intparemeterCount()
     Gets the number of prepared paramters that exist in this bookmark.
public  booleanremoveParameter(BindVariable parameter)
     Removes a bookmark paramter by reference.


Parameters:
  parameter - to be removed from this bookmark.

public  voidsetCommandText(String sql)
     Sets the SQL command or commands for this bookmark.
public  voidsetCreationTime(Date creationTime)
     Sets the creation time of this bookmark.

Typically this method will only be called when the bookmark is restored from local disk.

public  voidsetLastAccess(Date lastUsedTime)
     Sets the last time this bookmark was executed against a JDBC connection.
public  voidsetUseCount(long useCount)
     Sets the number of times this bookmark has been executed.
public  BookmarkReferencetoBookmarkReference()
    
public  Enumeration<BindVariable>variables()
     Gets an enumeration of the bookmark parameter data.

Field Detail
BOOKMARK_FLAVOR
final public static DataFlavor BOOKMARK_FLAVOR(Code)
Standard data-transfer flavor for DnD operations.




Constructor Detail
Bookmark
public Bookmark()(Code)
Creates a new bookmark as child to the given folder.

Creating a bookmark will implictly add itself to the parentFolder given.
Parameters:
  parentFolder - that will contain this new bookmark instance.
throws:
  NullPointerException - if the parentFolder null.





Method Detail
add
public boolean add(BindVariable parameter)(Code)
Adds a bookmark parameter component to this bookmark.

When a bookmark represents a prepared statement, the bind variables for that statement are defined via the bookmark parameter data object.

A prepared statement will only be attempted if and only if there are bookmark parameters defined within the bookmark.
Parameters:
  parameter - to add to internal list of parameters. true if the bookmark parameter was successfully added to this bookmark.




clearParameters
public void clearParameters()(Code)
Removes all bookmark parameters from this bookmark.

This call can be used to quickly ensure that this bookmark will not be interpreted as a prepared statement.




clone
public Bookmark clone()(Code)



containsParameters
public boolean containsParameters()(Code)
Checks to see if this bookmark contains any parameters.

true if there are bookmark parameters contained in this instance.




getCommandText
public String getCommandText()(Code)
Gets the SQL command or commands contained in this bookmark.

Multiplie SQL commands can be combined within a bookarm using non-quoted semi-colon ';' to seperate the statements. the SQL command or commands of this bookmark.




getCreationTime
public Date getCreationTime()(Code)
Date in milliseconds when this bookmark was created.

timestamp in milliseconds when this bookmark was created.




getLastAccess
public Date getLastAccess()(Code)
Gets the last time this bookmark was executed against a JDBC connection.

timestamp in milliseconds when this bookmark was last executed.




getTransferData
public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException(Code)



getTransferDataFlavors
public DataFlavor[] getTransferDataFlavors()(Code)



getUseCount
public long getUseCount()(Code)
Gets the number of times this bookmark has been executed.

number times this bookmark has been executed.




isDataFlavorSupported
public boolean isDataFlavorSupported(DataFlavor flavor)(Code)



paremeterCount
public int paremeterCount()(Code)
Gets the number of prepared paramters that exist in this bookmark.

number of parameters that exist in this bookmark.




removeParameter
public boolean removeParameter(BindVariable parameter)(Code)
Removes a bookmark paramter by reference.


Parameters:
  parameter - to be removed from this bookmark. true if the parameter was successfully removed from this bookmark.




setCommandText
public void setCommandText(String sql)(Code)
Sets the SQL command or commands for this bookmark.


Parameters:
  commandText - command that will be this bookmark.




setCreationTime
public void setCreationTime(Date creationTime)(Code)
Sets the creation time of this bookmark.

Typically this method will only be called when the bookmark is restored from local disk. Explicitly calling this method otherwise will cause this value to essentially be invaild since it will not be true.
Parameters:
  creationTime - in milliseconds of the date this bookmark was created.




setLastAccess
public void setLastAccess(Date lastUsedTime)(Code)
Sets the last time this bookmark was executed against a JDBC connection.


Parameters:
  lastAccess - in milliseconds when this bookmark was last executed.




setUseCount
public void setUseCount(long useCount)(Code)
Sets the number of times this bookmark has been executed.

If a negative number is used, then zero will be inferred as the inteded use count.
Parameters:
  useCount - new number of times this bookmark has been executed.




toBookmarkReference
public BookmarkReference toBookmarkReference()(Code)



variables
public Enumeration<BindVariable> variables()(Code)
Gets an enumeration of the bookmark parameter data.

iterable object of bookmark parameters within this bookmark.




Fields inherited from org.isqlviewer.bookmarks.BookmarkReference
final public static DataFlavor BOOKMARK_REFERENCE_FLAVOR(Code)(Java Doc)

Methods inherited from org.isqlviewer.bookmarks.BookmarkReference
public boolean equals(Object other)(Code)(Java Doc)
public ColorLabel getColorLabel()(Code)(Java Doc)
public BookmarkFolder getFolder()(Code)(Java Doc)
public long getId()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public String getPath()(Code)(Java Doc)
public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException(Code)(Java Doc)
public DataFlavor[] getTransferDataFlavors()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public boolean isDataFlavorSupported(DataFlavor flavor)(Code)(Java Doc)
public boolean isFavorite()(Code)(Java Doc)
public void setColorLabel(ColorLabel labelColor)(Code)(Java Doc)
public void setFavorite(boolean favorite)(Code)(Java Doc)
public void setFolder(BookmarkFolder folder)(Code)(Java Doc)
public void setId(long id)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

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.