Changeset 1067
- Timestamp:
- 11/26/07 17:02:30 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/rdbms/persistence/stubDefaultEntityManager.php
r1063 r1067 84 84 85 85 /** 86 * takes an entity and inserts it into the database 87 * 88 * @param object $entity 89 * @return string 90 * @throws stubDatabaseSerializerException 91 * @throws stubPersistenceException 92 */ 93 public function insert($entity) 94 { 95 return stubDatabaseSerializer::getInstance($this->connection) 96 ->insert($entity); 97 } 98 99 /** 100 * takes an entity and updates the database entry 101 * 102 * @param object $entity 103 * @return string 104 * @throws stubDatabaseSerializerException 105 * @throws stubPersistenceException 106 */ 107 public function update($entity) 108 { 109 return stubDatabaseSerializer::getInstance($this->connection) 110 ->update($entity); 111 } 112 113 /** 86 114 * takes an entity and serializes it into the database 87 115 * trunk/src/main/php/net/stubbles/rdbms/persistence/stubEntityManager.php
r1063 r1067 59 59 60 60 /** 61 * takes an entity and inserts it into the database 62 * 63 * @param object $entity 64 * @return string 65 * @throws stubDatabaseSerializerException 66 * @throws stubPersistenceException 67 */ 68 public function insert($entity); 69 70 /** 71 * takes an entity and updates the database entry 72 * 73 * @param object $entity 74 * @return string 75 * @throws stubDatabaseSerializerException 76 * @throws stubPersistenceException 77 */ 78 public function update($entity); 79 80 /** 61 81 * takes an entity and serializes it into the database 62 82 *
