net.walend.collection.lyophil.jdbc
Class DependantMutableSetTray

java.lang.Object
  |
  +--net.walend.collection.lyophil.jdbc.DependantMutableSetTray

public class DependantMutableSetTray
extends java.lang.Object

A simple backing for dependant SetOfFreezables s wholey contained by another Freezable. On freeze, this tray updates a subtable that maps the contents of this set from the parent set to the contained freezables. On thaw, it creates that set of Freezables and returns it.

Since:
20010807
Author:
David Walend

Field Summary
private  java.lang.String propKey
           
 
Constructor Summary
DependantMutableSetTray(java.lang.String propertyKey)
           
 
Method Summary
private  void addAllMembersToTable(java.io.Serializable id, SetOfFreezables freezy)
           
private  void addIdentifiersFromTable(java.io.Serializable id, MutableSetOfFreezables set)
           
private  void addMemberToTable(java.io.Serializable id, java.io.Serializable member)
           
protected  java.lang.Long castIdentifier(java.io.Serializable identifier)
           
 boolean checkSetUp()
           
protected  void clearMemberTable(java.io.Serializable id)
           
 void delete(java.io.Serializable id)
           
 void freeze(java.io.Serializable sid, SetOfFreezables freezySet)
           
protected  Set getAllIdentifiersInTray()
           
protected  java.lang.String getDatabaseName()
           
protected  PropertySource getPropertySource()
           
private  Set identifierSetFromTable(java.io.Serializable id)
           
 boolean isAbsent(java.io.Serializable id)
           
 boolean isPresent(java.io.Serializable id)
           
 void setUp()
           
 void tearDown()
           
 MutableSetOfFreezables thaw(java.io.Serializable identifier)
           
 void validate(java.io.Serializable id, InvalidFrozenMap ifm)
           
 void validateAll(InvalidFrozenMap ifm, Caster caster)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propKey

private java.lang.String propKey
Constructor Detail

DependantMutableSetTray

public DependantMutableSetTray(java.lang.String propertyKey)
Parameters:
propertyKey - the key to use to get sql statements for this instance of DependantMutableSetTray.
Method Detail

getPropertySource

protected PropertySource getPropertySource()

getDatabaseName

protected java.lang.String getDatabaseName()

castIdentifier

protected java.lang.Long castIdentifier(java.io.Serializable identifier)

clearMemberTable

protected void clearMemberTable(java.io.Serializable id)

addMemberToTable

private void addMemberToTable(java.io.Serializable id,
                              java.io.Serializable member)

addAllMembersToTable

private void addAllMembersToTable(java.io.Serializable id,
                                  SetOfFreezables freezy)

isPresent

public boolean isPresent(java.io.Serializable id)

isAbsent

public boolean isAbsent(java.io.Serializable id)

delete

public void delete(java.io.Serializable id)

validate

public void validate(java.io.Serializable id,
                     InvalidFrozenMap ifm)

validateAll

public void validateAll(InvalidFrozenMap ifm,
                        Caster caster)

getAllIdentifiersInTray

protected Set getAllIdentifiersInTray()

freeze

public void freeze(java.io.Serializable sid,
                   SetOfFreezables freezySet)

identifierSetFromTable

private Set identifierSetFromTable(java.io.Serializable id)

addIdentifiersFromTable

private void addIdentifiersFromTable(java.io.Serializable id,
                                     MutableSetOfFreezables set)

thaw

public MutableSetOfFreezables thaw(java.io.Serializable identifier)

checkSetUp

public boolean checkSetUp()

setUp

public void setUp()

tearDown

public void tearDown()


Copyright (c) 2000, 2001, David Walend