Hi, In the JobEntry.java
[ PATCH ]
Line 548 - 560 , The PrimaryKey is a Object .
/**
* Compare this Job with another.
*
* @param je The JobEntry object to compare to.
* @return True if they're the same.
*/
public boolean equals(Object je)
{
if ( !( je instanceof JobEntry ) )
return false;
+ return ( (JobEntry) je ).getPrimaryKey().equals(this.getPrimaryKey() )
- return ( ( (JobEntry)je ).getPrimaryKey() == this.getPrimaryKey() );
}
[PROPOSAL]
In case of a schedule_job class uses by many permitted user ,
I need to have more information to initialized the each job event.
So I propose that The JobEntry object has a Hashtable as a job property container.
like
JobEntry.java
public class JobEntry extends BaseObject
{
Line 111
/** job properties **/
+ private Hashtable jobProp = null;
Line 592 - 610
+ /**
+ * Set this job initial Properties
+ *
+ */
+ public void setProperty(Hashtable prop)
+ {
+ this.jobProp = prop;
+
+ }
+
+ /**
+ * Set this job initial Properties
+ *
+ */
+ public Hashtable getProperty()
+ {
+ return this.jobProp;
+
+ }
+
}
JobEntryPeer.java
public class JobEntryPeer extends BasePeer
{
Line 95
+ public static final String PROPERTY = mapBuilder.getJobentry_Property();
Line 129 - 130
+ .addSelectColumn(EMAIL)
- .addSelectColumn(EMAIL);
+ .addSelectColumn(PROPERTY);
Line 147 - 148
+ byte[] objectData = (byte[])rec.getValue(9).asBytes();
+ Hashtable tempHash = (Hashtable)ObjectUtils.deserialize(objectData);
Line 155
+ je.setProperty(tempHash);
Line 176
+ Criteria c = new Criteria(9);
- Criteria c = new Criteria(8);
}
TurbineMapBuilder.java
public class TurbineMapBuilder implements MapBuilder
{
Line 157
+ /**
+ * Column used to store the job schedule property.
+ * Override this if using your custom table.
+ *
+ * @return A String.
+ */
+ public String getProperty()
+ {
+ return "PROPERTY";
+ }
Line 788 - 797
+ /**
+ * Fully qualified column name for property column. Shouldn't
+ * need to override this as it uses the above methods.
+ *
+ * @return A String.
+ */
+ public String getJobentry_Property()
+ {
+ return getTableJobentry()+"."+getProperty();
+ }
Line 966
+ tMap.addColumn(getProperty(), new Hashtable(1));
}
and modified each db schemas file.
Thanks,
younhgo
���r��z۫n)ޢyb��(�H��� ��&N�����r��z۫n)ޡ���p��"�h��(�'���a���
0���j�!����o�����4�+-�x��oϮ��zk#�|(�H��� ��&