com.elvyx.client
Class FunctionsImpl

java.lang.Object
  extended by com.elvyx.client.FunctionsImpl
All Implemented Interfaces:
Functions

public class FunctionsImpl
extends java.lang.Object
implements Functions

Load the parameters from properties files and it has the method to get information from server.

Since:
1.0
Version:
$Revision: 1.6 $
Author:
Armando Perdomo

Method Summary
 void eraseDatabase()
          Send command to erase data in database.
 void exit()
          Exit the application.
 Response getDetails(java.lang.String[] values)
          Return details for a statement, data measured.
 java.lang.Long getId()
          Return the server id
 java.util.Properties getProperties()
          Return properties including parameters in properties file.
 java.lang.String getProperty(java.lang.String prop)
          Return a property included into the properties file.
 Response getStatements(Filter filter)
          Send command gls to get from server the list of statements filtered
 void loadProperties()
          Load the properties file
 void refreshDetails(java.lang.String[] values)
          Refresh details section
 void refreshTable(Filter filter)
          Refresh data table
 void resetDetails()
          Reset details section
 void saveAs(java.io.File file)
          Save data to file
 void saveProperties(java.util.Properties properties)
          Save the properties file.
 void setId(java.lang.Long id)
          Set id.
 void stopSchedule()
          Stop schedule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadProperties

public void loadProperties()
Load the properties file

Specified by:
loadProperties in interface Functions

saveProperties

public void saveProperties(java.util.Properties properties)
Save the properties file. This is elvyxclientproperties.properties.

Specified by:
saveProperties in interface Functions
Parameters:
properties - It include the parameters to be saved Sample: port = 4448 hostaddress=localhost lookandfeel=System refreshtime=20

getProperty

public java.lang.String getProperty(java.lang.String prop)
Return a property included into the properties file.

Specified by:
getProperty in interface Functions
Parameters:
prop - Propery key
Returns:
Property value

getProperties

public java.util.Properties getProperties()
Return properties including parameters in properties file.

Specified by:
getProperties in interface Functions
Returns:
Property properties

exit

public void exit()
Exit the application.

Specified by:
exit in interface Functions
Throws:
java.sql.SQLException

eraseDatabase

public void eraseDatabase()
                   throws CommandException
Send command to erase data in database.

Specified by:
eraseDatabase in interface Functions
Throws:
CommandException

getStatements

public Response getStatements(Filter filter)
                       throws CommandException
Send command gls to get from server the list of statements filtered

Specified by:
getStatements in interface Functions
Throws:
CommandException

getDetails

public Response getDetails(java.lang.String[] values)
                    throws CommandException
Return details for a statement, data measured.

Specified by:
getDetails in interface Functions
Parameters:
values - Prepared statement and SQL Statement.
Throws:
CommandException

refreshTable

public void refreshTable(Filter filter)
                  throws CommandException
Refresh data table

Specified by:
refreshTable in interface Functions
Parameters:
values - Prepared statement and SQL Statement.
Throws:
CommandException

refreshDetails

public void refreshDetails(java.lang.String[] values)
                    throws CommandException
Refresh details section

Specified by:
refreshDetails in interface Functions
Parameters:
values - Prepared statement and SQL Statement.
Throws:
CommandException

resetDetails

public void resetDetails()
Reset details section

Specified by:
resetDetails in interface Functions
Parameters:
values - Prepared statement and SQL Statement.
Throws:
CommandException

saveAs

public void saveAs(java.io.File file)
            throws CommandException
Save data to file

Specified by:
saveAs in interface Functions
Throws:
CommandException

stopSchedule

public void stopSchedule()
Stop schedule

Specified by:
stopSchedule in interface Functions
Throws:
CommandException

getId

public java.lang.Long getId()
Return the server id


setId

public void setId(java.lang.Long id)
Set id. It allows take the server control



Copyright © 2006-2008 Armando Perdomo. All Rights Reserved.