edu.stanford.slac.aida.dp.dpRdb
Class DpRdbI_impl
java.lang.Object
org.omg.PortableServer.Servant
edu.stanford.slac.aida.dp.dpRdb.DpRdbIPOA
edu.stanford.slac.aida.dp.dpRdb.DpRdbI_impl
- All Implemented Interfaces:
- DpRdbIOperations, org.omg.CORBA.portable.InvokeHandler
public class DpRdbI_impl
- extends DpRdbIPOA
This class defines the AIDA Relational Database Data Provider CORBA server implementation
DpRdbI_impl implements the AIDA Data Provider "DpRdbI" CORBA
interface, by extending DpRdbIPOA
- Version:
- 26-Oct-2012, Partha / Greg. Implemented Oracle Wallet support, 05-May-2011, Bob Hall. Modified to invoke getPwd to get Oracle password only once during initialization., 04-Apr-2011, Bob Hall. Changed to use getPwd to get Oracle password., 08-Mar-2011, Bob Hall. Modified default connection string to reference slacprod instead of slac-oracle03., 22-Sep-2008, Greg White. Return " " in place of null Strings returned by Oracle., 9-Jun-2008, initial version.
- Author:
- Greg White
Method Summary |
org.omg.PortableServer.POA |
_default_POA()
|
boolean |
get_boolean(java.lang.String target,
java.lang.String[] args)
|
boolean[] |
get_booleana(java.lang.String target,
java.lang.String[] args)
|
byte |
get_byte(java.lang.String target,
java.lang.String[] args)
|
byte[] |
get_bytea(java.lang.String target,
java.lang.String[] args)
|
char |
get_char(java.lang.String target,
java.lang.String[] args)
|
char[] |
get_chara(java.lang.String target,
java.lang.String[] args)
|
double |
get_double(java.lang.String target,
java.lang.String[] args)
|
double[] |
get_doublea(java.lang.String target,
java.lang.String[] args)
|
float |
get_float(java.lang.String target,
java.lang.String[] args)
|
float[] |
get_floata(java.lang.String target,
java.lang.String[] args)
|
int |
get_long(java.lang.String target,
java.lang.String[] args)
|
int[] |
get_longa(java.lang.String target,
java.lang.String[] args)
|
short |
get_short(java.lang.String target,
java.lang.String[] args)
|
short[] |
get_shorta(java.lang.String target,
java.lang.String[] args)
|
java.lang.String |
get_string(java.lang.String target,
java.lang.String[] args)
|
java.lang.String[] |
get_stringa(java.lang.String target,
java.lang.String[] args)
|
char |
get_wchar(java.lang.String target,
java.lang.String[] args)
|
char[] |
get_wchara(java.lang.String target,
java.lang.String[] args)
|
java.lang.String |
get_wstring(java.lang.String target,
java.lang.String[] args)
|
org.omg.CORBA.Any |
get(java.lang.String query,
java.lang.String[] args)
Takes the SQL "select" expression, executes it, and returns the results. |
void |
init()
|
void |
set(java.lang.String query,
java.lang.String[] args,
org.omg.CORBA.AnyHolder value)
|
void |
shutdown()
|
void |
startMonitor(java.lang.String name)
|
int |
status()
|
void |
stopMonitor(java.lang.String name)
|
Methods inherited from class org.omg.PortableServer.Servant |
_get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_default_POA
public org.omg.PortableServer.POA _default_POA()
- Overrides:
_default_POA
in class org.omg.PortableServer.Servant
init
public void init()
throws edu.stanford.slac.except.ServerInitialisationException
- Throws:
edu.stanford.slac.except.ServerInitialisationException
get
public org.omg.CORBA.Any get(java.lang.String query,
java.lang.String[] args)
throws edu.stanford.slac.except.UnableToGetDataException
- Takes the SQL "select" expression, executes it, and returns the results.
- Parameters:
query
- The SQL select expression from the Aida names databaseargs
- Array of name/value string pairs
- Returns:
- DaValue (encapsulated by CORBA Any), each vector in which
corresponds to one row of the ResultSet resulting from the query.
- Throws:
edu.stanford.slac.except.UnableToGetDataException
get_byte
public byte get_byte(java.lang.String target,
java.lang.String[] args)
throws edu.stanford.slac.except.UnableToGetDataException
- Throws:
edu.stanford.slac.except.UnableToGetDataException
get_short
public short get_short(java.lang.String target,
java.lang.String[] args)
throws edu.stanford.slac.except.UnableToGetDataException
- Throws:
edu.stanford.slac.except.UnableToGetDataException
get_long
public int get_long(java.lang.String target,
java.lang.String[] args)
throws edu.stanford.slac.except.UnableToGetDataException
- Throws:
edu.stanford.slac.except.UnableToGetDataException
get_boolean
public boolean get_boolean(java.lang.String target,
java.lang.String[] args)
throws edu.stanford.slac.except.UnableToGetDataException
- Throws:
edu.stanford.slac.except.UnableToGetDataException
get_double
public double get_double(java.lang.String target,
java.lang.String[] args)
throws edu.stanford.slac.except.UnableToGetDataException
- Throws:
edu.stanford.slac.except.UnableToGetDataException
get_float
public float get_float(java.lang.String target,
java.lang.String[] args)
throws edu.stanford.slac.except.UnableToGetDataException
- Throws:
edu.stanford.slac.except.UnableToGetDataException
get_string
public java.lang.String get_string(java.lang.String target,
java.lang.String[] args)
throws edu.stanford.slac.except.UnableToGetDataException
- Throws:
edu.stanford.slac.except.UnableToGetDataException
get_char
public char get_char(java.lang.String target,
java.lang.String[] args)
throws edu.stanford.slac.except.UnableToGetDataException
- Throws:
edu.stanford.slac.except.UnableToGetDataException
get_wstring
public java.lang.String get_wstring(java.lang.String target,
java.lang.String[] args)
throws edu.stanford.slac.except.UnableToGetDataException
- Throws:
edu.stanford.slac.except.UnableToGetDataException
get_wchar
public char get_wchar(java.lang.String target,
java.lang.String[] args)
throws edu.stanford.slac.except.UnableToGetDataException
- Throws:
edu.stanford.slac.except.UnableToGetDataException
get_bytea
public byte[] get_bytea(java.lang.String target,
java.lang.String[] args)
throws edu.stanford.slac.except.UnableToGetDataException
- Throws:
edu.stanford.slac.except.UnableToGetDataException
get_shorta
public short[] get_shorta(java.lang.String target,
java.lang.String[] args)
throws edu.stanford.slac.except.UnableToGetDataException
- Throws:
edu.stanford.slac.except.UnableToGetDataException
get_longa
public int[] get_longa(java.lang.String target,
java.lang.String[] args)
throws edu.stanford.slac.except.UnableToGetDataException
- Throws:
edu.stanford.slac.except.UnableToGetDataException
get_booleana
public boolean[] get_booleana(java.lang.String target,
java.lang.String[] args)
throws edu.stanford.slac.except.UnableToGetDataException
- Throws:
edu.stanford.slac.except.UnableToGetDataException
get_doublea
public double[] get_doublea(java.lang.String target,
java.lang.String[] args)
throws edu.stanford.slac.except.UnableToGetDataException
- Throws:
edu.stanford.slac.except.UnableToGetDataException
get_floata
public float[] get_floata(java.lang.String target,
java.lang.String[] args)
throws edu.stanford.slac.except.UnableToGetDataException
- Throws:
edu.stanford.slac.except.UnableToGetDataException
get_stringa
public java.lang.String[] get_stringa(java.lang.String target,
java.lang.String[] args)
throws edu.stanford.slac.except.UnableToGetDataException
- Throws:
edu.stanford.slac.except.UnableToGetDataException
get_chara
public char[] get_chara(java.lang.String target,
java.lang.String[] args)
throws edu.stanford.slac.except.UnableToGetDataException
- Throws:
edu.stanford.slac.except.UnableToGetDataException
get_wchara
public char[] get_wchara(java.lang.String target,
java.lang.String[] args)
throws edu.stanford.slac.except.UnableToGetDataException
- Throws:
edu.stanford.slac.except.UnableToGetDataException
set
public void set(java.lang.String query,
java.lang.String[] args,
org.omg.CORBA.AnyHolder value)
throws edu.stanford.slac.except.UnableToSetDataException
- Throws:
edu.stanford.slac.except.UnableToSetDataException
startMonitor
public void startMonitor(java.lang.String name)
throws edu.stanford.slac.except.MonitorStartupException
- Throws:
edu.stanford.slac.except.MonitorStartupException
stopMonitor
public void stopMonitor(java.lang.String name)
throws edu.stanford.slac.except.MonitorShutdownException
- Throws:
edu.stanford.slac.except.MonitorShutdownException
status
public int status()
shutdown
public void shutdown()