it.eng.qbe.utility
Class SimpleSpaceChecker

java.lang.Object
  extended by it.eng.qbe.utility.SimpleSpaceChecker
All Implemented Interfaces:
IDBSpaceChecker

public class SimpleSpaceChecker
extends java.lang.Object
implements IDBSpaceChecker

The Class SimpleSpaceChecker.


Constructor Summary
SimpleSpaceChecker()
           
 
Method Summary
 int getPercentageOfFreeSpace(java.sql.Connection aConnection)
          Gets the percentage of free space.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSpaceChecker

public SimpleSpaceChecker()
Method Detail

getPercentageOfFreeSpace

public int getPercentageOfFreeSpace(java.sql.Connection aConnection)
Gets the percentage of free space.

Specified by:
getPercentageOfFreeSpace in interface IDBSpaceChecker
Parameters:
aConnection - - The sql connection provide by qbe, pay attention this class must keep the connection open
Returns:
a numeber representing the available space for the given connection in db