DatabaseObjectFactory.java 709 Bytes
Newer Older
Matt Tucker's avatar
Matt Tucker committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
/**
 * $RCSfile$
 * $Revision$
 * $Date$
 *
 * Copyright (C) 2004 Jive Software. All rights reserved.
 *
 * This software is published under the terms of the GNU Public License (GPL),
 * a copy of which is included in this distribution.
 */

package org.jivesoftware.database;

/**
 * An interface for loading Jive database objects.
 *
 * @author Jive Software
 */
public interface DatabaseObjectFactory {

    /**
     * Returns the object associated with <code>id</code> or null if the object could not be loaded.
     *
     * @param id the id of the object to load.
     * @return the object specified by <code>id</code> or null if it could not be loaded.
     */
    public Object loadObject(long id);
}