Package org.fugerit.java.core.db.daogen
Class BasicWrapper<T>
- java.lang.Object
-
- org.fugerit.java.core.db.daogen.BasicWrapper<T>
-
- All Implemented Interfaces:
Serializable
,Wrapper<T>
public class BasicWrapper<T> extends Object implements Wrapper<T>, Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static boolean
UNSOPPORTED_OPERATION
-
Constructor Summary
Constructors Constructor Description BasicWrapper(T wrapped)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
throwUnsupported(String message)
String
toString()
T
unwrap()
Recursively unwrap the wrapped object until it is not instance of Wrapper anymore.T
unwrapModel()
Unwrap the underlying objectvoid
wrapModel(T wrapped)
Wraps the give objects
-
-
-
Field Detail
-
UNSOPPORTED_OPERATION
protected static final boolean UNSOPPORTED_OPERATION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BasicWrapper
public BasicWrapper(T wrapped)
-
-
Method Detail
-
throwUnsupported
public static void throwUnsupported(String message)
-
unwrapModel
public T unwrapModel()
Description copied from interface:Wrapper
Unwrap the underlying object- Specified by:
unwrapModel
in interfaceWrapper<T>
- Returns:
- the wrapped object
-
wrapModel
public void wrapModel(T wrapped)
Description copied from interface:Wrapper
Wraps the give objects
-
-