com.jalios.jstore
Class StorableLogEntry

java.lang.Object
  extended by com.jalios.jstore.LogEntry
      extended by com.jalios.jstore.StorableLogEntry
All Implemented Interfaces:
StoreConstants, Comparable<LogEntry>

public class StorableLogEntry
extends LogEntry
implements StoreConstants

This abstract class represents a Store operation on a Storable object.

Version:
$Revision: 21412 $
Author:
Olivier Dedieu

Field Summary
protected  String id
           
static String ID
           
protected  String op
           
static String OP
           
static String REVISION
           
 
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, MAP_ASSIGN, MAP_CHARS_TO_ESCAPE, MAP_CLASS_SEPARATOR, MAP_FLAG, NAMESPACE, SH_SUFFIX, STORING_STATE, UPDATE_OP
 
Constructor Summary
StorableLogEntry(StorableLogEntry entry)
          Constructor for a new entry from an existing one.
StorableLogEntry(String elementName, Map<String,String> attributes)
          Constructor for an entry stored by the application
 
Method Summary
 String getID()
           
 String getOperation()
           
 boolean isCreate()
           
 boolean isDelete()
           
 boolean isUpdate()
           
protected  String openXMLElement()
           
 void setID(String id)
           
 void setOperation(String op)
           
 
Methods inherited from class com.jalios.jstore.LogEntry
compareTo, equals, getAttributes, getException, getLineNumber, getName, getSortedAttributeMap, getStamp, setAttributes, setException, setLineNumber, setStamp, toString, toXML
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values

OP

public static final String OP
See Also:
Constant Field Values

ID

public static final String ID
See Also:
Constant Field Values

op

protected String op

id

protected String id
Constructor Detail

StorableLogEntry

public StorableLogEntry(String elementName,
                        Map<String,String> attributes)
Constructor for an entry stored by the application

Parameters:
elementName - the name of the element
attributes - 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 String openXMLElement()
Overrides:
openXMLElement in class LogEntry

isCreate

public boolean isCreate()

isUpdate

public boolean isUpdate()

isDelete

public boolean isDelete()

getOperation

public String getOperation()

setOperation

public void setOperation(String op)

getID

public String getID()

setID

public void setID(String id)


Copyright © 2001-2007 Jalios SA. All Rights Reserved.