auc.database
Class DBServerImpl

java.lang.Object
  |
  +--org.omg.CORBA.portable.ObjectImpl
        |
        +--auc.database.server._DBServerImplBase
              |
              +--auc.database.DBServerImpl
All Implemented Interfaces:
DBServer, DBServerOperations, org.omg.CORBA.portable.IDLEntity, org.omg.CORBA.portable.InvokeHandler, org.omg.CORBA.Object, java.io.Serializable

public class DBServerImpl
extends _DBServerImplBase

See Also:
Serialized Form

Field Summary
protected  java.sql.Connection databaseConnection
           
 
Constructor Summary
DBServerImpl()
           
 
Method Summary
protected  void connectToDB()
           
 Job[] getActiveAPIJobs()
           
 RecordDescription[] getAmountUnitTypes()
           
 byte[] getExclusionZoneData(long exclusionID)
           
 RecordDescription[] getExclusionZones(long fieldID)
           
 byte[] getFieldData(long fieldID)
           
 RecordDescription getFieldDescription(long fieldID)
           
 RecordDescription[] getFields()
           
protected  byte[] getFileAsByteArray(java.lang.String query)
           
 byte[] getJobPlanData(long jobID)
           
 RecordDescription[] getLogTypes()
           
protected  RecordDescription[] getRecordsByID(java.lang.String query)
           
protected  RecordDescription[] getRecordsByID(java.lang.String query, long ID)
           
protected  RecordDescription[] getRecordsByID(java.lang.String query, long ID, boolean changeValue)
           
 RecordDescription[] getSubFields(long fieldID)
           
 void updateJobRealData(long jobId, java.lang.String name, long logTypeID, long unitID, byte[] fileData)
           
 
Methods inherited from class auc.database.server._DBServerImplBase
_ids, _invoke
 
Methods inherited from class org.omg.CORBA.portable.ObjectImpl
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Field Detail

databaseConnection

protected java.sql.Connection databaseConnection
Constructor Detail

DBServerImpl

public DBServerImpl()
Method Detail

getSubFields

public RecordDescription[] getSubFields(long fieldID)
                                 throws DBConnectException,
                                        DBReadException

getFields

public RecordDescription[] getFields()
                              throws DBConnectException,
                                     DBReadException

getFieldDescription

public RecordDescription getFieldDescription(long fieldID)
                                      throws DBConnectException,
                                             DBReadException

getFieldData

public byte[] getFieldData(long fieldID)
                    throws DBConnectException,
                           DBReadException,
                           FileOpenException,
                           FileReadException

getExclusionZones

public RecordDescription[] getExclusionZones(long fieldID)
                                      throws DBConnectException,
                                             DBReadException

getExclusionZoneData

public byte[] getExclusionZoneData(long exclusionID)
                            throws DBConnectException,
                                   DBReadException,
                                   FileOpenException,
                                   FileReadException

getActiveAPIJobs

public Job[] getActiveAPIJobs()
                       throws DBConnectException,
                              DBReadException

updateJobRealData

public void updateJobRealData(long jobId,
                              java.lang.String name,
                              long logTypeID,
                              long unitID,
                              byte[] fileData)
                       throws DBConnectException,
                              DBUpdateException,
                              FileWriteException

getJobPlanData

public byte[] getJobPlanData(long jobID)
                      throws DBConnectException,
                             DBReadException,
                             FileOpenException,
                             FileReadException

getLogTypes

public RecordDescription[] getLogTypes()
                                throws DBConnectException,
                                       DBReadException

getAmountUnitTypes

public RecordDescription[] getAmountUnitTypes()
                                       throws DBConnectException,
                                              DBReadException

connectToDB

protected void connectToDB()
                    throws DBConnectException

getRecordsByID

protected RecordDescription[] getRecordsByID(java.lang.String query,
                                             long ID)
                                      throws DBConnectException,
                                             DBReadException

getRecordsByID

protected RecordDescription[] getRecordsByID(java.lang.String query)
                                      throws DBConnectException,
                                             DBReadException

getRecordsByID

protected RecordDescription[] getRecordsByID(java.lang.String query,
                                             long ID,
                                             boolean changeValue)
                                      throws DBConnectException,
                                             DBReadException

getFileAsByteArray

protected byte[] getFileAsByteArray(java.lang.String query)
                             throws DBConnectException,
                                    DBReadException,
                                    FileOpenException,
                                    FileReadException