setStorage(theStorage);\r
}\r
\r
- //\r
- // methods\r
-\r
- public void update() throws StorageObjectFailure {\r
- super.update();\r
-\r
- try {\r
- theStorageObject.executeUpdate("update content set is_produced='0' where exists(select * from content_x_media where to_content=content.id and to_media=" + getId()+")");\r
- }\r
- catch (SQLException e) {\r
- logger.error("EntityVideo.update: " + e.toString());\r
- }\r
- }\r
-\r
public void setValues(Map theStringValues) {\r
if (theStringValues != null) {\r
if (!theStringValues.containsKey("is_published"))\r