Package net.sf.basedb.core
Class OwnableUtil
java.lang.Object
net.sf.basedb.core.OwnableUtil
Utility methods that will make it easier to implement
the
Ownable
interface, including data validation.- Version:
- 2.0
- Author:
- Nicklas
- See Also:
- Last modified
- $Date: 2009-04-06 14:52:39 +0200 (må, 06 apr 2009) $
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
setOwner
(OwnableData ownableData, User owner) Set the owner of aOwnableData
object.
-
Constructor Details
-
OwnableUtil
public OwnableUtil()
-
-
Method Details
-
setOwner
Set the owner of aOwnableData
object.- Parameters:
ownableData
- Data object to set owner on.owner
- User to be set as an owner.- Throws:
InvalidDataException
- If the owner is null
-