cds.simbad
Class SimbadUpdate

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended bycds.simbad.Simbad
                  extended bycds.simbad.SimbadQuery
                      extended bycds.simbad.SimbadUpdate
All Implemented Interfaces:
java.rmi.Remote, java.io.Serializable, SimbadInturfacm

public class SimbadUpdate
extends SimbadQuery
implements SimbadInterface

Titre : SimbadUpdate.java

Description : Implementation de l'interface SimbadInterface

Copyright : Copyright (c) 2002

Société :

Version:
1.0
Author:
Sylvaine Jaehn (Stage UTBM)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class cds.simbad.SimbadQuery
 
Fields inherited from class cds.simbad.Simbad
con, p, RMIPrefix, sjdbc
 
Fields inherited from class java.rmi.server.UnicastRemoteObject
 
Fields inherited from class java.rmi.server.RemoteServer
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
SimbadUpdate(java.lang.String database)
          Constructor
 
Method Summary
 int updateALink(byte type, java.lang.String ident1, java.lang.String ident2)
          Gestion des liens associatifs
 int updateHLink(byte type, java.lang.String identFather, java.lang.String identSon)
          Gestion des liens hierarchiques
 
Methods inherited from class cds.simbad.SimbadQuery
alink, autPosRef, bibcode, bibcodeRef, bibcodeRef, cat, cooboxParse, coord, coordParam, criteriaQuery, getMetadata, hlink, ident, oid, oidList, sqlQuery, titleRef
 
Methods inherited from class cds.simbad.Simbad
close, databaseName, getParameterFile, open, open
 
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
 
Methods inherited from interface cds.simbad.SimbadInterface
alink, autPosRef, bibcode, bibcodeRef, cat, close, coord, coordParam, criteriaQuery, getMetadata, getParameterFile, hlink, ident, oid, oidList, open, open, sqlQuery, titleRef
 

4T COLSPAN=1> Constructor Detail

SimbadUpdate

public SimbadUpdate(java.lang.String database)
             throws java.rmi.RemoteException
Constructor

Parameters:
database - name of a database Parameters main file
Throws:
java.rmi.RemoteException - if RMI problem
Method Detail

updateHLink

public int updateHLink(byte type,
                       java.lang.String identFather,
                       java.lang.String identSon)
                throws java.rmi.RemoteException,
                       SimbadException
Gestion des liens hierarchiques

Specified by:
updateHLink in interface SimbadInterface
Parameters:
type - type de mise à jour (A : add, D : delete, U : update)
identFather - identificateur de l'objet pere
identSon - identificateur de l'objet fils
Returns:
-1 si echec, un nombre positif ou declanche une exception
Throws:
java.rmi.RemoteException - if RMI problem
SimbadException - if SIMBAD error somewhere

updateALink

public int updateALink(byte type,
                       java.lang.String ident1,
                       java.lang.String ident2)
                throws java.rmi.RemoteException,
                       SimbadException
Gestion des liens associatifs

Specified by:
updateALink in interface SimbadInterface
Parameters:
type - type de mise à jour (A : add, D : delete, U : update)
ident1 - identificateur du 1er objet
ident2 - identificateur du 2e objet
Returns:
-1 si echec, un nombre positif ou declanche une exception
Throws:
java.rmi.RemoteException - if RMI problem
SimbadException - if SIMBAD error somewhere