java.lang.Object
org.seasar.doma.wrapper.AbstractWrapper<BASIC>
- Type Parameters:
BASIC- the basic type
- All Implemented Interfaces:
Wrapper<BASIC>
- Direct Known Subclasses:
ArrayWrapper,BigDecimalWrapper,BigIntegerWrapper,BlobWrapper,BooleanWrapper,BytesWrapper,ByteWrapper,ClobWrapper,DateWrapper,DoubleWrapper,EnumWrapper,FloatWrapper,IntegerWrapper,LocalDateTimeWrapper,LocalDateWrapper,LocalTimeWrapper,LongWrapper,NClobWrapper,ObjectWrapper,ShortWrapper,SQLXMLWrapper,StringWrapper,TimestampWrapper,TimeWrapper,UtilDateWrapper
A skeletal implementation for the
Wrapper interface .-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractWrapper(Class<BASIC> basicClass) protectedAbstractWrapper(Class<BASIC> basicClass, BASIC value) -
Method Summary
Modifier and TypeMethodDescriptionprotected BASICdoGet()protected BASICprotected booleandoHasEqualValue(Object otherValue) protected voidfinal BASICget()Returns the value.Returns the class of the basic type.final BASICgetCopy()Return a copy of the value.Returns the default value.final booleanhasEqualValue(Object otherValue) Whether this object has an equal value to the other one.final voidSets the value.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.seasar.doma.wrapper.Wrapper
accept, isPrimitiveWrapper
-
Field Details
-
basicClass
-
value
-
-
Constructor Details
-
AbstractWrapper
-
AbstractWrapper
-
-
Method Details
-
set
Description copied from interface:WrapperSets the value. -
doSet
-
get
Description copied from interface:WrapperReturns the value.The value may be
null. -
doGet
-
getCopy
Description copied from interface:WrapperReturn a copy of the value. -
doGetCopy
-
getDefault
Description copied from interface:WrapperReturns the default value.- Specified by:
getDefaultin interfaceWrapper<BASIC>- Returns:
- the boxed default value of a primitive type if this is a wrapper for a boxed type, else
null
-
hasEqualValue
Description copied from interface:WrapperWhether this object has an equal value to the other one.- Specified by:
hasEqualValuein interfaceWrapper<BASIC>- Parameters:
otherValue- the other object- Returns:
trueif this object has an equal value to the other one.
-
doHasEqualValue
-
getBasicClass
Description copied from interface:WrapperReturns the class of the basic type.- Specified by:
getBasicClassin interfaceWrapper<BASIC>- Returns:
- the class of the basic type
-
toString
-