Rework of Layered path resolutions that make snapshots of stores containing layers

actually capture the repository context at snapshot creation time. 
Gave ListEntry and MapEntry proper equals() and hashCode methods and backed out 
hibernate-cfg.properties changes.  Doh!  
Added cache configuration for AttributeService entities.
Did some warning removal in a few places.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5576 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2007-04-30 16:37:36 +00:00
parent fe970f03fe
commit d0d7e61fcd
46 changed files with 1008 additions and 70 deletions

View File

@@ -72,4 +72,45 @@ public class ListEntryImpl implements ListEntry
{
fAttribute = attr;
}
/* (non-Javadoc)
* @see java.lang.Object#equals(java.lang.Object)
*/
@Override
public boolean equals(Object obj)
{
if (this == obj)
{
return true;
}
if (!(obj instanceof ListEntry))
{
return false;
}
return fKey.equals(((ListEntry)obj).getKey());
}
/* (non-Javadoc)
* @see java.lang.Object#hashCode()
*/
@Override
public int hashCode()
{
return fKey.hashCode();
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString()
{
StringBuilder builder = new StringBuilder();
builder.append("[ListEntry:");
builder.append(fKey.toString());
builder.append(':');
builder.append(fAttribute.toString());
builder.append(']');
return builder.toString();
}
}

View File

@@ -80,4 +80,41 @@ public class ListEntryKey implements Serializable
{
fList = list;
}
/* (non-Javadoc)
* @see java.lang.Object#equals(java.lang.Object)
*/
@Override
public boolean equals(Object obj)
{
if (this == obj)
{
return true;
}
if (!(obj instanceof ListEntryKey))
{
return false;
}
ListEntryKey other = (ListEntryKey)obj;
return fIndex == other.getIndex() &&
fList.equals(other.getList());
}
/* (non-Javadoc)
* @see java.lang.Object#hashCode()
*/
@Override
public int hashCode()
{
return fIndex + fList.hashCode();
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString()
{
return "[ListEntryKey:" + fIndex + ']';
}
}

View File

@@ -78,4 +78,43 @@ public class MapEntryImpl implements MapEntry
{
fKey = key;
}
/* (non-Javadoc)
* @see java.lang.Object#equals(java.lang.Object)
*/
@Override
public boolean equals(Object obj)
{
if (this == obj)
{
return true;
}
if (!(obj instanceof MapEntry))
{
return false;
}
return fKey.equals(((MapEntry)obj).getKey());
}
/* (non-Javadoc)
* @see java.lang.Object#hashCode()
*/
@Override
public int hashCode()
{
return fKey.hashCode();
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString()
{
StringBuilder builder = new StringBuilder();
builder.append("[MapEntry:");
builder.append(fKey.toString());
builder.append(']');
return builder.toString();
}
}

View File

@@ -80,4 +80,41 @@ public class MapEntryKey implements Serializable
{
fMap = map;
}
/* (non-Javadoc)
* @see java.lang.Object#equals(java.lang.Object)
*/
@Override
public boolean equals(Object obj)
{
if (this == obj)
{
return true;
}
if (!(obj instanceof MapEntryKey))
{
return false;
}
MapEntryKey other = (MapEntryKey)obj;
return fKey.equals(other.getKey()) &&
fMap.equals(other.getMap());
}
/* (non-Javadoc)
* @see java.lang.Object#hashCode()
*/
@Override
public int hashCode()
{
return fKey.hashCode() + fMap.hashCode();
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString()
{
return "[MapEntryKey:" + fKey + ']';
}
}