Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.storage.sql
Class Invalidations

java.lang.Object
  extended by org.nuxeo.ecm.core.storage.sql.Invalidations
All Implemented Interfaces:
Serializable

public class Invalidations
extends Object
implements Serializable

A set of invalidations.

Records both modified and deleted fragments, as well as "parents modified" fragments.

See Also:
Serialized Form

Nested Class Summary
static class Invalidations.InvalidationsPair
           
 
Field Summary
 Set<RowId> deleted
          null when empty
static int DELETED
           
 Set<RowId> modified
          null when empty
static int MODIFIED
           
static String PARENT
          Pseudo-table for children invalidation.
static String SERIES_PROXIES
          Pseudo-table for series proxies invalidation.
static String TARGET_PROXIES
          Pseudo-table for target proxies invalidation.
 
Constructor Summary
Invalidations()
           
 
Method Summary
 void add(Invalidations other)
           
 void add(Serializable id, String[] tableNames, int kind)
           
 void addDeleted(RowId rowId)
           
 void addDeleted(Set<RowId> rowIds)
           
 void addModified(RowId rowId)
           
 void addModified(Set<RowId> rowIds)
           
 void clear()
           
 boolean contains(RowId rowId)
           
 Set<RowId> getKindSet(int kind)
          only call this if it's to add at least one element in the set
 boolean isEmpty()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PARENT

public static final String PARENT
Pseudo-table for children invalidation.

See Also:
Constant Field Values

SERIES_PROXIES

public static final String SERIES_PROXIES
Pseudo-table for series proxies invalidation.

See Also:
Constant Field Values

TARGET_PROXIES

public static final String TARGET_PROXIES
Pseudo-table for target proxies invalidation.

See Also:
Constant Field Values

MODIFIED

public static final int MODIFIED
See Also:
Constant Field Values

DELETED

public static final int DELETED
See Also:
Constant Field Values

modified

public Set<RowId> modified
null when empty


deleted

public Set<RowId> deleted
null when empty

Constructor Detail

Invalidations

public Invalidations()
Method Detail

isEmpty

public boolean isEmpty()

clear

public void clear()

contains

public boolean contains(RowId rowId)

getKindSet

public Set<RowId> getKindSet(int kind)
only call this if it's to add at least one element in the set


add

public void add(Invalidations other)

addModified

public void addModified(RowId rowId)

addModified

public void addModified(Set<RowId> rowIds)

addDeleted

public void addDeleted(RowId rowId)

addDeleted

public void addDeleted(Set<RowId> rowIds)

add

public void add(Serializable id,
                String[] tableNames,
                int kind)

toString

public String toString()
Overrides:
toString in class Object

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.