public void init( SchemaManager schemaManager, AttributeType attributeType ) throws Exception
{
this.attributeType = attributeType;
MatchingRule mr = attributeType.getEquality();
if ( mr == null )
{
mr = attributeType.getOrdering();
}
if ( mr == null )
{
mr = attributeType.getSubstring();
}
normalizer = mr.getNormalizer();
if ( normalizer == null )
{
throw new Exception( I18n.err( I18n.ERR_212, attributeType ) );
}
LdapComparator<K> comp = ( LdapComparator<K> ) mr.getLdapComparator();
/*
* The forward key/value map stores attribute values to master table
* primary keys. A value for an attribute can occur several times in
* different entries so the forward map can have more than one value.