
inmemory.create_entity.xslt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of orm Show documentation
Show all versions of orm Show documentation
Jinq legacy ORM for generating entity classes from XML
The newest version!
package ;
import ch.epfl.labos.iu.orm.DBSet;
public class
{
EntityManager em;
public (EntityManager em)
{
this.em = em;
em.newInstance(this);
}
public void dispose()
{
}
}
private ;
public get ()
{
return ;
}
public void set ( _val)
{
= _val;
}
class Set extends DBSet< >
{
public boolean add( _val)
{
super.add(_val);
_val.set ( .this);
return true;
}
public boolean remove( _val)
{
super.remove(_val);
_val.set (null);
return true;
}
}
DBSet< > = new Set();
public DBSet< > get ()
{
return ;
}
public void set (DBSet< > _val)
{
= _val;
}
;
public get ()
{
return ;
}
public void set ( _val)
{
= _val;
}
;
public get ()
{
return ;
}
public void set ( _val)
{
if ( != null)
.get ().remove(this);
= _val;
_val.get ().add(this);
}
DBSet< > = new DBSet< >();
public DBSet< > get ()
{
return ;
}
public void set (DBSet< > _val)
{
= _val;
}
;
public get ()
{
return ;
}
public void set ( _val)
{
if ( != null)
.set (null);
= _val;
_val.set (this);
}
;
public get ()
{
return ;
}
public void set ( _val)
{
= _val;
}
class Set extends DBSet< >
{
public boolean add( _val)
{
super.add(_val);
_val.get ().add( .this);
return true;
}
public boolean remove( _val)
{
super.remove(_val);
_val.get ().remove( .this);
return true;
}
}
DBSet< > = new Set();
public DBSet< > get ()
{
return ;
}
public void set (DBSet< > _val)
{
= _val;
}
DBSet< > = new DBSet< >();
public DBSet< > get ()
{
return ;
}
public void set (DBSet< > _val)
{
= _val;
}
get ().clear();
if (get () != null)
get ().get ().remove(this);
set (null);
for ( obj: get ())
obj.set (null);
set (null);
if (get () != null)
get ().set (null);
get ().clear();
for ( obj: get ())
obj.get ().remove(this);
© 2015 - 2025 Weber Informatics LLC | Privacy Policy