Skip to content
Snippets Groups Projects
Commit 2e56ea80 authored by Gwenaelle ABEILLE's avatar Gwenaelle ABEILLE
Browse files

remove unused code

parent a8d36a27
Branches
No related tags found
No related merge requests found
Showing
with 0 additions and 2690 deletions
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>fr.soleil.deviceservers</groupId>
<artifactId>snaparchivingservers</artifactId>
<version>1.7.14-SNAPSHOT</version>
</parent>
<artifactId>formersnapextractor</artifactId>
<name>Former SnapExtractor</name>
<description>Former implementation of SnapExtractor device</description>
<scm>
<connection>
scm:svn:${scm.connection.svn.tango-cs}:archiving/server/snapArchivingServers/formersnapextractor
</connection>
<developerConnection>
scm:svn:${scm.developerConnection.svn.tango-cs}:archiving/server/snapArchivingServers/formersnapextractor
</developerConnection>
<url>${scm.url.svn.tango-cs}/archiving/server/snapArchivingServers/formersnapextractor</url>
</scm>
<build>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.tango</groupId>
<artifactId>TangORB</artifactId>
</dependency>
<dependency>
<groupId>fr.soleil.lib</groupId>
<artifactId>snapArchivingApi</artifactId>
</dependency>
<dependency>
<groupId>org.tango</groupId>
<artifactId>JTangoClientLang</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>
\ No newline at end of file
// +======================================================================
// $Source: /cvsroot/tango-cs/tango/jserver/snapshoting/SnapExtractor/GetSnapClass.java,v $
//
// Project: Tango Device Server
//
// Description: Java source code for the command TemplateClass of the
// SnapExtractor class.
//
// $Author: ounsy $
//
// $Revision: 1.1 $
//
// $Log: GetSnapClass.java,v $
// Revision 1.1 2006/02/07 13:03:52 ounsy
// moved from the Archiving package
//
// Revision 1.1 2006/01/27 14:39:14 ounsy
// new device for snap extracting
//
//
// copyleft : European Synchrotron Radiation Facility
// BP 220, Grenoble 38043
// FRANCE
//
//-======================================================================
//
// This file is generated by POGO
// (Program Obviously used to Generate tango Object)
//
// (c) - Software Engineering Group - ESRF
//=============================================================================
/**
* @author $Author: ounsy $
* @version $Revision: 1.1 $
*/
package SnapExtractor;
import org.omg.CORBA.Any;
import fr.esrf.Tango.DevFailed;
import fr.esrf.Tango.DevState;
import fr.esrf.Tango.DispLevel;
import fr.esrf.TangoDs.Command;
import fr.esrf.TangoDs.DeviceImpl;
import fr.esrf.TangoDs.Except;
import fr.esrf.TangoDs.TangoConst;
import fr.esrf.TangoDs.Util;
/**
* Class Description:
*
*/
public class GetSnapClass extends Command implements TangoConst {
// ===============================================================
/**
* Constructor for Command class GetSnapClass
*
* @param name
* command name
* @param in
* argin type
* @param out
* argout type
*/
// ===============================================================
public GetSnapClass(String name, int in, int out) {
super(name, in, out);
}
// ===============================================================
/**
* Constructor for Command class GetSnapClass
*
* @param name
* command name
* @param in
* argin type
* @param in_comments
* argin description
* @param out
* argout type
* @param out_comments
* argout description
*/
// ===============================================================
public GetSnapClass(String name, int in, int out, String in_comments, String out_comments) {
super(name, in, out, in_comments, out_comments);
}
// ===============================================================
/**
* Constructor for Command class GetSnapClass
*
* @param name
* command name
* @param in
* argin type
* @param in_comments
* argin description
* @param out
* argout type
* @param out_comments
* argout description
* @param level
* The command display type OPERATOR or EXPERT
*/
// ===============================================================
public GetSnapClass(String name, int in, int out, String in_comments, String out_comments, DispLevel level) {
super(name, in, out, in_comments, out_comments, level);
}
// ===============================================================
/**
* return the result of the device's command.
*/
// ===============================================================
@Override
public Any execute(DeviceImpl device, Any in_any) throws DevFailed {
Util.out2.println("GetSnapClass.execute(): arrived");
int argin = extract_DevLong(in_any);
if (argin < 0) {
Except.throw_exception("INPUT_ERROR", "Invalid Snapshot ID", "SnapExtractor.GetSnap");
}
return insert(((SnapExtractor) (device)).get_snap(argin));
}
// ===============================================================
/**
* Check if it is allowed to execute the command.
*/
// ===============================================================
@Override
public boolean is_allowed(DeviceImpl device, Any data_in) {
if (device.get_state() == DevState.OFF || device.get_state() == DevState.INIT
|| device.get_state() == DevState.FAULT || device.get_state() == DevState.EXTRACT
|| device.get_state() == DevState.UNKNOWN) {
// End of Generated Code
// Re-Start of Generated Code
return false;
}
return true;
}
}
// -----------------------------------------------------------------------------
/*
* end of $Source:
* /cvsroot/tango-cs/tango/jserver/snapshoting/SnapExtractor/GetSnapClass.java,v
* $
*/
/**
*
*/
package SnapExtractor;
import org.omg.CORBA.Any;
import fr.esrf.Tango.DevFailed;
import fr.esrf.Tango.DispLevel;
import fr.esrf.TangoDs.Command;
import fr.esrf.TangoDs.DeviceImpl;
import fr.esrf.TangoDs.Except;
import fr.esrf.TangoDs.TangoConst;
import fr.esrf.TangoDs.Util;
/**
* @author AYADI
*
*/
public class GetSnapIDClass extends Command implements TangoConst {
/**
* @param s
* @param in
* @param out
*/
public GetSnapIDClass(String s, int in, int out) {
super(s, in, out);
// TODO Auto-generated constructor stub
}
/**
* @param s
* @param in
* @param out
* @param level
*/
public GetSnapIDClass(String s, int in, int out, DispLevel level) {
super(s, in, out, level);
// TODO Auto-generated constructor stub
}
/**
* @param s
* @param in
* @param out
* @param in_desc
* @param out_desc
*/
public GetSnapIDClass(String s, int in, int out, String in_desc, String out_desc) {
super(s, in, out, in_desc, out_desc);
// TODO Auto-generated constructor stub
}
/**
* @param s
* @param in
* @param out
* @param in_desc
* @param out_desc
* @param level
*/
public GetSnapIDClass(String s, int in, int out, String in_desc, String out_desc, DispLevel level) {
super(s, in, out, in_desc, out_desc, level);
// TODO Auto-generated constructor stub
}
/*
* (non-Javadoc)
*
* @see fr.esrf.TangoDs.Command#execute(fr.esrf.TangoDs.DeviceImpl,
* org.omg.CORBA.Any)
*/
@Override
public Any execute(DeviceImpl device, Any in_any) throws DevFailed {
// TODO Auto-generated method stub
Util.out2.println("GetSnapIDClass.execute(): arrived");
String[] in = extract_DevVarStringArray(in_any);
int ctxID = -1;
try {
ctxID = Integer.parseInt(in[0]);
if (ctxID < 0) {
Except.throw_exception("INPUT_ERROR", "Invalid Context ID", "SnapExtractor.GetSnapID");
}
} catch (Exception e) {
Except.throw_exception("INPUT_ERROR", "Invalid Context ID", "SnapExtractor.GetSnapID");
}
String[] criterions = getCriterions(in);
return insert(((SnapExtractor) (device)).get_snap_id(ctxID, criterions));
}
private String[] getCriterions(String[] in) {
// TODO Auto-generated method stub
String[] res = new String[in.length - 1];
for (int i = 1; i < in.length; i++) {
res[i - 1] = in[i];
}
return res;
}
}
/**
*
*/
package SnapExtractor;
import org.omg.CORBA.Any;
import fr.esrf.Tango.DevFailed;
import fr.esrf.Tango.DevState;
import fr.esrf.Tango.DispLevel;
import fr.esrf.TangoDs.Command;
import fr.esrf.TangoDs.DeviceImpl;
import fr.esrf.TangoDs.Except;
import fr.esrf.TangoDs.TangoConst;
import fr.esrf.TangoDs.Util;
/**
* @author AYADI
*
*/
public class GetSnapValueClass extends Command implements TangoConst {
/**
* @param s
* @param in
* @param out
* @param level
*/
public GetSnapValueClass(String s, int in, int out, DispLevel level) {
super(s, in, out, level);
// TODO Auto-generated constructor stub
}
/**
* @param s
* @param in
* @param out
* @param in_desc
* @param out_desc
* @param level
*/
public GetSnapValueClass(String s, int in, int out, String in_desc, String out_desc, DispLevel level) {
super(s, in, out, in_desc, out_desc, level);
// TODO Auto-generated constructor stub
}
/**
* @param s
* @param in
* @param out
* @param in_desc
* @param out_desc
*/
public GetSnapValueClass(String s, int in, int out, String in_desc, String out_desc) {
super(s, in, out, in_desc, out_desc);
// TODO Auto-generated constructor stub
}
public GetSnapValueClass(String s, int in, int out) {
super(s, in, out);
// TODO Auto-generated constructor stub
}
/*
* (non-Javadoc)
*
* @see fr.esrf.TangoDs.Command#execute(fr.esrf.TangoDs.DeviceImpl,
* org.omg.CORBA.Any)
*/
@Override
public Any execute(DeviceImpl device, Any in_any) throws DevFailed {
// TODO Auto-generated method stub
Util.out2.println("GetSnapValueClass.execute(): arrived");
String[] in = extract_DevVarStringArray(in_any);
int snapID = -1;
try {
snapID = Integer.parseInt(in[0]);
if (snapID < 0) {
Except.throw_exception("INPUT_ERROR", "Invalid Snapshot ID", "SnapExtractor.GetSnapValue");
}
} catch (Exception e) {
Except.throw_exception("INPUT_ERROR", "Invalid Snapshot ID", "SnapExtractor.GetSnapValue");
}
String attr_name = in[1];
return insert(((SnapExtractor) (device)).get_snap_value(snapID, attr_name));
}
// ===============================================================
/**
* Check if it is allowed to execute the command.
*/
// ===============================================================
@Override
public boolean is_allowed(DeviceImpl device, Any data_in) {
if (device.get_state() == DevState.OFF || device.get_state() == DevState.INIT
|| device.get_state() == DevState.FAULT || device.get_state() == DevState.EXTRACT
|| device.get_state() == DevState.UNKNOWN) {
// End of Generated Code
// Re-Start of Generated Code
return false;
}
return true;
}
}
/**
*
*/
package SnapExtractor;
import java.util.Arrays;
import org.omg.CORBA.Any;
import fr.esrf.Tango.DevFailed;
import fr.esrf.Tango.DevState;
import fr.esrf.Tango.DispLevel;
import fr.esrf.TangoDs.Command;
import fr.esrf.TangoDs.DeviceImpl;
import fr.esrf.TangoDs.Except;
import fr.esrf.TangoDs.TangoConst;
/**
* @author AYADI
*
*/
public class GetSnapValuesClass extends Command implements TangoConst {
/**
* @param s
* @param in
* @param out
* @param level
*/
public GetSnapValuesClass(String s, int in, int out, DispLevel level) {
super(s, in, out, level);
// TODO Auto-generated constructor stub
}
/**
* @param s
* @param in
* @param out
* @param in_desc
* @param out_desc
* @param level
*/
public GetSnapValuesClass(String s, int in, int out, String in_desc, String out_desc, DispLevel level) {
super(s, in, out, in_desc, out_desc, level);
// TODO Auto-generated constructor stub
}
/**
* @param s
* @param in
* @param out
* @param in_desc
* @param out_desc
*/
public GetSnapValuesClass(String s, int in, int out, String in_desc, String out_desc) {
super(s, in, out, in_desc, out_desc);
// TODO Auto-generated constructor stub
}
public GetSnapValuesClass(String s, int in, int out) {
super(s, in, out);
// TODO Auto-generated constructor stub
}
/*
* (non-Javadoc)
*
* @see fr.esrf.TangoDs.Command#execute(fr.esrf.TangoDs.DeviceImpl,
* org.omg.CORBA.Any)
*/
@Override
public Any execute(DeviceImpl device, Any in_any) throws DevFailed {
String[] in = extract_DevVarStringArray(in_any);
int snapID = -1;
boolean readValues = true;
try {
snapID = Integer.parseInt(in[0]);
if (snapID < 0) {
Except.throw_exception("INPUT_ERROR", "Invalid Snapshot ID", "SnapExtractor.GetSnapValues");
}
readValues = Boolean.parseBoolean(in[1]);
} catch (Exception e) {
Except.throw_exception("INPUT_ERROR", "Invalid Snapshot ID or readValues", "SnapExtractor.GetSnapValues");
}
String[] attrNames = Arrays.copyOfRange(in, 2, in.length);
return insert(((SnapExtractor) device).getSnapValues(snapID, readValues, attrNames));
}
// ===============================================================
/**
* Check if it is allowed to execute the command.
*/
// ===============================================================
@Override
public boolean is_allowed(DeviceImpl device, Any data_in) {
if (device.get_state() == DevState.OFF || device.get_state() == DevState.INIT
|| device.get_state() == DevState.FAULT || device.get_state() == DevState.EXTRACT
|| device.get_state() == DevState.UNKNOWN) {
// End of Generated Code
// Re-Start of Generated Code
return false;
}
return true;
}
}
// +======================================================================
// $Source: /cvsroot/tango-cs/tango/jserver/snapshoting/SnapExtractor/GetSnapsForContextClass.java,v $
//
// Project: Tango Device Server
//
// Description: Java source code for the command TemplateClass of the
// SnapExtractor class.
//
// $Author: ounsy $
//
// $Revision: 1.1 $
//
// $Log: GetSnapsForContextClass.java,v $
// Revision 1.1 2006/02/07 13:03:52 ounsy
// moved from the Archiving package
//
// Revision 1.1 2006/01/27 14:39:14 ounsy
// new device for snap extracting
//
//
// copyleft : European Synchrotron Radiation Facility
// BP 220, Grenoble 38043
// FRANCE
//
//-======================================================================
//
// This file is generated by POGO
// (Program Obviously used to Generate tango Object)
//
// (c) - Software Engineering Group - ESRF
//=============================================================================
/**
* @author $Author: ounsy $
* @version $Revision: 1.1 $
*/
package SnapExtractor;
import org.omg.CORBA.Any;
import fr.esrf.Tango.DevFailed;
import fr.esrf.Tango.DevState;
import fr.esrf.Tango.DispLevel;
import fr.esrf.TangoDs.Command;
import fr.esrf.TangoDs.DeviceImpl;
import fr.esrf.TangoDs.TangoConst;
import fr.esrf.TangoDs.Util;
/**
* Class Description: Returns snapshots for a given context id
*/
public class GetSnapsForContextClass extends Command implements TangoConst {
// ===============================================================
/**
* Constructor for Command class GetSnapsForContextClass
*
* @param name
* command name
* @param in
* argin type
* @param out
* argout type
*/
// ===============================================================
public GetSnapsForContextClass(String name, int in, int out) {
super(name, in, out);
}
// ===============================================================
/**
* Constructor for Command class GetSnapsForContextClass
*
* @param name
* command name
* @param in
* argin type
* @param in_comments
* argin description
* @param out
* argout type
* @param out_comments
* argout description
*/
// ===============================================================
public GetSnapsForContextClass(String name, int in, int out, String in_comments, String out_comments) {
super(name, in, out, in_comments, out_comments);
}
// ===============================================================
/**
* Constructor for Command class GetSnapsForContextClass
*
* @param name
* command name
* @param in
* argin type
* @param in_comments
* argin description
* @param out
* argout type
* @param out_comments
* argout description
* @param level
* The command display type OPERATOR or EXPERT
*/
// ===============================================================
public GetSnapsForContextClass(String name, int in, int out, String in_comments, String out_comments,
DispLevel level) {
super(name, in, out, in_comments, out_comments, level);
}
// ===============================================================
/**
* return the result of the device's command.
*/
// ===============================================================
@Override
public Any execute(DeviceImpl device, Any in_any) throws DevFailed {
Util.out2.println("GetSnapsForContextClass.execute(): arrived");
int argin = extract_DevLong(in_any);
return insert(((SnapExtractor) (device)).get_snaps_for_context(argin));
}
// ===============================================================
/**
* Check if it is allowed to execute the command.
*/
// ===============================================================
@Override
public boolean is_allowed(DeviceImpl device, Any data_in) {
if (device.get_state() == DevState.OFF || device.get_state() == DevState.INIT
|| device.get_state() == DevState.FAULT || device.get_state() == DevState.EXTRACT
|| device.get_state() == DevState.UNKNOWN) {
// End of Generated Code
// Re-Start of Generated Code
return false;
}
return true;
}
}
// -----------------------------------------------------------------------------
/*
* end of $Source:
* /cvsroot/tango-cs/tango/jserver/snapshoting/SnapExtractor/GetSnapsForContextClass
* .java,v $
*/
package SnapExtractor;
import org.omg.CORBA.Any;
import fr.esrf.Tango.DevFailed;
import fr.esrf.Tango.DevState;
import fr.esrf.Tango.DispLevel;
import fr.esrf.TangoDs.Command;
import fr.esrf.TangoDs.DeviceImpl;
import fr.esrf.TangoDs.TangoConst;
import fr.esrf.TangoDs.Util;
/**
* Class Description: Remove the dynamic attribute.
*/
public class RemoveAllDynAttrClass extends Command implements TangoConst {
// ===============================================================
/**
* Constructor for Command class RemoveAllDynAttrClass
*
* @param name
* command name
* @param in
* argin type
* @param out
* argout type
*/
// ===============================================================
public RemoveAllDynAttrClass(String name, int in, int out) {
super(name, in, out);
}
// ===============================================================
/**
* Constructor for Command class RemoveAllDynAttrClass
*
* @param name
* command name
* @param in
* argin type
* @param in_comments
* argin description
* @param out
* argout type
* @param out_comments
* argout description
*/
// ===============================================================
public RemoveAllDynAttrClass(String name, int in, int out, String in_comments, String out_comments) {
super(name, in, out, in_comments, out_comments);
}
// ===============================================================
/**
* Constructor for Command class RemoveAllDynAttrClass
*
* @param name
* command name
* @param in
* argin type
* @param in_comments
* argin description
* @param out
* argout type
* @param out_comments
* argout description
* @param level
* The command display type OPERATOR or EXPERT
*/
// ===============================================================
public RemoveAllDynAttrClass(String name, int in, int out, String in_comments, String out_comments, DispLevel level) {
super(name, in, out, in_comments, out_comments, level);
}
// ===============================================================
/**
* return the result of the device's command.
*/
// ===============================================================
@Override
public Any execute(DeviceImpl device, Any in_any) throws DevFailed {
Util.out2.println("RemoveAllDynAttrClass.execute(): arrived");
((SnapExtractor) (device)).remove_all_dyn_attr();
return insert();
}
// ===============================================================
/**
* Check if it is allowed to execute the command.
*/
// ===============================================================
@Override
public boolean is_allowed(DeviceImpl device, Any data_in) {
if (device.get_state() == DevState.OFF || device.get_state() == DevState.INIT
|| device.get_state() == DevState.FAULT || device.get_state() == DevState.EXTRACT
|| device.get_state() == DevState.UNKNOWN) {
// End of Generated Code
// Re-Start of Generated Code
return false;
}
return true;
}
}
// +======================================================================
// $Source: /cvsroot/tango-cs/tango/jserver/snapshoting/SnapExtractor/RemoveDynAttrClass.java,v $
//
// Project: Tango Device Server
//
// Description: Java source code for the command TemplateClass of the
// SnapExtractor class.
//
// $Author: ounsy $
//
// $Revision: 1.1 $
//
// $Log: RemoveDynAttrClass.java,v $
// Revision 1.1 2006/02/07 13:03:52 ounsy
// moved from the Archiving package
//
// Revision 1.1 2006/01/27 14:39:14 ounsy
// new device for snap extracting
//
//
// copyleft : European Synchrotron Radiation Facility
// BP 220, Grenoble 38043
// FRANCE
//
//-======================================================================
//
// This file is generated by POGO
// (Program Obviously used to Generate tango Object)
//
// (c) - Software Engineering Group - ESRF
//=============================================================================
/**
* @author $Author: ounsy $
* @version $Revision: 1.1 $
*/
package SnapExtractor;
import org.omg.CORBA.Any;
import fr.esrf.Tango.DevFailed;
import fr.esrf.Tango.DevState;
import fr.esrf.Tango.DispLevel;
import fr.esrf.TangoDs.Command;
import fr.esrf.TangoDs.DeviceImpl;
import fr.esrf.TangoDs.TangoConst;
import fr.esrf.TangoDs.Util;
public class RemoveDynAttrClass extends Command implements TangoConst {
// ===============================================================
/**
* Constructor for Command class RemoveDynAttrClass
*
* @param name
* command name
* @param in
* argin type
* @param out
* argout type
*/
// ===============================================================
public RemoveDynAttrClass(String name, int in, int out) {
super(name, in, out);
}
// ===============================================================
/**
* Constructor for Command class RemoveDynAttrClass
*
* @param name
* command name
* @param in
* argin type
* @param in_comments
* argin description
* @param out
* argout type
* @param out_comments
* argout description
*/
// ===============================================================
public RemoveDynAttrClass(String name, int in, int out, String in_comments, String out_comments) {
super(name, in, out, in_comments, out_comments);
}
// ===============================================================
/**
* Constructor for Command class RemoveDynAttrClass
*
* @param name
* command name
* @param in
* argin type
* @param in_comments
* argin description
* @param out
* argout type
* @param out_comments
* argout description
* @param level
* The command display type OPERATOR or EXPERT
*/
// ===============================================================
public RemoveDynAttrClass(String name, int in, int out, String in_comments, String out_comments, DispLevel level) {
super(name, in, out, in_comments, out_comments, level);
}
// ===============================================================
/**
* return the result of the device's command.
*/
// ===============================================================
@Override
public Any execute(DeviceImpl device, Any in_any) throws DevFailed {
Util.out2.println("RemoveDynAttrClass.execute(): arrived");
String argin = extract_DevString(in_any);
((SnapExtractor) (device)).remove_dyn_attr(argin);
return insert();
}
// ===============================================================
/**
* Check if it is allowed to execute the command.
*/
// ===============================================================
@Override
public boolean is_allowed(DeviceImpl device, Any data_in) {
if (device.get_state() == DevState.OFF || device.get_state() == DevState.INIT
|| device.get_state() == DevState.FAULT || device.get_state() == DevState.EXTRACT
|| device.get_state() == DevState.UNKNOWN) {
// End of Generated Code
// Re-Start of Generated Code
return false;
}
return true;
}
}
// -----------------------------------------------------------------------------
/*
* end of $Source:
* /cvsroot/tango-cs/tango/jserver/snapshoting/SnapExtractor/RemoveDynAttrClass
* .java,v $
*/
/**
* @author $Author: ounsy $
* @version $Revision: 1.1 $
*/
package SnapExtractor;
import org.omg.CORBA.Any;
import fr.esrf.Tango.DevFailed;
import fr.esrf.Tango.DevState;
import fr.esrf.Tango.DispLevel;
import fr.esrf.TangoDs.Command;
import fr.esrf.TangoDs.DeviceImpl;
import fr.esrf.TangoDs.TangoConst;
import fr.esrf.TangoDs.Util;
public class RemoveDynAttrsClass extends Command implements TangoConst {
// ===============================================================
/**
* Constructor for Command class RemoveDynAttrsClass
*
* @param name
* command name
* @param in
* argin type
* @param out
* argout type
*/
// ===============================================================
public RemoveDynAttrsClass(String name, int in, int out) {
super(name, in, out);
}
// ===============================================================
/**
* Constructor for Command class RemoveDynAttrsClass
*
* @param name
* command name
* @param in
* argin type
* @param in_comments
* argin description
* @param out
* argout type
* @param out_comments
* argout description
*/
// ===============================================================
public RemoveDynAttrsClass(String name, int in, int out, String in_comments, String out_comments) {
super(name, in, out, in_comments, out_comments);
}
// ===============================================================
/**
* Constructor for Command class RemoveDynAttrsClass
*
* @param name
* command name
* @param in
* argin type
* @param in_comments
* argin description
* @param out
* argout type
* @param out_comments
* argout description
* @param level
* The command display type OPERATOR or EXPERT
*/
// ===============================================================
public RemoveDynAttrsClass(String name, int in, int out, String in_comments, String out_comments, DispLevel level) {
super(name, in, out, in_comments, out_comments, level);
}
// ===============================================================
/**
* return the result of the device's command.
*/
// ===============================================================
@Override
public Any execute(DeviceImpl device, Any in_any) throws DevFailed {
Util.out2.println("RemoveDynAttrsClass.execute(): arrived");
String[] argin = extract_DevVarStringArray(in_any);
((SnapExtractor) (device)).remove_dyn_attrs(argin);
return insert();
}
// ===============================================================
/**
* Check if it is allowed to execute the command.
*/
// ===============================================================
@Override
public boolean is_allowed(DeviceImpl device, Any data_in) {
if (device.get_state() == DevState.OFF || device.get_state() == DevState.INIT
|| device.get_state() == DevState.FAULT || device.get_state() == DevState.EXTRACT
|| device.get_state() == DevState.UNKNOWN) {
// End of Generated Code
// Re-Start of Generated Code
return false;
}
return true;
}
}
// -----------------------------------------------------------------------------
/*
* end of $Source:
* /cvsroot/tango-cs/tango/jserver/snapshoting/SnapExtractor/RemoveDynAttrsClass
* .java,v $
*/
This diff is collapsed.
// +======================================================================
// $Source: /cvsroot/tango-cs/tango/jserver/snapshoting/SnapExtractor/SnapExtractorClass.java,v $
//
// Project: Tango Device Server
//
// Description: java source code for the SnapExtractor class .
// This class is a singleton class and implements everything
// which exists only once for all the SnapExtractor object
// It inherits from the DeviceClass class.
//
// $Author: pierrejoseph $
//
// $Revision: 1.3 $
//
// $Log: SnapExtractorClass.java,v $
// Revision 1.3 2007/05/11 13:58:54 pierrejoseph
// Attribute addition : release version
//
// Revision 1.2 2006/03/27 13:58:18 ounsy
// added the commands removeAllDynAttr et removeDynAttrs
//
// Revision 1.1 2006/02/07 13:03:52 ounsy
// moved from the Archiving package
//
// Revision 1.1 2006/01/27 14:39:14 ounsy
// new device for snap extracting
//
//
// copyleft : European Synchrotron Radiation Facility
// BP 220, Grenoble 38043
// FRANCE
//
//-======================================================================
//
// This file is generated by POGO
// (Program Obviously used to Generate tango Object)
//
// (c) - Software Engineering Group - ESRF
//=============================================================================
package SnapExtractor;
import java.util.ResourceBundle;
import java.util.Vector;
import fr.esrf.Tango.AttrWriteType;
import fr.esrf.Tango.DevFailed;
import fr.esrf.Tango.DispLevel;
import fr.esrf.TangoApi.DbDatum;
import fr.esrf.TangoDs.Attr;
import fr.esrf.TangoDs.Command;
import fr.esrf.TangoDs.DeviceClass;
import fr.esrf.TangoDs.DeviceImpl;
import fr.esrf.TangoDs.TangoConst;
import fr.esrf.TangoDs.Util;
public class SnapExtractorClass extends DeviceClass implements TangoConst {
/**
* SnapExtractorClass class instance (it is a singleton).
*/
private static SnapExtractorClass _instance = null;
/**
* Class properties array.
*/
// private final DbDatum[] cl_prop = null;
// --------- Start of properties data members ----------
// --------- End of properties data members ----------
// ===================================================================
//
// method : instance()
//
// description : static method to retrieve the SnapExtractorClass object
// once it has been initialised
//
// ===================================================================
public static SnapExtractorClass instance() {
if (_instance == null) {
System.err.println("SnapExtractorClass is not initialised !!!");
System.err.println("Exiting");
System.exit(-1);
}
return _instance;
}
// ===================================================================
//
// method : Init()
//
// description : static method to create/retrieve the SnapExtractorClass
// object. This method is the only one which enables a
// user to create the object
//
// in : - class_name : The class name
//
// ===================================================================
public static SnapExtractorClass init(String class_name) throws DevFailed {
if (_instance == null) {
_instance = new SnapExtractorClass(class_name);
}
return _instance;
}
// ===================================================================
//
// method : SnapExtractorClass()
//
// description : constructor for the SnapExtractorClass class
//
// argument : in : - name : The class name
//
// ===================================================================
protected SnapExtractorClass(String name) throws DevFailed {
super(name);
Util.out2.println("Entering SnapExtractorClass constructor");
// write_class_property();
get_class_property();
Util.out2.println("Leaving SnapExtractorClass constructor");
}
// ===================================================================
//
// method : command_factory()
//
// description : Create the command object(s) and store them in the
// command list
// ===================================================================
@Override
public void command_factory() {
command_list.addElement(new RemoveAllDynAttrClass("RemoveAllDynAttr", Tango_DEV_VOID, Tango_DEV_VOID, "", "",
DispLevel.EXPERT));
command_list.addElement(new RemoveDynAttrsClass("RemoveDynAttrs", Tango_DEVVAR_STRINGARRAY, Tango_DEV_VOID, "",
"", DispLevel.OPERATOR));
command_list.addElement(new GetSnapClass("GetSnap", Tango_DEV_LONG, Tango_DEVVAR_STRINGARRAY, "snapID",
"[attrRealName, dynAttrNameW,dynAttrNameR]*n", DispLevel.OPERATOR));
command_list.addElement(new GetSnapValueClass("GetSnapValue", Tango_DEVVAR_STRINGARRAY,
Tango_DEVVAR_STRINGARRAY, "snapID and attribute name", "Attribute's Read value and Write value",
DispLevel.OPERATOR));
command_list.addElement(new RemoveDynAttrClass("RemoveDynAttr", Tango_DEV_STRING, Tango_DEV_VOID, "", "",
DispLevel.OPERATOR));
command_list.addElement(new GetSnapsForContextClass("GetSnapsForContext", Tango_DEV_LONG,
Tango_DEVVAR_LONGSTRINGARRAY, "", "", DispLevel.OPERATOR));
command_list.addElement(new GetSnapIDClass("GetSnapID", Tango_DEVVAR_STRINGARRAY, Tango_DEVVAR_LONGARRAY,
"ctx_id, criterion: \nSyntax: ctx_id, \"id_snap > | < | = | <= | >= nbr\",\n"
+ " \"time < | > | >= | <= yyyy-mm-dd hh:mm:ss | dd-mm-yyyy hh:mm:ss\","
+ "\n \"comment starts | ends | contains string\",\n first | last", "list of snapshot_id",
DispLevel.OPERATOR));
command_list.addElement(new GetSnapValuesClass("GetSnapValues", Tango_DEVVAR_STRINGARRAY,
Tango_DEVVAR_STRINGARRAY, "snapID, true for read values or false for write values ,attribute names",
"Attribute's Read value and Write value", DispLevel.OPERATOR));
// add polling if any
for (int i = 0; i < command_list.size(); i++) {
Command cmd = (Command) command_list.elementAt(i);
}
}
// =============================================================================
//
// Method: attribute_factory(Vector att_list)
//
// =============================================================================
@Override
public void attribute_factory(Vector att_list) throws DevFailed {
// Attribute : version
Attr version = new Attr("version", Tango_DEV_STRING, AttrWriteType.READ);
att_list.addElement(version);
}
// ===================================================================
//
// method : device_factory()
//
// description : Create the device object(s) and store them in the
// device list
//
// argument : in : String[] devlist : The device name list
//
// ===================================================================
@Override
public void device_factory(String[] devlist) throws DevFailed {
String device_version = ResourceBundle.getBundle("application").getString("project.version");
for (int i = 0; i < devlist.length; i++) {
// Util.out4.println("Device name : " + devlist[i]);
// Create device and add it into the device list
// ----------------------------------------------
device_list.addElement(new SnapExtractor(this, devlist[i], device_version));
// Export device to the outside world
// ----------------------------------------------
if (Util._UseDb == true) {
export_device(((DeviceImpl) device_list.elementAt(i)));
} else {
export_device(((DeviceImpl) device_list.elementAt(i)), devlist[i]);
}
}
}
// ===================================================================
/**
* Get the class property for specified name.
*
* @param name
* The property name.
* @throws DevFailed
*/
// ===================================================================
public DbDatum get_class_property(String name) throws DevFailed {
// for (int i = 0; i < cl_prop.length; i++) {
// if (cl_prop[i].name.equals(name)) {
// return cl_prop[i];
// }
// }
DbDatum[] classProps = get_db_class().get_property(new String[] { name });
return classProps[0];
}
// ===================================================================
/**
* Read the class properties from database.
*/
// ===================================================================
public void get_class_property() throws DevFailed {
// Initialize your default values here.
// ------------------------------------------
// Read class properties from database.(Automatic code generation)
// -------------------------------------------------------------
if (Util._UseDb == false) {
return;
}
// Call database and extract values
// --------------------------------------------
// End of Automatic code generation
// -------------------------------------------------------------
}
// ===================================================================
/**
* Set class description as property in database
*/
// ===================================================================
// private void write_class_property() throws DevFailed {
// // First time, check if database used
// // --------------------------------------------
// if (Util._UseDb == false) {
// return;
// }
//
// // Prepeare DbDatum
// // --------------------------------------------
// DbDatum[] data = new DbDatum[2];
// data[0] = new DbDatum("ProjectTitle");
// data[0].insert("Tango Device Server");
//
// data[1] = new DbDatum("Description");
// data[1].insert("SnapExtractor");
//
// // Call database and and values
// // --------------------------------------------
// get_db_class().put_property(data);
// }
}
#application properties
project.name=${project.name}
project.version=${project.version}
build.date=${buildNumber}
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="stdout-appender" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss.SSS} %5p %C{5}.%l: %m%n" />
</layout>
</appender>
<logger name="org.jacorb">
<level value="ERROR" />
</logger>
<logger name="org.hibernate">
<level value="ERROR" />
</logger>
<logger name="org.springframework">
<level value="ERROR" />
</logger>
<root>
<level value="DEBUG" />
<appender-ref ref="stdout-appender" />
</root>
</log4j:configuration>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">
<!-- DATASOURCE DEFINITION VVVVVVV-->
<bean id="dataSource"
class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
<property name="initialSize" value="8"/>
<property name="maxActive" value="4"/>
<property name="maxIdle" value="8"/>
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url" value="jdbc:mysql://localhost/snap?autoReconnect=true" />
<property name="username" value="snaparchiver" />
<property name="password" value="snaparchiver" />
</bean>
<!-- DATASOURCE DEFINITION ^^^^^^-->
<!-- HIBERNATE DEFINITION VVVVVVV-->
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource" ref="dataSource"/>
<property name="mappingResources">
<list>
<value>valueTables.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<value>
hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
hibernate.show_sql=true
hibernate.format_sql=true
hibernate.transaction.factory_class=org.hibernate.transaction.JDBCTransactionFactory
hibernate.current_session_context_class=thread
hibernate.connection.autocommit=false
hibernate.connection.release_mode=after_transaction
hibernate.generate_statistics=true
</value>
</property>
</bean>
<!-- HIBERNATE DEFINITION ^^^^^^-->
<!-- TRANSACTIONS DEFINITIONS VVVVVVV-->
<!-- MANAGER -->
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory"/>
</bean>
<!-- DEFINES AN "ADVICE" IE. A WAY TO USE THE TRANSACTION MANAGER AROUND METHODS -->
<tx:advice id="txAdvice" transaction-manager="transactionManager"><!-- the transactional advice (i.e. what 'happens'; see the <aop:advisor/> bean below) -->
<tx:attributes><!-- the transactional semantics... -->
<tx:method name="findBy*" read-only="true"/><!-- all methods starting with 'get' are read-only -->
<tx:method name="*"/><!-- other methods use the default transaction settings -->
</tx:attributes>
</tx:advice>
<!-- DEFINES WHERE "ADVICES" WILL BE USED-->
<aop:config><!-- ensure that the above transactional advice runs for any execution of an operation defined by the FooService interface -->
<aop:pointcut id="valDAOOperation" expression="execution(* fr.soleil.archiving.snap.api.persistence.spring.dao.ValDAO.*(..))"/>
<aop:advisor advice-ref="txAdvice" pointcut-ref="valDAOOperation"/>
</aop:config>
<!-- TRANSACTIONS DEFINITIONS ^^^^^^-->
<!-- DAO BEANS DEFINITION VVVVVVV-->
<bean id="scNum1ValDAO" class="fr.soleil.archiving.snap.api.persistence.spring.dao.ScNum1ValDAOImpl">
<constructor-arg ref="sessionFactory" />
</bean>
<bean id="scNum2ValDAO" class="fr.soleil.archiving.snap.api.persistence.spring.dao.ScNum2ValDAOImpl">
<constructor-arg ref="sessionFactory" />
</bean>
<bean id="scStr1ValDAO" class="fr.soleil.archiving.snap.api.persistence.spring.dao.ScStr1ValDAOImpl">
<constructor-arg ref="sessionFactory" />
</bean>
<bean id="scStr2ValDAO" class="fr.soleil.archiving.snap.api.persistence.spring.dao.ScStr2ValDAOImpl">
<constructor-arg ref="sessionFactory" />
</bean>
<bean id="sp1ValDAO" class="fr.soleil.archiving.snap.api.persistence.spring.dao.Sp1ValDAOImpl">
<constructor-arg ref="sessionFactory" />
</bean>
<bean id="sp2ValDAO" class="fr.soleil.archiving.snap.api.persistence.spring.dao.Sp2ValDAOImpl">
<constructor-arg ref="sessionFactory" />
</bean>
<bean id="im1ValDAO" class="fr.soleil.archiving.snap.api.persistence.spring.dao.Im1ValDAOImpl">
<constructor-arg ref="sessionFactory" />
</bean>
<bean id="im2ValDAO" class="fr.soleil.archiving.snap.api.persistence.spring.dao.Im2ValDAOImpl">
<constructor-arg ref="sessionFactory" />
</bean>
<!-- DAO BEANS DEFINITION ^^^^^^-->
</beans>
\ No newline at end of file
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">
<!-- DATASOURCE DEFINITION VVVVVVV-->
<bean id="dataSource"
class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
<property name="initialSize" value="2"/>
<property name="maxActive" value="5"/>
<property name="maxIdle" value="2"/>
<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver" />
<property name="url" value="jdbc:oracle:thin:@LUTIN:1521:TEST11" />
<property name="username" value="toto" />
<property name="password" value="toto" />
</bean>
<!-- DATASOURCE DEFINITION ^^^^^^-->
<!-- HIBERNATE DEFINITION VVVVVVV-->
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource" ref="dataSource"/>
<property name="mappingResources">
<list>
<value>valueTables.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<value>
hibernate.dialect=org.hibernate.dialect.Oracle10gDialect
hibernate.show_sql=true
hibernate.format_sql=true
hibernate.transaction.factory_class=org.hibernate.transaction.JDBCTransactionFactory
hibernate.current_session_context_class=thread
hibernate.connection.autocommit=false
hibernate.generate_statistics=true
</value>
</property>
</bean>
<!-- HIBERNATE DEFINITION ^^^^^^-->
<!-- TRANSACTIONS DEFINITIONS VVVVVVV-->
<!-- MANAGER -->
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory"/>
</bean>
<!-- DEFINES AN "ADVICE" IE. A WAY TO USE THE TRANSACTION MANAGER AROUND METHODS -->
<tx:advice id="txAdvice" transaction-manager="transactionManager"><!-- the transactional advice (i.e. what 'happens'; see the <aop:advisor/> bean below) -->
<tx:attributes><!-- the transactional semantics... -->
<tx:method name="findBy*" read-only="true"/><!-- all methods starting with 'get' are read-only -->
<tx:method name="*"/><!-- other methods use the default transaction settings (see below) -->
</tx:attributes>
</tx:advice>
<!-- DEFINES WHERE "ADVICES" WILL BE USED-->
<aop:config><!-- ensure that the above transactional advice runs for any execution of an operation defined by the FooService interface -->
<aop:pointcut id="valDAOOperation" expression="execution(* fr.soleil.archiving.snap.api.persistence.spring.dao.ValDAO.*(..))"/>
<aop:advisor advice-ref="txAdvice" pointcut-ref="valDAOOperation"/>
</aop:config>
<!-- TRANSACTIONS DEFINITIONS ^^^^^^-->
<!-- DAO BEANS DEFINITION VVVVVVV-->
<bean id="scNum1ValDAO" class="fr.soleil.archiving.snap.api.persistence.spring.dao.ScNum1ValDAOImpl">
<constructor-arg ref="sessionFactory" />
</bean>
<bean id="scNum2ValDAO" class="fr.soleil.archiving.snap.api.persistence.spring.dao.ScNum2ValDAOImpl">
<constructor-arg ref="sessionFactory" />
</bean>
<bean id="scStr1ValDAO" class="fr.soleil.archiving.snap.api.persistence.spring.dao.ScStr1ValDAOImpl">
<constructor-arg ref="sessionFactory" />
</bean>
<bean id="scStr2ValDAO" class="fr.soleil.archiving.snap.api.persistence.spring.dao.ScStr2ValDAOImpl">
<constructor-arg ref="sessionFactory" />
</bean>
<bean id="sp1ValDAO" class="fr.soleil.archiving.snap.api.persistence.spring.dao.Sp1ValDAOImpl">
<constructor-arg ref="sessionFactory" />
</bean>
<bean id="sp2ValDAO" class="fr.soleil.archiving.snap.api.persistence.spring.dao.Sp2ValDAOImpl">
<constructor-arg ref="sessionFactory" />
</bean>
<bean id="im1ValDAO" class="fr.soleil.archiving.snap.api.persistence.spring.dao.Im1ValDAOImpl">
<constructor-arg ref="sessionFactory" />
</bean>
<bean id="im2ValDAO" class="fr.soleil.archiving.snap.api.persistence.spring.dao.Im2ValDAOImpl">
<constructor-arg ref="sessionFactory" />
</bean>
<!-- DAO BEANS DEFINITION ^^^^^^-->
</beans>
\ No newline at end of file
#change the mysql driver to the more recent com.mysql.jdbc.Driver
#DRIVER_CLASS_NAME = org.gjt.mm.mysql.Driver
DRIVER_CLASS_NAME = com.mysql.jdbc.Driver
URL = jdbc:mysql://localhost/snap?autoReconnect=true
USERNAME = snaparchiver
PASSWORD = snaparchiver
HIBERNATE_DIALECT = org.hibernate.dialect.MySQL5Dialect
\ No newline at end of file
DRIVER_CLASS_NAME = oracle.jdbc.driver.OracleDriver
#URL DEV
URL = jdbc:oracle:thin:@BIZET:1521:LET
#URL RCM
#URL = jdbc:oracle:thin:@jacquard:1521:HDB
USERNAME = SNAP
PASSWORD = SNAP
HIBERNATE_DIALECT = org.hibernate.dialect.Oracle9Dialect
\ No newline at end of file
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="fr.soleil.archiving.snap.api.persistence.spring.dto">
<class name="ScNum1Val" table="t_sc_num_1val">
<composite-id name="compositeId" class="CompositeId">
<key-property name="idSnap" column="ID_SNAP"/>
<key-property name="idAtt" column="ID_ATT"/>
</composite-id>
<property name="value" column="VALUE"/>
</class>
<class name="ScNum2Val" table="t_sc_num_2val">
<composite-id name="compositeId" class="CompositeId">
<key-property name="idSnap" column="ID_SNAP"/>
<key-property name="idAtt" column="ID_ATT"/>
</composite-id>
<property name="readValue" column="READ_VALUE"/>
<property name="writeValue" column="WRITE_VALUE"/>
</class>
<class name="ScStr1Val" table="t_sc_str_1val">
<composite-id name="compositeId" class="CompositeId">
<key-property name="idSnap" column="ID_SNAP"/>
<key-property name="idAtt" column="ID_ATT"/>
</composite-id>
<property name="value" column="VALUE"/>
</class>
<class name="ScStr2Val" table="t_sc_str_2val">
<composite-id name="compositeId" class="CompositeId">
<key-property name="idSnap" column="ID_SNAP"/>
<key-property name="idAtt" column="ID_ATT"/>
</composite-id>
<property name="readValue" column="READ_VALUE"/>
<property name="writeValue" column="WRITE_VALUE"/>
</class>
<class name="Sp1Val" table="t_sp_1val">
<composite-id name="compositeId" class="CompositeId">
<key-property name="idSnap" column="ID_SNAP"/>
<key-property name="idAtt" column="ID_ATT"/>
</composite-id>
<property name="dimX" column="DIM_X"/>
<property name="value" column="VALUE"/>
</class>
<class name="Sp2Val" table="t_sp_2val">
<composite-id name="compositeId" class="CompositeId">
<key-property name="idSnap" column="ID_SNAP"/>
<key-property name="idAtt" column="ID_ATT"/>
</composite-id>
<property name="dimX" column="DIM_X"/>
<property name="readValue" column="READ_VALUE"/>
<property name="writeValue" column="WRITE_VALUE"/>
</class>
<class name="Im1Val" table="t_im_1val">
<composite-id name="compositeId" class="CompositeId">
<key-property name="idSnap" column="ID_SNAP"/>
<key-property name="idAtt" column="ID_ATT"/>
</composite-id>
<property name="dimX" column="DIM_X"/>
<property name="dimY" column="DIM_Y"/>
<property name="value" column="VALUE"/>
</class>
<class name="Im2Val" table="t_im_2val">
<composite-id name="compositeId" class="CompositeId">
<key-property name="idSnap" column="ID_SNAP"/>
<key-property name="idAtt" column="ID_ATT"/>
</composite-id>
<property name="dimX" column="DIM_X"/>
<property name="dimY" column="DIM_Y"/>
<property name="readValue" column="READ_VALUE"/>
<property name="writeValue" column="WRITE_VALUE"/>
</class>
</hibernate-mapping>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment