package org.alfresco.repo.domain.encoding;
import org.alfresco.util.Pair;
/**
* DAO services for alf_encoding and related tables
*
* @author Derek Hulley
* @since 3.2
*/
public interface EncodingDAO
{
/**
* Get the encoding pair.
*
* @param encoding the encoding string
* @return the ID-encoding pair or null if it doesn't exsit
*/
Pair getEncoding(String encoding);
Pair getEncoding(Long id);
Pair getOrCreateEncoding(String encoding);
}