[Nmrshiftdb-devel] CVS: nmrshiftdb/src/java/org/openscience/nmrshiftdb/map AtomsMapBuilder.java,NONE
Brought to you by:
steinbeck
Update of /cvsroot/nmrshiftdb/nmrshiftdb/src/java/org/openscience/nmrshiftdb/map
In directory usw-pr-cvs1:/tmp/cvs-serv25746
Added Files:
AtomsMapBuilder.java BondsAtomsMapBuilder.java
BondsMapBuilder.java CanonicalNameMapBuilder.java
ChemicalNameMapBuilder.java
MeasurementConditionsMapBuilder.java MoleculeMapBuilder.java
MoleculeTurbineUserMapBuilder.java SignalAtomsMapBuilder.java
SignalMapBuilder.java SpectrumMapBuilder.java
SpectrumTypeMapBuilder.java TurbineUserMapBuilder.java
Log Message:
added torque map source files
--- NEW FILE: AtomsMapBuilder.java ---
package org.openscience.nmrshiftdb.map;
import java.util.*;
import java.math.*;
import org.apache.torque.Torque;
import org.apache.torque.map.MapBuilder;
import org.apache.torque.map.DatabaseMap;
import org.apache.torque.map.TableMap;
/**
* This class was autogenerated by Torque on:
*
* [Tue Feb 12 14:17:43 CET 2002]
*
*/
public class AtomsMapBuilder implements MapBuilder
{
/**
* The name of this class
*/
public static final String CLASS_NAME =
"org.openscience.nmrshiftdb.map.AtomsMapBuilder";
/**
* Item
* @deprecated use AtomsPeer.TABLE_NAME constant
*/
public static String getTable( )
{
return "ATOMS";
}
/**
* ATOMS.ATOMS_ID
* @deprecated use AtomsPeer.ATOMS.ATOMS_ID constant
*/
public static String getAtoms_AtomsId()
{
return "ATOMS.ATOMS_ID";
}
/**
* ATOMS.SYMBOL
* @deprecated use AtomsPeer.ATOMS.SYMBOL constant
*/
public static String getAtoms_Symbol()
{
return "ATOMS.SYMBOL";
}
/**
* ATOMS.MOLECULE_ID
* @deprecated use AtomsPeer.ATOMS.MOLECULE_ID constant
*/
public static String getAtoms_MoleculeId()
{
return "ATOMS.MOLECULE_ID";
}
/**
* The database map.
*/
private DatabaseMap dbMap = null;
/**
* Tells us if this DatabaseMapBuilder is built so that we
* don't have to re-build it every time.
*/
public boolean isBuilt()
{
if ( dbMap != null )
{
return true;
}
return false;
}
/**
* Gets the databasemap this map builder built.
*/
public DatabaseMap getDatabaseMap()
{
return this.dbMap;
}
/**
* The doBuild() method builds the DatabaseMap
*/
public void doBuild() throws Exception
{
dbMap = Torque.getDatabaseMap("nmrshiftdb");
dbMap.addTable("ATOMS");
TableMap tMap = dbMap.getTable("ATOMS");
tMap.setPrimaryKeyMethod(TableMap.ID_BROKER);
tMap.setPrimaryKeyMethodInfo(tMap.getName());
tMap.addPrimaryKey ( "ATOMS.ATOMS_ID", new Integer(0) );
tMap.addColumn ( "ATOMS.SYMBOL", new String() );
tMap.addForeignKey (
"ATOMS.MOLECULE_ID", new Integer(0) , "MOLECULE" ,
"MOLECULE_ID" );
}
}
--- NEW FILE: BondsAtomsMapBuilder.java ---
package org.openscience.nmrshiftdb.map;
import java.util.*;
import java.math.*;
import org.apache.torque.Torque;
import org.apache.torque.map.MapBuilder;
import org.apache.torque.map.DatabaseMap;
import org.apache.torque.map.TableMap;
/**
* This class was autogenerated by Torque on:
*
* [Tue Feb 12 14:17:43 CET 2002]
*
*/
public class BondsAtomsMapBuilder implements MapBuilder
{
/**
* The name of this class
*/
public static final String CLASS_NAME =
"org.openscience.nmrshiftdb.map.BondsAtomsMapBuilder";
/**
* Item
* @deprecated use BondsAtomsPeer.TABLE_NAME constant
*/
public static String getTable( )
{
return "BONDS_ATOMS";
}
/**
* BONDS_ATOMS.BONDS_ID
* @deprecated use BondsAtomsPeer.BONDS_ATOMS.BONDS_ID constant
*/
public static String getBondsAtoms_BondsId()
{
return "BONDS_ATOMS.BONDS_ID";
}
/**
* BONDS_ATOMS.ATOMS_ID
* @deprecated use BondsAtomsPeer.BONDS_ATOMS.ATOMS_ID constant
*/
public static String getBondsAtoms_AtomsId()
{
return "BONDS_ATOMS.ATOMS_ID";
}
/**
* The database map.
*/
private DatabaseMap dbMap = null;
/**
* Tells us if this DatabaseMapBuilder is built so that we
* don't have to re-build it every time.
*/
public boolean isBuilt()
{
if ( dbMap != null )
{
return true;
}
return false;
}
/**
* Gets the databasemap this map builder built.
*/
public DatabaseMap getDatabaseMap()
{
return this.dbMap;
}
/**
* The doBuild() method builds the DatabaseMap
*/
public void doBuild() throws Exception
{
dbMap = Torque.getDatabaseMap("nmrshiftdb");
dbMap.addTable("BONDS_ATOMS");
TableMap tMap = dbMap.getTable("BONDS_ATOMS");
tMap.setPrimaryKeyMethod(TableMap.ID_BROKER);
tMap.setPrimaryKeyMethodInfo(tMap.getName());
tMap.addForeignKey (
"BONDS_ATOMS.BONDS_ID", new Integer(0) , "BONDS" ,
"BONDS_ID" );
tMap.addForeignKey (
"BONDS_ATOMS.ATOMS_ID", new Integer(0) , "ATOMS" ,
"ATOMS_ID" );
}
}
--- NEW FILE: BondsMapBuilder.java ---
package org.openscience.nmrshiftdb.map;
import java.util.*;
import java.math.*;
import org.apache.torque.Torque;
import org.apache.torque.map.MapBuilder;
import org.apache.torque.map.DatabaseMap;
import org.apache.torque.map.TableMap;
/**
* This class was autogenerated by Torque on:
*
* [Tue Feb 12 14:17:43 CET 2002]
*
*/
public class BondsMapBuilder implements MapBuilder
{
/**
* The name of this class
*/
public static final String CLASS_NAME =
"org.openscience.nmrshiftdb.map.BondsMapBuilder";
/**
* Item
* @deprecated use BondsPeer.TABLE_NAME constant
*/
public static String getTable( )
{
return "BONDS";
}
/**
* BONDS.BONDS_ID
* @deprecated use BondsPeer.BONDS.BONDS_ID constant
*/
public static String getBonds_BondsId()
{
return "BONDS.BONDS_ID";
}
/**
* BONDS.DEGREE
* @deprecated use BondsPeer.BONDS.DEGREE constant
*/
public static String getBonds_Degree()
{
return "BONDS.DEGREE";
}
/**
* BONDS.MOLECULE_ID
* @deprecated use BondsPeer.BONDS.MOLECULE_ID constant
*/
public static String getBonds_MoleculeId()
{
return "BONDS.MOLECULE_ID";
}
/**
* The database map.
*/
private DatabaseMap dbMap = null;
/**
* Tells us if this DatabaseMapBuilder is built so that we
* don't have to re-build it every time.
*/
public boolean isBuilt()
{
if ( dbMap != null )
{
return true;
}
return false;
}
/**
* Gets the databasemap this map builder built.
*/
public DatabaseMap getDatabaseMap()
{
return this.dbMap;
}
/**
* The doBuild() method builds the DatabaseMap
*/
public void doBuild() throws Exception
{
dbMap = Torque.getDatabaseMap("nmrshiftdb");
dbMap.addTable("BONDS");
TableMap tMap = dbMap.getTable("BONDS");
tMap.setPrimaryKeyMethod(TableMap.ID_BROKER);
tMap.setPrimaryKeyMethodInfo(tMap.getName());
tMap.addPrimaryKey ( "BONDS.BONDS_ID", new Integer(0) );
tMap.addColumn ( "BONDS.DEGREE", new Integer(0) );
tMap.addForeignKey (
"BONDS.MOLECULE_ID", new Integer(0) , "MOLECULE" ,
"MOLECULE_ID" );
}
}
--- NEW FILE: CanonicalNameMapBuilder.java ---
package org.openscience.nmrshiftdb.map;
import java.util.*;
import java.math.*;
import org.apache.torque.Torque;
import org.apache.torque.map.MapBuilder;
import org.apache.torque.map.DatabaseMap;
import org.apache.torque.map.TableMap;
/**
* This class was autogenerated by Torque on:
*
* [Tue Feb 12 14:17:43 CET 2002]
*
*/
public class CanonicalNameMapBuilder implements MapBuilder
{
/**
* The name of this class
*/
public static final String CLASS_NAME =
"org.openscience.nmrshiftdb.map.CanonicalNameMapBuilder";
/**
* Item
* @deprecated use CanonicalNamePeer.TABLE_NAME constant
*/
public static String getTable( )
{
return "CANONICAL_NAME";
}
/**
* CANONICAL_NAME.CANONICAL_NAME_ID
* @deprecated use CanonicalNamePeer.CANONICAL_NAME.CANONICAL_NAME_ID constant
*/
public static String getCanonicalName_CanonicalNameId()
{
return "CANONICAL_NAME.CANONICAL_NAME_ID";
}
/**
* CANONICAL_NAME.NAME
* @deprecated use CanonicalNamePeer.CANONICAL_NAME.NAME constant
*/
public static String getCanonicalName_Name()
{
return "CANONICAL_NAME.NAME";
}
/**
* CANONICAL_NAME.TYPE
* @deprecated use CanonicalNamePeer.CANONICAL_NAME.TYPE constant
*/
public static String getCanonicalName_Type()
{
return "CANONICAL_NAME.TYPE";
}
/**
* CANONICAL_NAME.MOLECULE_ID
* @deprecated use CanonicalNamePeer.CANONICAL_NAME.MOLECULE_ID constant
*/
public static String getCanonicalName_MoleculeId()
{
return "CANONICAL_NAME.MOLECULE_ID";
}
/**
* The database map.
*/
private DatabaseMap dbMap = null;
/**
* Tells us if this DatabaseMapBuilder is built so that we
* don't have to re-build it every time.
*/
public boolean isBuilt()
{
if ( dbMap != null )
{
return true;
}
return false;
}
/**
* Gets the databasemap this map builder built.
*/
public DatabaseMap getDatabaseMap()
{
return this.dbMap;
}
/**
* The doBuild() method builds the DatabaseMap
*/
public void doBuild() throws Exception
{
dbMap = Torque.getDatabaseMap("nmrshiftdb");
dbMap.addTable("CANONICAL_NAME");
TableMap tMap = dbMap.getTable("CANONICAL_NAME");
tMap.setPrimaryKeyMethod(TableMap.ID_BROKER);
tMap.setPrimaryKeyMethodInfo(tMap.getName());
tMap.addPrimaryKey ( "CANONICAL_NAME.CANONICAL_NAME_ID", new Integer(0) );
tMap.addColumn ( "CANONICAL_NAME.NAME", new String() );
tMap.addColumn ( "CANONICAL_NAME.TYPE", new String() );
tMap.addForeignKey (
"CANONICAL_NAME.MOLECULE_ID", new Integer(0) , "MOLECULE" ,
"MOLECULE_ID" );
}
}
--- NEW FILE: ChemicalNameMapBuilder.java ---
package org.openscience.nmrshiftdb.map;
import java.util.*;
import java.math.*;
import org.apache.torque.Torque;
import org.apache.torque.map.MapBuilder;
import org.apache.torque.map.DatabaseMap;
import org.apache.torque.map.TableMap;
/**
* This class was autogenerated by Torque on:
*
* [Tue Feb 12 14:17:43 CET 2002]
*
*/
public class ChemicalNameMapBuilder implements MapBuilder
{
/**
* The name of this class
*/
public static final String CLASS_NAME =
"org.openscience.nmrshiftdb.map.ChemicalNameMapBuilder";
/**
* Item
* @deprecated use ChemicalNamePeer.TABLE_NAME constant
*/
public static String getTable( )
{
return "CHEMICAL_NAME";
}
/**
* CHEMICAL_NAME.CHEMICAL_NAME_ID
* @deprecated use ChemicalNamePeer.CHEMICAL_NAME.CHEMICAL_NAME_ID constant
*/
public static String getChemicalName_ChemicalNameId()
{
return "CHEMICAL_NAME.CHEMICAL_NAME_ID";
}
/**
* CHEMICAL_NAME.NAME
* @deprecated use ChemicalNamePeer.CHEMICAL_NAME.NAME constant
*/
public static String getChemicalName_Name()
{
return "CHEMICAL_NAME.NAME";
}
/**
* CHEMICAL_NAME.MOLECULE_ID
* @deprecated use ChemicalNamePeer.CHEMICAL_NAME.MOLECULE_ID constant
*/
public static String getChemicalName_MoleculeId()
{
return "CHEMICAL_NAME.MOLECULE_ID";
}
/**
* The database map.
*/
private DatabaseMap dbMap = null;
/**
* Tells us if this DatabaseMapBuilder is built so that we
* don't have to re-build it every time.
*/
public boolean isBuilt()
{
if ( dbMap != null )
{
return true;
}
return false;
}
/**
* Gets the databasemap this map builder built.
*/
public DatabaseMap getDatabaseMap()
{
return this.dbMap;
}
/**
* The doBuild() method builds the DatabaseMap
*/
public void doBuild() throws Exception
{
dbMap = Torque.getDatabaseMap("nmrshiftdb");
dbMap.addTable("CHEMICAL_NAME");
TableMap tMap = dbMap.getTable("CHEMICAL_NAME");
tMap.setPrimaryKeyMethod(TableMap.ID_BROKER);
tMap.setPrimaryKeyMethodInfo(tMap.getName());
tMap.addPrimaryKey ( "CHEMICAL_NAME.CHEMICAL_NAME_ID", new Integer(0) );
tMap.addColumn ( "CHEMICAL_NAME.NAME", new String() );
tMap.addForeignKey (
"CHEMICAL_NAME.MOLECULE_ID", new Integer(0) , "MOLECULE" ,
"MOLECULE_ID" );
}
}
--- NEW FILE: MeasurementConditionsMapBuilder.java ---
package org.openscience.nmrshiftdb.map;
import java.util.*;
import java.math.*;
import org.apache.torque.Torque;
import org.apache.torque.map.MapBuilder;
import org.apache.torque.map.DatabaseMap;
import org.apache.torque.map.TableMap;
/**
* This class was autogenerated by Torque on:
*
* [Tue Feb 12 14:17:43 CET 2002]
*
*/
public class MeasurementConditionsMapBuilder implements MapBuilder
{
/**
* The name of this class
*/
public static final String CLASS_NAME =
"org.openscience.nmrshiftdb.map.MeasurementConditionsMapBuilder";
/**
* Item
* @deprecated use MeasurementConditionsPeer.TABLE_NAME constant
*/
public static String getTable( )
{
return "MEASUREMENT_CONDITIONS";
}
/**
* MEASUREMENT_CONDITIONS.MEASUREMENT_CONDITIONS_ID
* @deprecated use MeasurementConditionsPeer.MEASUREMENT_CONDITIONS.MEASUREMENT_CONDITIONS_ID constant
*/
public static String getMeasurementConditions_MeasurementConditionsId()
{
return "MEASUREMENT_CONDITIONS.MEASUREMENT_CONDITIONS_ID";
}
/**
* MEASUREMENT_CONDITIONS.TEMPERATURE
* @deprecated use MeasurementConditionsPeer.MEASUREMENT_CONDITIONS.TEMPERATURE constant
*/
public static String getMeasurementConditions_Temperature()
{
return "MEASUREMENT_CONDITIONS.TEMPERATURE";
}
/**
* MEASUREMENT_CONDITIONS.FIELD_STRENGTH
* @deprecated use MeasurementConditionsPeer.MEASUREMENT_CONDITIONS.FIELD_STRENGTH constant
*/
public static String getMeasurementConditions_FieldStrength()
{
return "MEASUREMENT_CONDITIONS.FIELD_STRENGTH";
}
/**
* MEASUREMENT_CONDITIONS.SOLVENT
* @deprecated use MeasurementConditionsPeer.MEASUREMENT_CONDITIONS.SOLVENT constant
*/
public static String getMeasurementConditions_Solvent()
{
return "MEASUREMENT_CONDITIONS.SOLVENT";
}
/**
* MEASUREMENT_CONDITIONS.TURBINE_USER_ID
* @deprecated use MeasurementConditionsPeer.MEASUREMENT_CONDITIONS.TURBINE_USER_ID constant
*/
public static String getMeasurementConditions_TurbineUserId()
{
return "MEASUREMENT_CONDITIONS.TURBINE_USER_ID";
}
/**
* The database map.
*/
private DatabaseMap dbMap = null;
/**
* Tells us if this DatabaseMapBuilder is built so that we
* don't have to re-build it every time.
*/
public boolean isBuilt()
{
if ( dbMap != null )
{
return true;
}
return false;
}
/**
* Gets the databasemap this map builder built.
*/
public DatabaseMap getDatabaseMap()
{
return this.dbMap;
}
/**
* The doBuild() method builds the DatabaseMap
*/
public void doBuild() throws Exception
{
dbMap = Torque.getDatabaseMap("nmrshiftdb");
dbMap.addTable("MEASUREMENT_CONDITIONS");
TableMap tMap = dbMap.getTable("MEASUREMENT_CONDITIONS");
tMap.setPrimaryKeyMethod(TableMap.ID_BROKER);
tMap.setPrimaryKeyMethodInfo(tMap.getName());
tMap.addPrimaryKey ( "MEASUREMENT_CONDITIONS.MEASUREMENT_CONDITIONS_ID", new Integer(0) );
tMap.addColumn ( "MEASUREMENT_CONDITIONS.TEMPERATURE", new Double(0) );
tMap.addColumn ( "MEASUREMENT_CONDITIONS.FIELD_STRENGTH", new Integer(0) );
tMap.addColumn ( "MEASUREMENT_CONDITIONS.SOLVENT", new String() );
tMap.addForeignKey (
"MEASUREMENT_CONDITIONS.TURBINE_USER_ID", new Integer(0) , "TURBINE_USER" ,
"TURBINE_USER_ID" );
}
}
--- NEW FILE: MoleculeMapBuilder.java ---
package org.openscience.nmrshiftdb.map;
import java.util.*;
import java.math.*;
import org.apache.torque.Torque;
import org.apache.torque.map.MapBuilder;
import org.apache.torque.map.DatabaseMap;
import org.apache.torque.map.TableMap;
/**
* This class was autogenerated by Torque on:
*
* [Tue Feb 12 14:17:43 CET 2002]
*
*/
public class MoleculeMapBuilder implements MapBuilder
{
/**
* The name of this class
*/
public static final String CLASS_NAME =
"org.openscience.nmrshiftdb.map.MoleculeMapBuilder";
/**
* Item
* @deprecated use MoleculePeer.TABLE_NAME constant
*/
public static String getTable( )
{
return "MOLECULE";
}
/**
* MOLECULE.MOLECULE_ID
* @deprecated use MoleculePeer.MOLECULE.MOLECULE_ID constant
*/
public static String getMolecule_MoleculeId()
{
return "MOLECULE.MOLECULE_ID";
}
/**
* MOLECULE.DATE
* @deprecated use MoleculePeer.MOLECULE.DATE constant
*/
public static String getMolecule_Date()
{
return "MOLECULE.DATE";
}
/**
* MOLECULE.STRUCTURE_FILE
* @deprecated use MoleculePeer.MOLECULE.STRUCTURE_FILE constant
*/
public static String getMolecule_StructureFile()
{
return "MOLECULE.STRUCTURE_FILE";
}
/**
* MOLECULE.MOLECULAR_FORMULA
* @deprecated use MoleculePeer.MOLECULE.MOLECULAR_FORMULA constant
*/
public static String getMolecule_MolecularFormula()
{
return "MOLECULE.MOLECULAR_FORMULA";
}
/**
* MOLECULE.TURBINE_USER_ID
* @deprecated use MoleculePeer.MOLECULE.TURBINE_USER_ID constant
*/
public static String getMolecule_TurbineUserId()
{
return "MOLECULE.TURBINE_USER_ID";
}
/**
* The database map.
*/
private DatabaseMap dbMap = null;
/**
* Tells us if this DatabaseMapBuilder is built so that we
* don't have to re-build it every time.
*/
public boolean isBuilt()
{
if ( dbMap != null )
{
return true;
}
return false;
}
/**
* Gets the databasemap this map builder built.
*/
public DatabaseMap getDatabaseMap()
{
return this.dbMap;
}
/**
* The doBuild() method builds the DatabaseMap
*/
public void doBuild() throws Exception
{
dbMap = Torque.getDatabaseMap("nmrshiftdb");
dbMap.addTable("MOLECULE");
TableMap tMap = dbMap.getTable("MOLECULE");
tMap.setPrimaryKeyMethod(TableMap.ID_BROKER);
tMap.setPrimaryKeyMethodInfo(tMap.getName());
tMap.addPrimaryKey ( "MOLECULE.MOLECULE_ID", new Integer(0) );
tMap.addColumn ( "MOLECULE.DATE", new Date() );
tMap.addColumn ( "MOLECULE.STRUCTURE_FILE", new Object() );
tMap.addColumn ( "MOLECULE.MOLECULAR_FORMULA", new String() );
tMap.addForeignKey (
"MOLECULE.TURBINE_USER_ID", new Integer(0) , "TURBINE_USER" ,
"TURBINE_USER_ID" );
}
}
--- NEW FILE: MoleculeTurbineUserMapBuilder.java ---
package org.openscience.nmrshiftdb.map;
import java.util.*;
import java.math.*;
import org.apache.torque.Torque;
import org.apache.torque.map.MapBuilder;
import org.apache.torque.map.DatabaseMap;
import org.apache.torque.map.TableMap;
/**
* This class was autogenerated by Torque on:
*
* [Tue Feb 12 14:17:43 CET 2002]
*
*/
public class MoleculeTurbineUserMapBuilder implements MapBuilder
{
/**
* The name of this class
*/
public static final String CLASS_NAME =
"org.openscience.nmrshiftdb.map.MoleculeTurbineUserMapBuilder";
/**
* Item
* @deprecated use MoleculeTurbineUserPeer.TABLE_NAME constant
*/
public static String getTable( )
{
return "MOLECULE_TURBINE_USER";
}
/**
* MOLECULE_TURBINE_USER.MOLECULE_ID
* @deprecated use MoleculeTurbineUserPeer.MOLECULE_TURBINE_USER.MOLECULE_ID constant
*/
public static String getMoleculeTurbineUser_MoleculeId()
{
return "MOLECULE_TURBINE_USER.MOLECULE_ID";
}
/**
* MOLECULE_TURBINE_USER.TURBINE_USER_ID
* @deprecated use MoleculeTurbineUserPeer.MOLECULE_TURBINE_USER.TURBINE_USER_ID constant
*/
public static String getMoleculeTurbineUser_TurbineUserId()
{
return "MOLECULE_TURBINE_USER.TURBINE_USER_ID";
}
/**
* The database map.
*/
private DatabaseMap dbMap = null;
/**
* Tells us if this DatabaseMapBuilder is built so that we
* don't have to re-build it every time.
*/
public boolean isBuilt()
{
if ( dbMap != null )
{
return true;
}
return false;
}
/**
* Gets the databasemap this map builder built.
*/
public DatabaseMap getDatabaseMap()
{
return this.dbMap;
}
/**
* The doBuild() method builds the DatabaseMap
*/
public void doBuild() throws Exception
{
dbMap = Torque.getDatabaseMap("nmrshiftdb");
dbMap.addTable("MOLECULE_TURBINE_USER");
TableMap tMap = dbMap.getTable("MOLECULE_TURBINE_USER");
tMap.setPrimaryKeyMethod(TableMap.ID_BROKER);
tMap.setPrimaryKeyMethodInfo(tMap.getName());
tMap.addForeignKey (
"MOLECULE_TURBINE_USER.MOLECULE_ID", new Integer(0) , "MOLECULE" ,
"MOLECULE_ID" );
tMap.addForeignKey (
"MOLECULE_TURBINE_USER.TURBINE_USER_ID", new Integer(0) , "TURBINE_USER" ,
"TURBINE_USER_ID" );
}
}
--- NEW FILE: SignalAtomsMapBuilder.java ---
package org.openscience.nmrshiftdb.map;
import java.util.*;
import java.math.*;
import org.apache.torque.Torque;
import org.apache.torque.map.MapBuilder;
import org.apache.torque.map.DatabaseMap;
import org.apache.torque.map.TableMap;
/**
* This class was autogenerated by Torque on:
*
* [Tue Feb 12 14:17:43 CET 2002]
*
*/
public class SignalAtomsMapBuilder implements MapBuilder
{
/**
* The name of this class
*/
public static final String CLASS_NAME =
"org.openscience.nmrshiftdb.map.SignalAtomsMapBuilder";
/**
* Item
* @deprecated use SignalAtomsPeer.TABLE_NAME constant
*/
public static String getTable( )
{
return "SIGNAL_ATOMS";
}
/**
* SIGNAL_ATOMS.SIGNAL_ID
* @deprecated use SignalAtomsPeer.SIGNAL_ATOMS.SIGNAL_ID constant
*/
public static String getSignalAtoms_SignalId()
{
return "SIGNAL_ATOMS.SIGNAL_ID";
}
/**
* SIGNAL_ATOMS.ATOMS_ID
* @deprecated use SignalAtomsPeer.SIGNAL_ATOMS.ATOMS_ID constant
*/
public static String getSignalAtoms_AtomsId()
{
return "SIGNAL_ATOMS.ATOMS_ID";
}
/**
* The database map.
*/
private DatabaseMap dbMap = null;
/**
* Tells us if this DatabaseMapBuilder is built so that we
* don't have to re-build it every time.
*/
public boolean isBuilt()
{
if ( dbMap != null )
{
return true;
}
return false;
}
/**
* Gets the databasemap this map builder built.
*/
public DatabaseMap getDatabaseMap()
{
return this.dbMap;
}
/**
* The doBuild() method builds the DatabaseMap
*/
public void doBuild() throws Exception
{
dbMap = Torque.getDatabaseMap("nmrshiftdb");
dbMap.addTable("SIGNAL_ATOMS");
TableMap tMap = dbMap.getTable("SIGNAL_ATOMS");
tMap.setPrimaryKeyMethod(TableMap.ID_BROKER);
tMap.setPrimaryKeyMethodInfo(tMap.getName());
tMap.addForeignKey (
"SIGNAL_ATOMS.SIGNAL_ID", new Integer(0) , "SIGNAL" ,
"SIGNAL_ID" );
tMap.addForeignKey (
"SIGNAL_ATOMS.ATOMS_ID", new Integer(0) , "ATOMS" ,
"ATOMS_ID" );
}
}
--- NEW FILE: SignalMapBuilder.java ---
package org.openscience.nmrshiftdb.map;
import java.util.*;
import java.math.*;
import org.apache.torque.Torque;
import org.apache.torque.map.MapBuilder;
import org.apache.torque.map.DatabaseMap;
import org.apache.torque.map.TableMap;
/**
* This class was autogenerated by Torque on:
*
* [Tue Feb 12 14:17:43 CET 2002]
*
*/
public class SignalMapBuilder implements MapBuilder
{
/**
* The name of this class
*/
public static final String CLASS_NAME =
"org.openscience.nmrshiftdb.map.SignalMapBuilder";
/**
* Item
* @deprecated use SignalPeer.TABLE_NAME constant
*/
public static String getTable( )
{
return "SIGNAL";
}
/**
* SIGNAL.SIGNAL_ID
* @deprecated use SignalPeer.SIGNAL.SIGNAL_ID constant
*/
public static String getSignal_SignalId()
{
return "SIGNAL.SIGNAL_ID";
}
/**
* SIGNAL.DIMENSIONALITY
* @deprecated use SignalPeer.SIGNAL.DIMENSIONALITY constant
*/
public static String getSignal_Dimensionality()
{
return "SIGNAL.DIMENSIONALITY";
}
/**
* SIGNAL.SHIFT_1
* @deprecated use SignalPeer.SIGNAL.SHIFT_1 constant
*/
public static String getSignal_Shift1()
{
return "SIGNAL.SHIFT_1";
}
/**
* SIGNAL.SHIFT_2
* @deprecated use SignalPeer.SIGNAL.SHIFT_2 constant
*/
public static String getSignal_Shift2()
{
return "SIGNAL.SHIFT_2";
}
/**
* SIGNAL.SHIFT_3
* @deprecated use SignalPeer.SIGNAL.SHIFT_3 constant
*/
public static String getSignal_Shift3()
{
return "SIGNAL.SHIFT_3";
}
/**
* SIGNAL.SHIFT_4
* @deprecated use SignalPeer.SIGNAL.SHIFT_4 constant
*/
public static String getSignal_Shift4()
{
return "SIGNAL.SHIFT_4";
}
/**
* SIGNAL.SHIFT_5
* @deprecated use SignalPeer.SIGNAL.SHIFT_5 constant
*/
public static String getSignal_Shift5()
{
return "SIGNAL.SHIFT_5";
}
/**
* SIGNAL.SPECTRUM_TYPE_ID
* @deprecated use SignalPeer.SIGNAL.SPECTRUM_TYPE_ID constant
*/
public static String getSignal_SpectrumTypeId()
{
return "SIGNAL.SPECTRUM_TYPE_ID";
}
/**
* The database map.
*/
private DatabaseMap dbMap = null;
/**
* Tells us if this DatabaseMapBuilder is built so that we
* don't have to re-build it every time.
*/
public boolean isBuilt()
{
if ( dbMap != null )
{
return true;
}
return false;
}
/**
* Gets the databasemap this map builder built.
*/
public DatabaseMap getDatabaseMap()
{
return this.dbMap;
}
/**
* The doBuild() method builds the DatabaseMap
*/
public void doBuild() throws Exception
{
dbMap = Torque.getDatabaseMap("nmrshiftdb");
dbMap.addTable("SIGNAL");
TableMap tMap = dbMap.getTable("SIGNAL");
tMap.setPrimaryKeyMethod(TableMap.ID_BROKER);
tMap.setPrimaryKeyMethodInfo(tMap.getName());
tMap.addPrimaryKey ( "SIGNAL.SIGNAL_ID", new Integer(0) );
tMap.addColumn ( "SIGNAL.DIMENSIONALITY", new Integer(0) );
tMap.addColumn ( "SIGNAL.SHIFT_1", new Double(0) );
tMap.addColumn ( "SIGNAL.SHIFT_2", new Double(0) );
tMap.addColumn ( "SIGNAL.SHIFT_3", new Double(0) );
tMap.addColumn ( "SIGNAL.SHIFT_4", new Double(0) );
tMap.addColumn ( "SIGNAL.SHIFT_5", new Double(0) );
tMap.addForeignKey (
"SIGNAL.SPECTRUM_TYPE_ID", new Integer(0) , "SPECTRUM_TYPE" ,
"SPECTRUM_TYPE_ID" );
}
}
--- NEW FILE: SpectrumMapBuilder.java ---
package org.openscience.nmrshiftdb.map;
import java.util.*;
import java.math.*;
import org.apache.torque.Torque;
import org.apache.torque.map.MapBuilder;
import org.apache.torque.map.DatabaseMap;
import org.apache.torque.map.TableMap;
/**
* This class was autogenerated by Torque on:
*
* [Tue Feb 12 14:17:43 CET 2002]
*
*/
public class SpectrumMapBuilder implements MapBuilder
{
/**
* The name of this class
*/
public static final String CLASS_NAME =
"org.openscience.nmrshiftdb.map.SpectrumMapBuilder";
/**
* Item
* @deprecated use SpectrumPeer.TABLE_NAME constant
*/
public static String getTable( )
{
return "SPECTRUM";
}
/**
* SPECTRUM.SPECTRUM_ID
* @deprecated use SpectrumPeer.SPECTRUM.SPECTRUM_ID constant
*/
public static String getSpectrum_SpectrumId()
{
return "SPECTRUM.SPECTRUM_ID";
}
/**
* SPECTRUM.DATE
* @deprecated use SpectrumPeer.SPECTRUM.DATE constant
*/
public static String getSpectrum_Date()
{
return "SPECTRUM.DATE";
}
/**
* SPECTRUM.SPECFILE
* @deprecated use SpectrumPeer.SPECTRUM.SPECFILE constant
*/
public static String getSpectrum_Specfile()
{
return "SPECTRUM.SPECFILE";
}
/**
* SPECTRUM.TURBINE_USER_ID
* @deprecated use SpectrumPeer.SPECTRUM.TURBINE_USER_ID constant
*/
public static String getSpectrum_TurbineUserId()
{
return "SPECTRUM.TURBINE_USER_ID";
}
/**
* SPECTRUM.MEASUREMENT_CONDITIONS_ID
* @deprecated use SpectrumPeer.SPECTRUM.MEASUREMENT_CONDITIONS_ID constant
*/
public static String getSpectrum_MeasurementConditionsId()
{
return "SPECTRUM.MEASUREMENT_CONDITIONS_ID";
}
/**
* SPECTRUM.SPECTRUM_TYPE_ID
* @deprecated use SpectrumPeer.SPECTRUM.SPECTRUM_TYPE_ID constant
*/
public static String getSpectrum_SpectrumTypeId()
{
return "SPECTRUM.SPECTRUM_TYPE_ID";
}
/**
* SPECTRUM.MOLECULE_ID
* @deprecated use SpectrumPeer.SPECTRUM.MOLECULE_ID constant
*/
public static String getSpectrum_MoleculeId()
{
return "SPECTRUM.MOLECULE_ID";
}
/**
* The database map.
*/
private DatabaseMap dbMap = null;
/**
* Tells us if this DatabaseMapBuilder is built so that we
* don't have to re-build it every time.
*/
public boolean isBuilt()
{
if ( dbMap != null )
{
return true;
}
return false;
}
/**
* Gets the databasemap this map builder built.
*/
public DatabaseMap getDatabaseMap()
{
return this.dbMap;
}
/**
* The doBuild() method builds the DatabaseMap
*/
public void doBuild() throws Exception
{
dbMap = Torque.getDatabaseMap("nmrshiftdb");
dbMap.addTable("SPECTRUM");
TableMap tMap = dbMap.getTable("SPECTRUM");
tMap.setPrimaryKeyMethod(TableMap.ID_BROKER);
tMap.setPrimaryKeyMethodInfo(tMap.getName());
tMap.addPrimaryKey ( "SPECTRUM.SPECTRUM_ID", new Integer(0) );
tMap.addColumn ( "SPECTRUM.DATE", new Date() );
tMap.addColumn ( "SPECTRUM.SPECFILE", new Object() );
tMap.addForeignKey (
"SPECTRUM.TURBINE_USER_ID", new Integer(0) , "TURBINE_USER" ,
"TURBINE_USER_ID" );
tMap.addForeignKey (
"SPECTRUM.MEASUREMENT_CONDITIONS_ID", new Integer(0) , "MEASUREMENT_CONDITIONS" ,
"MEASUREMENT_CONDITIONS_ID" );
tMap.addForeignKey (
"SPECTRUM.SPECTRUM_TYPE_ID", new Integer(0) , "SPECTRUM_TYPE" ,
"SPECTRUM_TYPE_ID" );
tMap.addForeignKey (
"SPECTRUM.MOLECULE_ID", new Integer(0) , "MOLECULE" ,
"MOLECULE_ID" );
}
}
--- NEW FILE: SpectrumTypeMapBuilder.java ---
package org.openscience.nmrshiftdb.map;
import java.util.*;
import java.math.*;
import org.apache.torque.Torque;
import org.apache.torque.map.MapBuilder;
import org.apache.torque.map.DatabaseMap;
import org.apache.torque.map.TableMap;
/**
* This class was autogenerated by Torque on:
*
* [Tue Feb 12 14:17:43 CET 2002]
*
*/
public class SpectrumTypeMapBuilder implements MapBuilder
{
/**
* The name of this class
*/
public static final String CLASS_NAME =
"org.openscience.nmrshiftdb.map.SpectrumTypeMapBuilder";
/**
* Item
* @deprecated use SpectrumTypePeer.TABLE_NAME constant
*/
public static String getTable( )
{
return "SPECTRUM_TYPE";
}
/**
* SPECTRUM_TYPE.SPECTRUM_TYPE_ID
* @deprecated use SpectrumTypePeer.SPECTRUM_TYPE.SPECTRUM_TYPE_ID constant
*/
public static String getSpectrumType_SpectrumTypeId()
{
return "SPECTRUM_TYPE.SPECTRUM_TYPE_ID";
}
/**
* SPECTRUM_TYPE.DIMENSIONALITY
* @deprecated use SpectrumTypePeer.SPECTRUM_TYPE.DIMENSIONALITY constant
*/
public static String getSpectrumType_Dimensionality()
{
return "SPECTRUM_TYPE.DIMENSIONALITY";
}
/**
* SPECTRUM_TYPE.NAME
* @deprecated use SpectrumTypePeer.SPECTRUM_TYPE.NAME constant
*/
public static String getSpectrumType_Name()
{
return "SPECTRUM_TYPE.NAME";
}
/**
* SPECTRUM_TYPE.ISOTOPE_1
* @deprecated use SpectrumTypePeer.SPECTRUM_TYPE.ISOTOPE_1 constant
*/
public static String getSpectrumType_Isotope1()
{
return "SPECTRUM_TYPE.ISOTOPE_1";
}
/**
* SPECTRUM_TYPE.ISOTOPE_2
* @deprecated use SpectrumTypePeer.SPECTRUM_TYPE.ISOTOPE_2 constant
*/
public static String getSpectrumType_Isotope2()
{
return "SPECTRUM_TYPE.ISOTOPE_2";
}
/**
* SPECTRUM_TYPE.ISOTOPE_3
* @deprecated use SpectrumTypePeer.SPECTRUM_TYPE.ISOTOPE_3 constant
*/
public static String getSpectrumType_Isotope3()
{
return "SPECTRUM_TYPE.ISOTOPE_3";
}
/**
* SPECTRUM_TYPE.ISOTOPE_4
* @deprecated use SpectrumTypePeer.SPECTRUM_TYPE.ISOTOPE_4 constant
*/
public static String getSpectrumType_Isotope4()
{
return "SPECTRUM_TYPE.ISOTOPE_4";
}
/**
* SPECTRUM_TYPE.ISOTOPE_5
* @deprecated use SpectrumTypePeer.SPECTRUM_TYPE.ISOTOPE_5 constant
*/
public static String getSpectrumType_Isotope5()
{
return "SPECTRUM_TYPE.ISOTOPE_5";
}
/**
* SPECTRUM_TYPE.TURBINE_USER_ID
* @deprecated use SpectrumTypePeer.SPECTRUM_TYPE.TURBINE_USER_ID constant
*/
public static String getSpectrumType_TurbineUserId()
{
return "SPECTRUM_TYPE.TURBINE_USER_ID";
}
/**
* The database map.
*/
private DatabaseMap dbMap = null;
/**
* Tells us if this DatabaseMapBuilder is built so that we
* don't have to re-build it every time.
*/
public boolean isBuilt()
{
if ( dbMap != null )
{
return true;
}
return false;
}
/**
* Gets the databasemap this map builder built.
*/
public DatabaseMap getDatabaseMap()
{
return this.dbMap;
}
/**
* The doBuild() method builds the DatabaseMap
*/
public void doBuild() throws Exception
{
dbMap = Torque.getDatabaseMap("nmrshiftdb");
dbMap.addTable("SPECTRUM_TYPE");
TableMap tMap = dbMap.getTable("SPECTRUM_TYPE");
tMap.setPrimaryKeyMethod(TableMap.ID_BROKER);
tMap.setPrimaryKeyMethodInfo(tMap.getName());
tMap.addPrimaryKey ( "SPECTRUM_TYPE.SPECTRUM_TYPE_ID", new Integer(0) );
tMap.addColumn ( "SPECTRUM_TYPE.DIMENSIONALITY", new Integer(0) );
tMap.addColumn ( "SPECTRUM_TYPE.NAME", new String() );
tMap.addColumn ( "SPECTRUM_TYPE.ISOTOPE_1", new String() );
tMap.addColumn ( "SPECTRUM_TYPE.ISOTOPE_2", new String() );
tMap.addColumn ( "SPECTRUM_TYPE.ISOTOPE_3", new String() );
tMap.addColumn ( "SPECTRUM_TYPE.ISOTOPE_4", new String() );
tMap.addColumn ( "SPECTRUM_TYPE.ISOTOPE_5", new String() );
tMap.addForeignKey (
"SPECTRUM_TYPE.TURBINE_USER_ID", new Integer(0) , "TURBINE_USER" ,
"TURBINE_USER_ID" );
}
}
--- NEW FILE: TurbineUserMapBuilder.java ---
package org.openscience.nmrshiftdb.map;
import java.util.*;
import java.math.*;
import org.apache.torque.Torque;
import org.apache.torque.map.MapBuilder;
import org.apache.torque.map.DatabaseMap;
import org.apache.torque.map.TableMap;
/**
* This class was autogenerated by Torque on:
*
* [Tue Feb 12 14:17:43 CET 2002]
*
*/
public class TurbineUserMapBuilder implements MapBuilder
{
/**
* The name of this class
*/
public static final String CLASS_NAME =
"org.openscience.nmrshiftdb.map.TurbineUserMapBuilder";
/**
* Item
* @deprecated use TurbineUserPeer.TABLE_NAME constant
*/
public static String getTable( )
{
return "TURBINE_USER";
}
/**
* TURBINE_USER.TURBINE_USER_ID
* @deprecated use TurbineUserPeer.TURBINE_USER.TURBINE_USER_ID constant
*/
public static String getTurbineUser_TurbineUserId()
{
return "TURBINE_USER.TURBINE_USER_ID";
}
/**
* TURBINE_USER.FIRST_NAME
* @deprecated use TurbineUserPeer.TURBINE_USER.FIRST_NAME constant
*/
public static String getTurbineUser_FirstName()
{
return "TURBINE_USER.FIRST_NAME";
}
/**
* TURBINE_USER.LAST_NAME
* @deprecated use TurbineUserPeer.TURBINE_USER.LAST_NAME constant
*/
public static String getTurbineUser_LastName()
{
return "TURBINE_USER.LAST_NAME";
}
/**
* TURBINE_USER.TITLE
* @deprecated use TurbineUserPeer.TURBINE_USER.TITLE constant
*/
public static String getTurbineUser_Title()
{
return "TURBINE_USER.TITLE";
}
/**
* TURBINE_USER.ADDRESS
* @deprecated use TurbineUserPeer.TURBINE_USER.ADDRESS constant
*/
public static String getTurbineUser_Address()
{
return "TURBINE_USER.ADDRESS";
}
/**
* TURBINE_USER.CITY
* @deprecated use TurbineUserPeer.TURBINE_USER.CITY constant
*/
public static String getTurbineUser_City()
{
return "TURBINE_USER.CITY";
}
/**
* TURBINE_USER.COUNTRY
* @deprecated use TurbineUserPeer.TURBINE_USER.COUNTRY constant
*/
public static String getTurbineUser_Country()
{
return "TURBINE_USER.COUNTRY";
}
/**
* TURBINE_USER.EMAIL_ADDRESS
* @deprecated use TurbineUserPeer.TURBINE_USER.EMAIL_ADDRESS constant
*/
public static String getTurbineUser_EmailAddress()
{
return "TURBINE_USER.EMAIL_ADDRESS";
}
/**
* TURBINE_USER.WEBPAGE
* @deprecated use TurbineUserPeer.TURBINE_USER.WEBPAGE constant
*/
public static String getTurbineUser_Webpage()
{
return "TURBINE_USER.WEBPAGE";
}
/**
* TURBINE_USER.AFFILIATION
* @deprecated use TurbineUserPeer.TURBINE_USER.AFFILIATION constant
*/
public static String getTurbineUser_Affiliation()
{
return "TURBINE_USER.AFFILIATION";
}
/**
* TURBINE_USER.ZIP_CODE
* @deprecated use TurbineUserPeer.TURBINE_USER.ZIP_CODE constant
*/
public static String getTurbineUser_ZipCode()
{
return "TURBINE_USER.ZIP_CODE";
}
/**
* TURBINE_USER.LAST_LOGIN
* @deprecated use TurbineUserPeer.TURBINE_USER.LAST_LOGIN constant
*/
public static String getTurbineUser_LastLogin()
{
return "TURBINE_USER.LAST_LOGIN";
}
/**
* The database map.
*/
private DatabaseMap dbMap = null;
/**
* Tells us if this DatabaseMapBuilder is built so that we
* don't have to re-build it every time.
*/
public boolean isBuilt()
{
if ( dbMap != null )
{
return true;
}
return false;
}
/**
* Gets the databasemap this map builder built.
*/
public DatabaseMap getDatabaseMap()
{
return this.dbMap;
}
/**
* The doBuild() method builds the DatabaseMap
*/
public void doBuild() throws Exception
{
dbMap = Torque.getDatabaseMap("nmrshiftdb");
dbMap.addTable("TURBINE_USER");
TableMap tMap = dbMap.getTable("TURBINE_USER");
tMap.setPrimaryKeyMethod(TableMap.ID_BROKER);
tMap.setPrimaryKeyMethodInfo(tMap.getName());
tMap.addPrimaryKey ( "TURBINE_USER.TURBINE_USER_ID", new Integer(0) );
tMap.addColumn ( "TURBINE_USER.FIRST_NAME", new String() );
tMap.addColumn ( "TURBINE_USER.LAST_NAME", new String() );
tMap.addColumn ( "TURBINE_USER.TITLE", new String() );
tMap.addColumn ( "TURBINE_USER.ADDRESS", new String() );
tMap.addColumn ( "TURBINE_USER.CITY", new String() );
tMap.addColumn ( "TURBINE_USER.COUNTRY", new String() );
tMap.addColumn ( "TURBINE_USER.EMAIL_ADDRESS", new String() );
tMap.addColumn ( "TURBINE_USER.WEBPAGE", new String() );
tMap.addColumn ( "TURBINE_USER.AFFILIATION", new String() );
tMap.addColumn ( "TURBINE_USER.ZIP_CODE", new Integer(0) );
tMap.addColumn ( "TURBINE_USER.LAST_LOGIN", new Date() );
}
}
|