Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.service.instance.internal.orient
Class HaleStoreInstancesJob

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.core.internal.jobs.InternalJob
          extended by org.eclipse.core.runtime.jobs.Job
              extended by eu.esdihumboldt.hale.common.instance.orient.storage.StoreInstancesJob
                  extended by eu.esdihumboldt.hale.ui.service.instance.internal.orient.HaleStoreInstancesJob
All Implemented Interfaces:
Comparable, org.eclipse.core.runtime.IAdaptable

public abstract class HaleStoreInstancesJob
extends StoreInstancesJob

Store instances in a database

Author:
Simon Templer

Field Summary
 
Fields inherited from class eu.esdihumboldt.hale.common.instance.orient.storage.StoreInstancesJob
report
 
Fields inherited from class org.eclipse.core.runtime.jobs.Job
ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITING
 
Fields inherited from class org.eclipse.core.internal.jobs.InternalJob
manager
 
Constructor Summary
HaleStoreInstancesJob(String name, LocalOrientDB database, InstanceCollection instances)
          Create a job that stores instances in a database
 
Method Summary
protected  void processInstance(Instance instance)
          Process an instance before it is saved.
protected  void updateInstance(MutableInstance instance)
          Update an instance before it is converted and saved, e.g.
 
Methods inherited from class eu.esdihumboldt.hale.common.instance.orient.storage.StoreInstancesJob
onComplete, run
 
Methods inherited from class org.eclipse.core.runtime.jobs.Job
addJobChangeListener, belongsTo, cancel, canceling, done, getJobManager, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, removeJobChangeListener, schedule, schedule, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, shouldRun, shouldSchedule, sleep, toString, wakeUp, wakeUp, yieldRule
 
Methods inherited from class org.eclipse.core.internal.jobs.InternalJob
compareTo
 
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

HaleStoreInstancesJob

public HaleStoreInstancesJob(String name,
                             LocalOrientDB database,
                             InstanceCollection instances)
Create a job that stores instances in a database

Parameters:
name - the (human readable) job name
instances - the instances to store in the database
database - the database
Method Detail

updateInstance

protected void updateInstance(MutableInstance instance)
Description copied from class: StoreInstancesJob
Update an instance before it is converted and saved, e.g. adding metadata. The default implementation does nothing and may be overridden.

Overrides:
updateInstance in class StoreInstancesJob
Parameters:
instance - the instance
See Also:
StoreInstancesJob.updateInstance(MutableInstance)

processInstance

protected void processInstance(Instance instance)
Description copied from class: StoreInstancesJob
Process an instance before it is saved. The default implementation does nothing and may be overridden.

Overrides:
processInstance in class StoreInstancesJob
Parameters:
instance - the instance, may not be changed in any way
See Also:
StoreInstancesJob.processInstance(Instance)

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d