Merged V2.2 to HEAD

8078: Merged V2.1 to V2.2
      8025: Fixes WCM-1039, problems with case insensitive name handling.
   8079: Merged V2.1 to V2.2
      8035: -- DONE SEPARATELY --
      8040: Fix AR-1985: SQL Server dialect is derived from Sybase dialect there need additional no-op script
      8046: Better Javadocs for getChildByName()
      8056: Fixed WCM-790: Date conversion for metadata extractors
      8057: Fixed WCM-790: Properties that don't convert can be discarded (default is to fail)
      8059: -- DONE SEPARATELY --
      8061: Fixes WCM-790: Fallout from CHK-2168 and CHK-2169
   8081: Fix for WCM-1018
   8082: Merged V2.1 to V2.2
      8016: Merged V2.1-A to V2.1
         8000: Additional indexes for AVM
         8013: Patch to introduce reverse indexes required for AVM


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8474 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2008-03-10 12:17:10 +00:00
parent f22c4c4e57
commit 72a90a14f1
22 changed files with 428 additions and 67 deletions

View File

@@ -1,5 +1,5 @@
/**
*
*
*/
package org.alfresco.repo.avm.util;
@@ -9,7 +9,7 @@ import java.io.Serializable;
* Holds a simple path.
* @author britt
*/
public class SimplePath implements Serializable
public class SimplePath implements Serializable
{
private static final long serialVersionUID = 2696828491008988470L;
@@ -17,7 +17,7 @@ public class SimplePath implements Serializable
* The names of the path's components.
*/
private String [] fNames;
/**
* Construct a new one from a string.
* @param path The String representation of the path.
@@ -39,7 +39,7 @@ public class SimplePath implements Serializable
}
fNames = path.split("/+");
}
/**
* Get the component name at index.
* @param index The index of the component to get.
@@ -49,7 +49,7 @@ public class SimplePath implements Serializable
{
return fNames[index];
}
/**
* Get the number of components in this path.
* @return The number of components.
@@ -63,7 +63,7 @@ public class SimplePath implements Serializable
* @see java.lang.Object#equals(java.lang.Object)
*/
@Override
public boolean equals(Object obj)
public boolean equals(Object obj)
{
if (this == obj)
{
@@ -80,7 +80,7 @@ public class SimplePath implements Serializable
}
for (int i = 0; i < fNames.length; i++)
{
if (!fNames[i].equals(o.fNames[i]))
if (!fNames[i].equalsIgnoreCase(o.fNames[i]))
{
return false;
}
@@ -92,12 +92,12 @@ public class SimplePath implements Serializable
* @see java.lang.Object#hashCode()
*/
@Override
public int hashCode()
public int hashCode()
{
int hash = 0;
for (String name : fNames)
{
hash += name.hashCode();
hash += name.toLowerCase().hashCode();
}
return hash;
}
@@ -106,7 +106,7 @@ public class SimplePath implements Serializable
* @see java.lang.Object#toString()
*/
@Override
public String toString()
public String toString()
{
StringBuilder builder = new StringBuilder();
for (String name : fNames)