Package com.jalios.jstore
Class StorableLogEntry
- java.lang.Object
-
- com.jalios.jstore.LogEntry
-
- com.jalios.jstore.StorableLogEntry
-
- All Implemented Interfaces:
StoreConstants,java.lang.Comparable<LogEntry>
public class StorableLogEntry extends LogEntry implements StoreConstants
This abstract class represents a Store operation on a Storable object.- Author:
- Olivier Dedieu
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringidstatic java.lang.StringIDprotected java.lang.Stringopstatic java.lang.StringOP-
Fields inherited from interface com.jalios.jstore.StoreConstants
ARRAY_FLAG, CLEANING_STATE, COLLECTION_FLAG, CREATE_OP, DELETE_OP, IDLE_STATE, INNER_LOGS, INNER_MILESTONE, INNER_PREFIX, INNER_SYNC, ITEM_ESCAPE_CHAR, ITEM_SEPARATOR, LOADING_STATE, LOG_DIR_LOG_PREFIX, LOG_DIR_LOG_WORK, MAP_ASSIGN, MAP_CHARS_TO_ESCAPE, MAP_CLASS_SEPARATOR, MAP_FLAG, NAMESPACE, SH_SUFFIX, STORING_STATE, UPDATE_OP
-
-
Constructor Summary
Constructors Constructor Description StorableLogEntry(StorableLogEntry entry)Constructor for a new entry from an existing one.StorableLogEntry(java.lang.String elementName, java.util.Map<java.lang.String,java.lang.String> attributes)Constructor for an entry stored by the application
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetID()java.lang.StringgetOperation()booleanisCreate()booleanisDelete()booleanisUpdate()protected java.lang.StringopenXMLElement()voidsetID(java.lang.String id)voidsetOperation(java.lang.String op)-
Methods inherited from class com.jalios.jstore.LogEntry
compareTo, equals, getAttributes, getException, getLineNumber, getName, getSortedAttributeMap, getStamp, setAttributes, setException, setLineNumber, setStamp, toString, toXML
-
-
-
-
Field Detail
-
OP
public static final java.lang.String OP
- See Also:
- Constant Field Values
-
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
-
op
protected java.lang.String op
-
id
protected java.lang.String id
-
-
Constructor Detail
-
StorableLogEntry
public StorableLogEntry(java.lang.String elementName, java.util.Map<java.lang.String,java.lang.String> attributes)Constructor for an entry stored by the application- Parameters:
elementName- the name of the elementattributes- target attributes of the entry- Throws:
IllegalStoreOperation
-
StorableLogEntry
public StorableLogEntry(StorableLogEntry entry)
Constructor for a new entry from an existing one.
-
-
Method Detail
-
openXMLElement
protected java.lang.String openXMLElement()
- Overrides:
openXMLElementin classLogEntry
-
isCreate
public boolean isCreate()
-
isUpdate
public boolean isUpdate()
-
isDelete
public boolean isDelete()
-
getOperation
public java.lang.String getOperation()
-
setOperation
public void setOperation(java.lang.String op)
-
getID
public java.lang.String getID()
-
setID
public void setID(java.lang.String id)
-
-