/** * Stores the object in the database. If the object is new, it inserts it; otherwise an update is * performed. This method is meant to be used as part of a transaction, otherwise use the save() * method and the connection details will be handled internally * * @param con * @throws TorqueException */ public void save(Connection con) throws TorqueException { if (!alreadyInSave) { alreadyInSave = true; // If this object has been modified, then save it to the database. if (isModified()) { if (isNew()) { SynonymPeer.doInsert((Synonym) this, con); setNew(false); } else { SynonymPeer.doUpdate((Synonym) this, con); } } alreadyInSave = false; } }
/** * Retrieves the TableMap object related to this Table data without compiler warnings of using * getPeer().getTableMap(). * * @return The associated TableMap object. */ public TableMap getTableMap() throws TorqueException { return SynonymPeer.getTableMap(); }