nl.cloudfarming.client.area.field
Class FieldAreaService
java.lang.Object
nl.cloudfarming.client.model.DataProvider
nl.cloudfarming.client.model.CommonModelService
nl.cloudfarming.client.area.field.FieldAreaService
- All Implemented Interfaces:
- AreaService, BeanService, org.openide.explorer.ExplorerManager.Provider, org.openide.util.Lookup.Provider
public class FieldAreaService
- extends CommonModelService
- implements AreaService
- Author:
- Timon Veenstra
| Methods inherited from class nl.cloudfarming.client.model.CommonModelService |
addPropertyChangeListener, addPropertyChangeListener, commit, createPartField, createPartField, findAllFieldPlans, findAllFields, flush, getEntityManager, getPropertyChangeSupport, merge, mergeAndPersistInTransaction, persistInTransaction, remove, removePropertyChangeListener, removePropertyChangeListener, save, startTransaction |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FieldAreaService
public FieldAreaService()
getModuleName
protected final String getModuleName()
- Specified by:
getModuleName in class CommonModelService
findAllCurrentFields
public final List<Field> findAllCurrentFields()
createNewField
public final void createNewField(Field field)
- Specified by:
createNewField in interface AreaService
saveFieldChanges
public final void saveFieldChanges(Field field)
- Specified by:
saveFieldChanges in interface AreaService
createNewFieldFile
public final void createNewFieldFile(FieldFile fieldFile)
- Specified by:
createNewFieldFile in interface AreaService
findProductionUnitsByDate
public List<ProductionUnit> findProductionUnitsByDate(Date date)
- Find production units by date
- Specified by:
findProductionUnitsByDate in interface AreaService
- Parameters:
date - The PU should be active on this date
- Returns:
- The list of PU's active on the specified Date
initExplorer
protected final void initExplorer()
- Specified by:
initExplorer in class DataProvider
findPartFieldsByDate
public List<PartField> findPartFieldsByDate(Date date)
- Find partfields by Date
- Specified by:
findPartFieldsByDate in interface AreaService
- Parameters:
date - The date the field has to be active.
- Returns:
- The list of partfields active on Date date
findFieldFileByNameAndChecksum
public FieldFile findFieldFileByNameAndChecksum(String name,
String checksum)
- Find a Field by specifying the filename and the checksum
- Specified by:
findFieldFileByNameAndChecksum in interface AreaService
- Parameters:
name - Filenamechecksum - file checksum
- Returns:
findFieldById
public Field findFieldById(long id)
- Find a Field by ID
- Specified by:
findFieldById in interface AreaService
- Parameters:
id -
- Returns:
Copyright © 2011. All Rights Reserved.