Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.loihl.sqltool
Class QueryImpl  view QueryImpl download QueryImpl.java

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended bycom.loihl.sqltool.QueryImpl
All Implemented Interfaces:
Query, java.rmi.Remote, java.io.Serializable

public class QueryImpl
extends java.rmi.server.UnicastRemoteObject
implements Query

Class QueryImpl

Version:
0.5.0

Field Summary
private  java.sql.Connection sqlConnection
           
 
Fields inherited from class java.rmi.server.UnicastRemoteObject
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
QueryImpl()
          Method: QueryImpl Description: constructor for Query class
 
Method Summary
 javax.swing.table.DefaultTableModel execute(java.lang.String sql)
          Method: execute Description: execute the sql statement that is passed in
private  javax.swing.table.DefaultTableModel executeSelect(java.lang.String sql)
          Method: executeSelect Description: execute the sql statement that is passed in
private  javax.swing.table.DefaultTableModel executeUpdate(java.lang.String sql)
          Method: executeUpdate Description: execute the sql statement that is passed in
 boolean setConnection(java.lang.String dbURL, java.lang.String driver, java.util.Properties props)
          Method: setConnection Description: establishes a connection to the database, requests parameters from users
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

sqlConnection

private java.sql.Connection sqlConnection
Constructor Detail

QueryImpl

public QueryImpl()
          throws java.rmi.RemoteException
Method: QueryImpl Description: constructor for Query class

Method Detail

setConnection

public boolean setConnection(java.lang.String dbURL,
                             java.lang.String driver,
                             java.util.Properties props)
                      throws java.rmi.RemoteException,
                             java.sql.SQLException
Method: setConnection Description: establishes a connection to the database, requests parameters from users

Specified by:
setConnection in interface Query

execute

public javax.swing.table.DefaultTableModel execute(java.lang.String sql)
                                            throws java.rmi.RemoteException,
                                                   java.sql.SQLException
Method: execute Description: execute the sql statement that is passed in

Specified by:
execute in interface Query

executeSelect

private javax.swing.table.DefaultTableModel executeSelect(java.lang.String sql)
                                                   throws java.rmi.RemoteException,
                                                          java.sql.SQLException
Method: executeSelect Description: execute the sql statement that is passed in


executeUpdate

private javax.swing.table.DefaultTableModel executeUpdate(java.lang.String sql)
                                                   throws java.rmi.RemoteException,
                                                          java.sql.SQLException
Method: executeUpdate Description: execute the sql statement that is passed in