net.sf.basedb.core
Class OwnableUtil
java.lang.Object
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) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OwnableUtil
public OwnableUtil()
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