Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.database
Class DatabaseObjectLoader

java.lang.Object
  extended by com.jivesoftware.forum.database.DatabaseObjectLoader

public class DatabaseObjectLoader
extends java.lang.Object

This class knows how to load a wide variety of jive objects outlined in the following list:


Method Summary
static java.lang.Object getJiveObject(int objectType, long objectID)
          Retrieve the object corresponding to the objectType/objectID parameters, or null if the object cannot be loaded or the objectType isn't a valid type.
static boolean isKnownType(int type)
          Returns true if the provided type a type that this class knows how to load, false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isKnownType

public static boolean isKnownType(int type)
Returns true if the provided type a type that this class knows how to load, false otherwise.

Parameters:
type - the object type to check
Returns:
true if the provided type a type that this class knows how to load, false otherwise.

getJiveObject

public static java.lang.Object getJiveObject(int objectType,
                                             long objectID)
Retrieve the object corresponding to the objectType/objectID parameters, or null if the object cannot be loaded or the objectType isn't a valid type.

Parameters:
objectType - the type of object
objectID - the id of the object
Returns:
the object corresponding to the objectType/objectID parameters

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.