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


java.lang.Object
   org.isqlviewer.history.HistoricalCommand

HistoricalCommand
public class HistoricalCommand implements Serializable,Transferable(Code)
Generic command object for logging command history within iSQL-Viewer.


author:
   Mark A. Kobold <mkobold at isqlviewer dot com>
version:
   1.0



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


Method Summary
public  booleanaddSubcommand(HistoricalCommand subcommand)
     Add sub-command to this command context.

Adds a child command that effectively puts it as a child process of sorts.

public  Enumeration<HistoricalCommand>elements()
     Acquires enumeration of child process within the command context.
public  booleanequals(Object other)
    
public  HistoricalCommandgetChildCommand(int index)
     Gets child command by index.


Parameters:
  index - of the desired child command.

public  intgetChildCount()
    
public  StringgetCommandText()
     Gets the commandText of this command that was executed.
public  longgetId()
     Gets the unique identifier for this history reference.

Simply number that unique identifies this service reference within the iSQL-Viewer application.

public  DategetQueryTime()
     Gets the execution time at which this event occured.
public  StringgetService()
     Sets the name of the iSQL-Viewer service this historical command is associated with.
public  longgetTransactionId()
     Gets the transaction id for this event.
public  ObjectgetTransferData(DataFlavor flavor)
    
public  DataFlavor[]getTransferDataFlavors()
    
public  CommandTypegetType()
     Gets the type of historical event this instance represents.
public  booleanhasChildCommands()
     Determines if this historical command has child commands.
public  inthashCode()
    
public  intindexOf(HistoricalCommand childCommand)
     Get the index of the child command in this command context.


Parameters:
  childCommand - to seek the index of within this instance.

public  booleanisDataFlavorSupported(DataFlavor flavor)
    
public  voidsetCommandText(String content)
     Sets the raw command text used for this command.

This is typically either the raw text of the command like the SQL statement executed.

public  voidsetId(long id)
     Sets the service reference identifier to the specified value.
public  voidsetQueryTime(Date queryTime)
     Sets the time this command was executed at in millis.
public  voidsetService(String service)
     Sets the name of the iSQL-Viewer service this historical command is associated with.
public  voidsetTransactionId(long transactionId)
     Sets the transactional id for this event .
public  voidsetType(CommandType type)
     Sets the type of command this event represents.
public  intsize()
     Gets the number of child commands that were part of this instance.
public  StringtoString()
    

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





Method Detail
addSubcommand
public boolean addSubcommand(HistoricalCommand subcommand)(Code)
Add sub-command to this command context.

Adds a child command that effectively puts it as a child process of sorts. Not all command types can have subCommands however, and command types may only allow specific child types of commands.
Parameters:
  subcommand - to add to this event. true if the subcommand was successfully added to this event.
throws:
  NullPointerException - if the subcommand is null.
throws:
  IllegalArgumentException - if the subcommand transaction is not equal to this instances' transaction id.




elements
public Enumeration<HistoricalCommand> elements()(Code)
Acquires enumeration of child process within the command context.

enumerated child commands that were executed as a part of this instance.




equals
public boolean equals(Object other)(Code)



getChildCommand
public HistoricalCommand getChildCommand(int index)(Code)
Gets child command by index.


Parameters:
  index - of the desired child command. the command at the given index.
throws:
  ArrayIndexOutOfBoundsException - if index is invalid.




getChildCount
public int getChildCount()(Code)



getCommandText
public String getCommandText()(Code)
Gets the commandText of this command that was executed.

commandText of this command; can be null if unavailable.




getId
public long getId()(Code)
Gets the unique identifier for this history reference.

Simply number that unique identifies this service reference within the iSQL-Viewer application. If the Id is -1 or less than 0, then that indicates that this particular history reference instance is not registered within the application.

This value has no real value other than uniquely identifying this historical event. the id of this historical command; can be negative if not previously set.




getQueryTime
public Date getQueryTime()(Code)
Gets the execution time at which this event occured.

timestamp at which this event happened as Java Date; can be null if not previously set.




getService
public String getService()(Code)
Sets the name of the iSQL-Viewer service this historical command is associated with.

the service that this event was executed against; can be null if not previously set.




getTransactionId
public long getTransactionId()(Code)
Gets the transaction id for this event.

If multiple events occur within the same transaction they will all be associated with the same transaction id. This id has no real value in its solitary form. the transactionId for this event; can be negative if not set or is not applicable to this event.




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



getTransferDataFlavors
public DataFlavor[] getTransferDataFlavors()(Code)



getType
public CommandType getType()(Code)
Gets the type of historical event this instance represents.

the type of command this instance is.




hasChildCommands
public boolean hasChildCommands()(Code)
Determines if this historical command has child commands.

true if this command instance contains child processes.




hashCode
public int hashCode()(Code)



indexOf
public int indexOf(HistoricalCommand childCommand)(Code)
Get the index of the child command in this command context.


Parameters:
  childCommand - to seek the index of within this instance. index of the command in this instance; -1 if not found.




isDataFlavorSupported
public boolean isDataFlavorSupported(DataFlavor flavor)(Code)



setCommandText
public void setCommandText(String content)(Code)
Sets the raw command text used for this command.

This is typically either the raw text of the command like the SQL statement executed. This field may not be available for all types of commands where the command cannot be effectively reproduced. Such as when a transaction was started by setting the auto-commit state to false on the connection.
Parameters:
  commandText - of the command being executed; can be null if no text command was executed.




setId
public void setId(long id)(Code)
Sets the service reference identifier to the specified value.


Parameters:
  id - the id to set to uniquely identify this service.
throws:
  IllegalArgumentException - if the given id is not a positive number.
throws:
  FieldNotModifiableException - if the id for this instance has already been set.




setQueryTime
public void setQueryTime(Date queryTime)(Code)
Sets the time this command was executed at in millis.


Parameters:
  queryTime - as a Java date object.
throws:
  NullPointerException - if the given queryTime value is null.




setService
public void setService(String service)(Code)
Sets the name of the iSQL-Viewer service this historical command is associated with.


Parameters:
  service - name to set for this event.
throws:
  NullPointerException - if the given service is null.




setTransactionId
public void setTransactionId(long transactionId)(Code)
Sets the transactional id for this event .


Parameters:
  transactionId - to set for this event.
throws:
  IllegalArgumentException - if the given transaction id is negative; with the exception -1;




setType
public void setType(CommandType type)(Code)
Sets the type of command this event represents.


Parameters:
  type - the event type for this instance.
throws:
  NullPointerException - if the given type is null.
throws:
  FieldNotModifiableException - if the type has been previously set.




size
public int size()(Code)
Gets the number of child commands that were part of this instance.

number of child processes that were executed in this command context.




toString
public String toString()(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)

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