From: <and...@us...> - 2009-06-28 20:01:48
|
Revision: 822 http://ggc.svn.sourceforge.net/ggc/?rev=822&view=rev Author: andyrozman Date: 2009-06-28 20:01:47 +0000 (Sun, 28 Jun 2009) Log Message: ----------- Modified Paths: -------------- trunk/ggc-cgm/.classpath trunk/ggc-cgm/src/ggc/cgm/data/CGMValuesEntry.java Modified: trunk/ggc-cgm/.classpath =================================================================== --- trunk/ggc-cgm/.classpath 2009-06-28 20:00:53 UTC (rev 821) +++ trunk/ggc-cgm/.classpath 2009-06-28 20:01:47 UTC (rev 822) @@ -7,5 +7,6 @@ <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/commons-logging-1.0.4"/> <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/commons-lang-2.4"/> <classpathentry combineaccessrules="false" kind="src" path="/GGC Plugin Base"/> + <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Hibernate-3.1"/> <classpathentry kind="output" path="bin"/> </classpath> Modified: trunk/ggc-cgm/src/ggc/cgm/data/CGMValuesEntry.java =================================================================== --- trunk/ggc-cgm/src/ggc/cgm/data/CGMValuesEntry.java 2009-06-28 20:00:53 UTC (rev 821) +++ trunk/ggc-cgm/src/ggc/cgm/data/CGMValuesEntry.java 2009-06-28 20:01:47 UTC (rev 822) @@ -8,6 +8,8 @@ import java.util.ArrayList; import java.util.Hashtable; +import org.hibernate.Session; + import com.atech.utils.ATechDate; /** @@ -365,6 +367,122 @@ { return ""; } + + + /** + * getObjectUniqueId - get id of object + * @return unique object id + */ + public String getObjectUniqueId() + { + return ""; + } + + + /** + * DbAdd - Add this object to database + * + * @param sess Hibernate Session object + * @throws Exception (HibernateException) with error + * @return id in type of String + */ + public String DbAdd(Session sess) throws Exception + { + return ""; + } + + + /** + * DbEdit - Edit this object in database + * + * @param sess Hibernate Session object + * @throws Exception (HibernateException) with error + * @return true if action done or Exception if not + */ + public boolean DbEdit(Session sess) throws Exception + { + return false; + } + + + /** + * DbDelete - Delete this object in database + * + * @param sess Hibernate Session object + * @throws Exception (HibernateException) with error + * @return true if action done or Exception if not + */ + public boolean DbDelete(Session sess) throws Exception + { + return false; + } + + + /** + * DbHasChildren - Shows if this entry has any children object, this is needed for delete + * + * @param sess Hibernate Session object + * @throws Exception (HibernateException) with error + * @return true if action done or Exception if not + */ + public boolean DbHasChildren(Session sess) throws Exception + { + return false; + } + + + /** + * DbGet - Loads this object. Id must be set. + * + * @param sess Hibernate Session object + * @throws Exception (HibernateException) with error + * @return true if action done or Exception if not + */ + public boolean DbGet(Session sess) throws Exception + { + return false; + } + + + /** + * getObjectName - returns name of DatabaseObject + * + * @return name of object (not Hibernate object) + */ + public String getObjectName() + { + return ""; + } + + + /** + * isDebugMode - returns debug mode of object + * + * @return true if object in debug mode + */ + public boolean isDebugMode() + { + return false; + } + + + + /** + * getAction - returns action that should be done on object + * 0 = no action + * 1 = add action + * 2 = edit action + * 3 = delete action + * This is used mainly for objects, contained in lists and dialogs, used for + * processing by higher classes (classes calling selectors, wizards, etc... + * + * @return number of action + */ + public int getAction() + { + return 0; + } + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |