TANGO Java API
( TangORB-7.3.3.jar)

fr.esrf.TangoApi
Class DeviceDataHistoryDAODefaultImpl

java.lang.Object
  extended by fr.esrf.TangoApi.DeviceDataHistoryDAODefaultImpl
All Implemented Interfaces:
IDeviceDataHistoryDAO

public class DeviceDataHistoryDAODefaultImpl
extends java.lang.Object
implements IDeviceDataHistoryDAO

Class Description: This class manage data object for Tango device history Data access.


Usage example:

Version:
$Revision: 1.8 $
Author:
verdier

Constructor Summary
DeviceDataHistoryDAODefaultImpl()
           
 
Method Summary
 org.omg.CORBA.Any extractAny(DeviceDataHistory deviceDataHistory)
          extract method for a CORBA Any.
 boolean extractBoolean(DeviceDataHistory deviceDataHistory)
          extract method for a boolean.
 boolean[] extractBooleanArray(DeviceDataHistory deviceDataHistory)
          extract method for a byte Array.
 byte[] extractByteArray(DeviceDataHistory deviceDataHistory)
          extract method for a byte Array.
 DevEncoded extractDevEncoded(DeviceDataHistory deviceDataHistory)
          extract method for an DevEncoded
 DevEncoded[] extractDevEncodedArray(DeviceDataHistory deviceDataHistory)
          extract method for a DevEncoded Array.
 DevState extractDevState(DeviceDataHistory deviceDataHistory)
          extract method for an DevState.
 DevState[] extractDevStateArray(DeviceDataHistory deviceDataHistory)
          extract method for an DevState Array.
 double extractDouble(DeviceDataHistory deviceDataHistory)
          extract method for a double.
 double[] extractDoubleArray(DeviceDataHistory deviceDataHistory)
          extract method for a double Array.
 DevVarDoubleStringArray extractDoubleStringArray(DeviceDataHistory deviceDataHistory)
          extract method for a DevVarDoubleStringArray.
 float extractFloat(DeviceDataHistory deviceDataHistory)
          extract method for a float.
 float[] extractFloatArray(DeviceDataHistory deviceDataHistory)
          extract method for a float Array.
 int extractLong(DeviceDataHistory deviceDataHistory)
          extract method for a long.
 long extractLong64(DeviceDataHistory deviceDataHistory)
          extract method for a long.
 long[] extractLong64Array(DeviceDataHistory deviceDataHistory)
          extract method for a long Array.
 int[] extractLongArray(DeviceDataHistory deviceDataHistory)
          extract method for a long Array.
 DevVarLongStringArray extractLongStringArray(DeviceDataHistory deviceDataHistory)
          extract method for a DevVarLongStringArray.
 short extractShort(DeviceDataHistory deviceDataHistory)
          extract method for a short.
 short[] extractShortArray(DeviceDataHistory deviceDataHistory)
          extract method for a short Array.
 java.lang.String extractString(DeviceDataHistory deviceDataHistory)
          extract method for a String.
 java.lang.String[] extractStringArray(DeviceDataHistory deviceDataHistory)
          extract method for a String Array.
 short extractUChar(DeviceDataHistory deviceDataHistory)
          extract method for an unsigned char.
 short[] extractUCharArray(DeviceDataHistory deviceDataHistory)
          extract method for an unsigned char Array.
 int extractULong(DeviceDataHistory deviceDataHistory)
          extract method for an unsigned long.
 long extractULong64(DeviceDataHistory deviceDataHistory)
          extract method for a long.
 long[] extractULong64Array(DeviceDataHistory deviceDataHistory)
          extract method for a long Array.
 int[] extractULongArray(DeviceDataHistory deviceDataHistory)
          extract method for an unsigned long Array.
 short extractUShort(DeviceDataHistory deviceDataHistory)
          extract method for an unsigned short.
 short[] extractUShortArray(DeviceDataHistory deviceDataHistory)
          extract method for an unsigned short Array.
 AttrQuality getAttrQuality(DeviceDataHistory deviceDataHistory)
          return AttrQuality if from attribute.
 int getDataLength(DeviceDataHistory ddh)
           
 int getDimX(DeviceDataHistory deviceDataHistory)
          Return attribute dim_x if from attribute.
 int getDimY(DeviceDataHistory deviceDataHistory)
          Return attribute dim_y if from attribute.
 DevError[] getErrStack(DeviceDataHistory deviceDataHistory)
          Returns the attribute errors list
 java.lang.String getName(DeviceDataHistory deviceDataHistory)
          Return attribute name.
 int getNbRead(DeviceDataHistory deviceDataHistory)
          Return number of data read.
 int getNbWritten(DeviceDataHistory deviceDataHistory)
          Return number of data written.
 long getTime(DeviceDataHistory deviceDataHistory)
          return time in milliseconds since EPOCH to build a Date class.
 TimeVal getTimeVal(DeviceDataHistory deviceDataHistory)
          Return attribute time value.
 long getTimeValSec(DeviceDataHistory deviceDataHistory)
          Return attribute time value in seconds since EPOCH.
 int getType(DeviceDataHistory deviceDataHistory)
          Returns attribute Tango type.
 int getWrittenDimX(DeviceDataHistory deviceDataHistory)
          Return attribute written dim_x.
 int getWrittenDimY(DeviceDataHistory deviceDataHistory)
          Return attribute written dim_y.
 boolean hasFailed(DeviceDataHistory deviceDataHistory)
          Returns true is attribute failed
 void init(DeviceDataHistory deviceDataHistory, DevAttrHistory_3 att_histo)
          Constructor from an AttributeValue for Device_3Impl.
 void init(DeviceDataHistory deviceDataHistory, DevAttrHistory att_histo)
          Constructor from an AttributeValue.
 void init(DeviceDataHistory deviceDataHistory, java.lang.String cmdname, DevCmdHistory cmd_hist)
          Constructor from a DevCmdHistory.
 void init(DeviceDataHistory deviceDataHistory, java.lang.String name, int source, long t)
          Constructor from an AttributeValue for Device_4Impl.
 void init(DeviceDataHistory deviceDataHistory, java.lang.String name, int source, TimeVal time)
          Constructor from an AttributeValue for Device_4Impl.
 int insert(DeviceDataHistory ddh, boolean[] values, int base)
          Insert values between base and (base-length) if not failed and return base for next insertion.
 int insert(DeviceDataHistory ddh, DevEncoded[] values, int base)
          Insert values between base and (base-length) if not failed and return base for next insertion.
 int insert(DeviceDataHistory ddh, DevState[] values, int base)
          Insert values between base and (base-length) if not failed and return base for next insertion.
 int[] insert(DeviceDataHistory ddh, DevVarDoubleStringArray dsa, int[] bases)
          Insert values between base and (base-length) if not failed and return base for next insertion.
 int[] insert(DeviceDataHistory ddh, DevVarLongStringArray lsa, int[] bases)
          Insert values between base and (base-length) if not failed and return base for next insertion.
 void insert(DeviceDataHistory ddh, double[] values)
          Insert values
 int insert(DeviceDataHistory ddh, double[] values, int base)
          Insert values between base and (base-length) if not failed and return base for next insertion.
 int insert(DeviceDataHistory ddh, float[] values, int base)
          Insert values between base and (base-length) if not failed and return base for next insertion.
 int insert(DeviceDataHistory ddh, int[] values, int base)
          Insert values between base and (base-length) if not failed and return base for next insertion.
 int insert(DeviceDataHistory ddh, long[] values, int base)
          Insert values between base and (base-length) if not failed and return base for next insertion.
 int insert(DeviceDataHistory ddh, short[] values, int base)
          Insert values between base and (base-length) if not failed and return base for next insertion.
 void insert(DeviceDataHistory ddh, java.lang.String[] values)
          Insert values
 int insert(DeviceDataHistory ddh, java.lang.String[] values, int base)
          Insert values between base and (base-length) if not failed and return base for next insertion.
 void setAttrQuality(DeviceDataHistory deviceDataHistory, AttrQuality q)
          Set AttrQuality if from attribute.
 void setDimX(DeviceDataHistory deviceDataHistory, int dim)
          Ret Seturn attribute dim_x if from attribute.
 void setDimY(DeviceDataHistory deviceDataHistory, int dim)
          Ret Seturn attribute dim_y if from attribute.
 void setErrStack(DeviceDataHistory deviceDataHistory, DevError[] err)
          Set the attribute errors list
 void setTimeVal(DeviceDataHistory deviceDataHistory, TimeVal tval)
          Set attribute time value.
 void setWrittenDimX(DeviceDataHistory deviceDataHistory, int dim)
          Set attribute written dim_x.
 void setWrittenDimY(DeviceDataHistory deviceDataHistory, int dim)
          Set attribute written dim_y.
 org.omg.CORBA.TypeCode type(DeviceDataHistory deviceDataHistory)
          Returns the attribute type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceDataHistoryDAODefaultImpl

public DeviceDataHistoryDAODefaultImpl()
Method Detail

init

public void init(DeviceDataHistory deviceDataHistory,
                 java.lang.String cmdname,
                 DevCmdHistory cmd_hist)
          throws DevFailed
Constructor from a DevCmdHistory.

Specified by:
init in interface IDeviceDataHistoryDAO
Throws:
DevFailed

init

public void init(DeviceDataHistory deviceDataHistory,
                 DevAttrHistory att_histo)
          throws DevFailed
Constructor from an AttributeValue.

Specified by:
init in interface IDeviceDataHistoryDAO
Throws:
DevFailed

init

public void init(DeviceDataHistory deviceDataHistory,
                 DevAttrHistory_3 att_histo)
          throws DevFailed
Constructor from an AttributeValue for Device_3Impl.

Specified by:
init in interface IDeviceDataHistoryDAO
Throws:
DevFailed

init

public void init(DeviceDataHistory deviceDataHistory,
                 java.lang.String name,
                 int source,
                 TimeVal time)
          throws DevFailed
Constructor from an AttributeValue for Device_4Impl.

Specified by:
init in interface IDeviceDataHistoryDAO
Throws:
DevFailed

init

public void init(DeviceDataHistory deviceDataHistory,
                 java.lang.String name,
                 int source,
                 long t)
          throws DevFailed
Constructor from an AttributeValue for Device_4Impl.

Specified by:
init in interface IDeviceDataHistoryDAO
Throws:
DevFailed

setTimeVal

public void setTimeVal(DeviceDataHistory deviceDataHistory,
                       TimeVal tval)
Set attribute time value.

Specified by:
setTimeVal in interface IDeviceDataHistoryDAO

getTimeVal

public TimeVal getTimeVal(DeviceDataHistory deviceDataHistory)
Return attribute time value.

Specified by:
getTimeVal in interface IDeviceDataHistoryDAO

getTimeValSec

public long getTimeValSec(DeviceDataHistory deviceDataHistory)
Return attribute time value in seconds since EPOCH.

Specified by:
getTimeValSec in interface IDeviceDataHistoryDAO

getTime

public long getTime(DeviceDataHistory deviceDataHistory)
return time in milliseconds since EPOCH to build a Date class.

Specified by:
getTime in interface IDeviceDataHistoryDAO

setAttrQuality

public void setAttrQuality(DeviceDataHistory deviceDataHistory,
                           AttrQuality q)
                    throws DevFailed
Set AttrQuality if from attribute.

Specified by:
setAttrQuality in interface IDeviceDataHistoryDAO
Throws:
DevFailed

getAttrQuality

public AttrQuality getAttrQuality(DeviceDataHistory deviceDataHistory)
                           throws DevFailed
return AttrQuality if from attribute.

Specified by:
getAttrQuality in interface IDeviceDataHistoryDAO
Throws:
DevFailed

setDimX

public void setDimX(DeviceDataHistory deviceDataHistory,
                    int dim)
             throws DevFailed
Ret Seturn attribute dim_x if from attribute.

Specified by:
setDimX in interface IDeviceDataHistoryDAO
Throws:
DevFailed

setDimY

public void setDimY(DeviceDataHistory deviceDataHistory,
                    int dim)
             throws DevFailed
Ret Seturn attribute dim_y if from attribute.

Specified by:
setDimY in interface IDeviceDataHistoryDAO
Throws:
DevFailed

getDimX

public int getDimX(DeviceDataHistory deviceDataHistory)
            throws DevFailed
Return attribute dim_x if from attribute.

Specified by:
getDimX in interface IDeviceDataHistoryDAO
Throws:
DevFailed

getDimY

public int getDimY(DeviceDataHistory deviceDataHistory)
            throws DevFailed
Return attribute dim_y if from attribute.

Specified by:
getDimY in interface IDeviceDataHistoryDAO
Throws:
DevFailed

hasFailed

public boolean hasFailed(DeviceDataHistory deviceDataHistory)
Returns true is attribute failed

Specified by:
hasFailed in interface IDeviceDataHistoryDAO

setErrStack

public void setErrStack(DeviceDataHistory deviceDataHistory,
                        DevError[] err)
Set the attribute errors list

Specified by:
setErrStack in interface IDeviceDataHistoryDAO

getErrStack

public DevError[] getErrStack(DeviceDataHistory deviceDataHistory)
Returns the attribute errors list

Specified by:
getErrStack in interface IDeviceDataHistoryDAO

getName

public java.lang.String getName(DeviceDataHistory deviceDataHistory)
Return attribute name.

Specified by:
getName in interface IDeviceDataHistoryDAO

getNbRead

public int getNbRead(DeviceDataHistory deviceDataHistory)
Return number of data read.

Specified by:
getNbRead in interface IDeviceDataHistoryDAO

getNbWritten

public int getNbWritten(DeviceDataHistory deviceDataHistory)
Return number of data written.

Specified by:
getNbWritten in interface IDeviceDataHistoryDAO

setWrittenDimX

public void setWrittenDimX(DeviceDataHistory deviceDataHistory,
                           int dim)
Set attribute written dim_x.

Specified by:
setWrittenDimX in interface IDeviceDataHistoryDAO

setWrittenDimY

public void setWrittenDimY(DeviceDataHistory deviceDataHistory,
                           int dim)
Set attribute written dim_y.

Specified by:
setWrittenDimY in interface IDeviceDataHistoryDAO

getWrittenDimX

public int getWrittenDimX(DeviceDataHistory deviceDataHistory)
Return attribute written dim_x.

Specified by:
getWrittenDimX in interface IDeviceDataHistoryDAO

getWrittenDimY

public int getWrittenDimY(DeviceDataHistory deviceDataHistory)
Return attribute written dim_y.

Specified by:
getWrittenDimY in interface IDeviceDataHistoryDAO

extractAny

public org.omg.CORBA.Any extractAny(DeviceDataHistory deviceDataHistory)
                             throws DevFailed
extract method for a CORBA Any.

Specified by:
extractAny in interface IDeviceDataHistoryDAO
Throws:
DevFailed

extractBoolean

public boolean extractBoolean(DeviceDataHistory deviceDataHistory)
                       throws DevFailed
extract method for a boolean.

Specified by:
extractBoolean in interface IDeviceDataHistoryDAO
Throws:
DevFailed

extractUChar

public short extractUChar(DeviceDataHistory deviceDataHistory)
                   throws DevFailed
extract method for an unsigned char.

Specified by:
extractUChar in interface IDeviceDataHistoryDAO
Returns:
the extracted value.
Throws:
DevFailed

extractShort

public short extractShort(DeviceDataHistory deviceDataHistory)
                   throws DevFailed
extract method for a short.

Specified by:
extractShort in interface IDeviceDataHistoryDAO
Throws:
DevFailed

extractUShort

public short extractUShort(DeviceDataHistory deviceDataHistory)
                    throws DevFailed
extract method for an unsigned short.

Specified by:
extractUShort in interface IDeviceDataHistoryDAO
Throws:
DevFailed

extractLong

public int extractLong(DeviceDataHistory deviceDataHistory)
                throws DevFailed
extract method for a long.

Specified by:
extractLong in interface IDeviceDataHistoryDAO
Throws:
DevFailed

extractULong

public int extractULong(DeviceDataHistory deviceDataHistory)
                 throws DevFailed
extract method for an unsigned long.

Specified by:
extractULong in interface IDeviceDataHistoryDAO
Throws:
DevFailed

extractLong64

public long extractLong64(DeviceDataHistory deviceDataHistory)
                   throws DevFailed
extract method for a long.

Specified by:
extractLong64 in interface IDeviceDataHistoryDAO
Returns:
the extracted value.
Throws:
DevFailed - in case of read_attribute failed or if AttrQuality is ATTR_INVALID.

extractULong64

public long extractULong64(DeviceDataHistory deviceDataHistory)
                    throws DevFailed
extract method for a long.

Specified by:
extractULong64 in interface IDeviceDataHistoryDAO
Returns:
the extracted value.
Throws:
DevFailed - in case of read_attribute failed or if AttrQuality is ATTR_INVALID.

extractFloat

public float extractFloat(DeviceDataHistory deviceDataHistory)
                   throws DevFailed
extract method for a float.

Specified by:
extractFloat in interface IDeviceDataHistoryDAO
Throws:
DevFailed

extractDouble

public double extractDouble(DeviceDataHistory deviceDataHistory)
                     throws DevFailed
extract method for a double.

Specified by:
extractDouble in interface IDeviceDataHistoryDAO
Throws:
DevFailed

extractString

public java.lang.String extractString(DeviceDataHistory deviceDataHistory)
                               throws DevFailed
extract method for a String.

Specified by:
extractString in interface IDeviceDataHistoryDAO
Throws:
DevFailed

extractDevState

public DevState extractDevState(DeviceDataHistory deviceDataHistory)
                         throws DevFailed
extract method for an DevState.

Specified by:
extractDevState in interface IDeviceDataHistoryDAO
Returns:
the extracted value.
Throws:
DevFailed - in case of read_attribute failed or if AttrQuality is ATTR_INVALID.

extractDevEncoded

public DevEncoded extractDevEncoded(DeviceDataHistory deviceDataHistory)
                             throws DevFailed
extract method for an DevEncoded

Specified by:
extractDevEncoded in interface IDeviceDataHistoryDAO
Returns:
the extracted value.
Throws:
DevFailed - in case of read_attribute failed or if AttrQuality is ATTR_INVALID.

extractBooleanArray

public boolean[] extractBooleanArray(DeviceDataHistory deviceDataHistory)
                              throws DevFailed
extract method for a byte Array.

Specified by:
extractBooleanArray in interface IDeviceDataHistoryDAO
Throws:
DevFailed

extractByteArray

public byte[] extractByteArray(DeviceDataHistory deviceDataHistory)
                        throws DevFailed
extract method for a byte Array.

Specified by:
extractByteArray in interface IDeviceDataHistoryDAO
Throws:
DevFailed

extractUCharArray

public short[] extractUCharArray(DeviceDataHistory deviceDataHistory)
                          throws DevFailed
extract method for an unsigned char Array.

Specified by:
extractUCharArray in interface IDeviceDataHistoryDAO
Returns:
the extracted value.
Throws:
DevFailed

extractShortArray

public short[] extractShortArray(DeviceDataHistory deviceDataHistory)
                          throws DevFailed
extract method for a short Array.

Specified by:
extractShortArray in interface IDeviceDataHistoryDAO
Throws:
DevFailed

extractUShortArray

public short[] extractUShortArray(DeviceDataHistory deviceDataHistory)
                           throws DevFailed
extract method for an unsigned short Array.

Specified by:
extractUShortArray in interface IDeviceDataHistoryDAO
Throws:
DevFailed

extractLongArray

public int[] extractLongArray(DeviceDataHistory deviceDataHistory)
                       throws DevFailed
extract method for a long Array.

Specified by:
extractLongArray in interface IDeviceDataHistoryDAO
Throws:
DevFailed

extractULongArray

public int[] extractULongArray(DeviceDataHistory deviceDataHistory)
                        throws DevFailed
extract method for an unsigned long Array.

Specified by:
extractULongArray in interface IDeviceDataHistoryDAO
Throws:
DevFailed

extractLong64Array

public long[] extractLong64Array(DeviceDataHistory deviceDataHistory)
                          throws DevFailed
extract method for a long Array.

Specified by:
extractLong64Array in interface IDeviceDataHistoryDAO
Returns:
the extracted value.
Throws:
DevFailed - in case of read_attribute failed or if AttrQuality is ATTR_INVALID.

extractULong64Array

public long[] extractULong64Array(DeviceDataHistory deviceDataHistory)
                           throws DevFailed
extract method for a long Array.

Specified by:
extractULong64Array in interface IDeviceDataHistoryDAO
Returns:
the extracted value.
Throws:
DevFailed - in case of read_attribute failed or if AttrQuality is ATTR_INVALID.

extractFloatArray

public float[] extractFloatArray(DeviceDataHistory deviceDataHistory)
                          throws DevFailed
extract method for a float Array.

Specified by:
extractFloatArray in interface IDeviceDataHistoryDAO
Throws:
DevFailed

extractDoubleArray

public double[] extractDoubleArray(DeviceDataHistory deviceDataHistory)
                            throws DevFailed
extract method for a double Array.

Specified by:
extractDoubleArray in interface IDeviceDataHistoryDAO
Throws:
DevFailed

extractStringArray

public java.lang.String[] extractStringArray(DeviceDataHistory deviceDataHistory)
                                      throws DevFailed
extract method for a String Array.

Specified by:
extractStringArray in interface IDeviceDataHistoryDAO
Throws:
DevFailed

extractDevStateArray

public DevState[] extractDevStateArray(DeviceDataHistory deviceDataHistory)
                                throws DevFailed
extract method for an DevState Array.

Specified by:
extractDevStateArray in interface IDeviceDataHistoryDAO
Returns:
the extracted value.
Throws:
DevFailed - in case of read_attribute failed or if AttrQuality is ATTR_INVALID.

extractDevEncodedArray

public DevEncoded[] extractDevEncodedArray(DeviceDataHistory deviceDataHistory)
                                    throws DevFailed
extract method for a DevEncoded Array.

Specified by:
extractDevEncodedArray in interface IDeviceDataHistoryDAO
Throws:
DevFailed

extractLongStringArray

public DevVarLongStringArray extractLongStringArray(DeviceDataHistory deviceDataHistory)
                                             throws DevFailed
extract method for a DevVarLongStringArray.

Specified by:
extractLongStringArray in interface IDeviceDataHistoryDAO
Throws:
DevFailed

extractDoubleStringArray

public DevVarDoubleStringArray extractDoubleStringArray(DeviceDataHistory deviceDataHistory)
                                                 throws DevFailed
extract method for a DevVarDoubleStringArray.

Specified by:
extractDoubleStringArray in interface IDeviceDataHistoryDAO
Throws:
DevFailed

type

public org.omg.CORBA.TypeCode type(DeviceDataHistory deviceDataHistory)
Returns the attribute type

Specified by:
type in interface IDeviceDataHistoryDAO

getType

public int getType(DeviceDataHistory deviceDataHistory)
            throws DevFailed
Description copied from interface: IDeviceDataHistoryDAO
Returns attribute Tango type.

Specified by:
getType in interface IDeviceDataHistoryDAO
Throws:
DevFailed

getDataLength

public int getDataLength(DeviceDataHistory ddh)
                  throws DevFailed
Specified by:
getDataLength in interface IDeviceDataHistoryDAO
Throws:
DevFailed

insert

public int insert(DeviceDataHistory ddh,
                  boolean[] values,
                  int base)
           throws DevFailed
Insert values between base and (base-length) if not failed and return base for next insertion.

Specified by:
insert in interface IDeviceDataHistoryDAO
Parameters:
ddh - DeviceDataHistory object.
values - values to be inserted
base - base index to start to get values
Returns:
base index for next insertion.
Throws:
DevFailed

insert

public int insert(DeviceDataHistory ddh,
                  short[] values,
                  int base)
           throws DevFailed
Insert values between base and (base-length) if not failed and return base for next insertion.

Specified by:
insert in interface IDeviceDataHistoryDAO
Parameters:
ddh - DeviceDataHistory object.
values - values to be inserted
base - base index to start to get values
Returns:
base index for next insertion.
Throws:
DevFailed

insert

public int insert(DeviceDataHistory ddh,
                  int[] values,
                  int base)
           throws DevFailed
Insert values between base and (base-length) if not failed and return base for next insertion.

Specified by:
insert in interface IDeviceDataHistoryDAO
Parameters:
ddh - DeviceDataHistory object.
values - values to be inserted
base - base index to start to get values
Returns:
base index for next insertion.
Throws:
DevFailed

insert

public int insert(DeviceDataHistory ddh,
                  long[] values,
                  int base)
           throws DevFailed
Insert values between base and (base-length) if not failed and return base for next insertion.

Specified by:
insert in interface IDeviceDataHistoryDAO
Parameters:
ddh - DeviceDataHistory object.
values - values to be inserted
base - base index to start to get values
Returns:
base index for next insertion.
Throws:
DevFailed

insert

public int insert(DeviceDataHistory ddh,
                  float[] values,
                  int base)
           throws DevFailed
Insert values between base and (base-length) if not failed and return base for next insertion.

Specified by:
insert in interface IDeviceDataHistoryDAO
Parameters:
ddh - DeviceDataHistory object.
values - values to be inserted
base - base index to start to get values
Returns:
base index for next insertion.
Throws:
DevFailed

insert

public int insert(DeviceDataHistory ddh,
                  double[] values,
                  int base)
           throws DevFailed
Insert values between base and (base-length) if not failed and return base for next insertion.

Specified by:
insert in interface IDeviceDataHistoryDAO
Parameters:
ddh - DeviceDataHistory object.
values - values to be inserted
base - base index to start to get values
Returns:
base index for next insertion.
Throws:
DevFailed

insert

public int insert(DeviceDataHistory ddh,
                  java.lang.String[] values,
                  int base)
           throws DevFailed
Insert values between base and (base-length) if not failed and return base for next insertion.

Specified by:
insert in interface IDeviceDataHistoryDAO
Parameters:
ddh - DeviceDataHistory object.
values - values to be inserted
base - base index to start to get values
Returns:
base index for next insertion.
Throws:
DevFailed

insert

public int insert(DeviceDataHistory ddh,
                  DevState[] values,
                  int base)
           throws DevFailed
Insert values between base and (base-length) if not failed and return base for next insertion.

Specified by:
insert in interface IDeviceDataHistoryDAO
Parameters:
ddh - DeviceDataHistory object.
values - values to be inserted
base - base index to start to get values
Returns:
base index for next insertion.
Throws:
DevFailed

insert

public int insert(DeviceDataHistory ddh,
                  DevEncoded[] values,
                  int base)
           throws DevFailed
Insert values between base and (base-length) if not failed and return base for next insertion.

Specified by:
insert in interface IDeviceDataHistoryDAO
Parameters:
ddh - DeviceDataHistory object.
values - values to be inserted
base - base index to start to get values
Returns:
base index for next insertion.
Throws:
DevFailed

insert

public int[] insert(DeviceDataHistory ddh,
                    DevVarLongStringArray lsa,
                    int[] bases)
             throws DevFailed
Insert values between base and (base-length) if not failed and return base for next insertion.

Specified by:
insert in interface IDeviceDataHistoryDAO
Parameters:
ddh - DeviceDataHistory object.
lsa - values to be inserted
bases - strin base index and numeric base insex to start to get values
Returns:
base index for next insertion.
Throws:
DevFailed

insert

public int[] insert(DeviceDataHistory ddh,
                    DevVarDoubleStringArray dsa,
                    int[] bases)
             throws DevFailed
Insert values between base and (base-length) if not failed and return base for next insertion.

Specified by:
insert in interface IDeviceDataHistoryDAO
Parameters:
ddh - DeviceDataHistory object.
dsa - values to be inserted
bases - strin base index and numeric base insex to start to get values
Returns:
base index for next insertion.
Throws:
DevFailed

insert

public void insert(DeviceDataHistory ddh,
                   double[] values)
            throws DevFailed
Insert values

Specified by:
insert in interface IDeviceDataHistoryDAO
Parameters:
values - values to be inserted
Throws:
DevFailed

insert

public void insert(DeviceDataHistory ddh,
                   java.lang.String[] values)
            throws DevFailed
Insert values

Specified by:
insert in interface IDeviceDataHistoryDAO
Parameters:
values - values to be inserted
Throws:
DevFailed

TANGO Java API
( TangORB-7.3.3.jar)