org.slim3.commons.beanutil
Class CreateAndCopy<T>
java.lang.Object
org.slim3.commons.beanutil.AbstractCopy<CreateAndCopy<T>>
org.slim3.commons.beanutil.CreateAndCopy<T>
- Type Parameters:
T
- The destination type.
public class CreateAndCopy<T>
- extends AbstractCopy<CreateAndCopy<T>>
A class to create an object and copy an object to the created object.
- Since:
- 3.0
- Author:
- higa
Method Summary |
T |
execute()
Executes create and copy processes. |
Methods inherited from class org.slim3.commons.beanutil.AbstractCopy |
converter, convertValue, copyBeanToBean, copyBeanToMap, copyEmptyString, copyMapToBean, copyMapToMap, copyNull, dateConverter, exclude, findConverter, findDefaultConverter, include, isTargetProperty, isTargetValue, numberConverter, sqlDateConverter, timeConverter, timestampConverter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
destClass
protected Class<T> destClass
- The destination class.
src
protected Object src
- The source.
CreateAndCopy
public CreateAndCopy(Class<T> destClass,
Object src)
throws NullPointerException
- Constructor.
- Parameters:
destClass
- the destination classsrc
- the source
- Throws:
NullPointerException
- if the descClass parameter is null or if the src parameter is
null
execute
public T execute()
- Executes create and copy processes.
- Returns:
- the executed result
Copyright © 2008-2009 The Slim3 project. All Rights Reserved.