public class FolderItemFactory extends HiveItemFactory
Modifier and Type | Field and Description |
---|---|
protected FolderCommon |
folder |
hive
DEFAULT_ID_DELIMITER, itemMap
Constructor and Description |
---|
FolderItemFactory(CommonItemFactory parentFactory,
HiveCommon hive,
FolderCommon parentFolder,
String baseId,
String folderName) |
FolderItemFactory(CommonItemFactory parentFactory,
HiveCommon hive,
FolderCommon parentFolder,
String baseId,
String folderName,
String idDelimiter) |
FolderItemFactory(HiveCommon hive,
FolderCommon parentFolder,
String baseId,
String folderName) |
Modifier and Type | Method and Description |
---|---|
protected void |
addToFolder(DataItem item,
String name,
Map<String,Variant> attributes) |
protected DataItemCommand |
constructCommand(String localId) |
protected DataItemInputChained |
constructInput(String localId) |
protected WriteHandlerItem |
constructInputOutput(String localId,
WriteHandler writeHandler) |
protected WriteHandlerItem |
constructWriteHandler(String localId,
WriteHandler writeHandler) |
FolderItemFactory |
createSubFolderFactory(String name) |
void |
dispose()
Dispose the factory
|
void |
disposeAllItems()
Dispose all items but not the factory itself
|
void |
disposeItem(DataItem item)
Dispose an item if it was created by this factory
|
FolderCommon |
getFolder() |
addSubFactory, createCommand, createInput, createInputOutput, createOutput, generateId, getBaseId, isDisposed, removeSubFactory, setIdDelimiter
protected FolderCommon folder
public FolderItemFactory(HiveCommon hive, FolderCommon parentFolder, String baseId, String folderName)
public FolderItemFactory(CommonItemFactory parentFactory, HiveCommon hive, FolderCommon parentFolder, String baseId, String folderName)
public FolderItemFactory(CommonItemFactory parentFactory, HiveCommon hive, FolderCommon parentFolder, String baseId, String folderName, String idDelimiter)
public void dispose()
ItemFactory
All items that where created by this factory and where not disposed up to now are being disposed
After a call to this method it is not possible to create new items.
Multiple calls to ItemFactory.dispose()
or calls to
ItemFactory.disposeAllItems()
are possible.
dispose
in interface ItemFactory
dispose
in class CommonItemFactory
public void disposeItem(DataItem item)
ItemFactory
If the item was not created by this factory or was already disposed this is no error and no exception is thrown
disposeItem
in interface ItemFactory
disposeItem
in class HiveItemFactory
item
- data item to disposeprotected DataItemCommand constructCommand(String localId)
constructCommand
in class HiveItemFactory
protected DataItemInputChained constructInput(String localId)
constructInput
in class HiveItemFactory
protected WriteHandlerItem constructWriteHandler(String localId, WriteHandler writeHandler)
constructWriteHandler
in class HiveItemFactory
protected WriteHandlerItem constructInputOutput(String localId, WriteHandler writeHandler)
constructInputOutput
in class HiveItemFactory
public FolderCommon getFolder()
public FolderItemFactory createSubFolderFactory(String name)
public void disposeAllItems()
CommonItemFactory
disposeAllItems
in interface ItemFactory
disposeAllItems
in class HiveItemFactory