2.17.2: 2011-06-17

net.sf.basedb.core
Class OwnableUtil

java.lang.Object
  extended by net.sf.basedb.core.OwnableUtil

public class OwnableUtil
extends Object

Utility methods that will make it easier to implement the Ownable interface, including data validation.

Version:
2.0
Author:
Nicklas
See Also:
Ownable
Last modified
$Date: 2009-04-06 14:52:39 +0200 (Mon, 06 Apr 2009) $

Constructor Summary
OwnableUtil()
           
 
Method Summary
static void setOwner(OwnableData ownableData, User owner)
          Set the owner of a OwnableData object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwnableUtil

public OwnableUtil()
Method Detail

setOwner

public static void setOwner(OwnableData ownableData,
                            User owner)
                     throws InvalidDataException
Set the owner of a OwnableData object.

Parameters:
ownableData - Data object to set owner on.
owner - User to be set as an owner.
Throws:
InvalidDataException - If the owner is null

2.17.2: 2011-06-17