org.slim3.commons.beanutil
Class CreateAndCopy<T>

java.lang.Object
  extended by org.slim3.commons.beanutil.AbstractCopy<CreateAndCopy<T>>
      extended by 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

Field Summary
protected  Class<T> destClass
          The destination class.
protected  Object src
          The source.
 
Fields inherited from class org.slim3.commons.beanutil.AbstractCopy
converterMap, converters, copyEmptyString, copyNull, DEFAULT_DATE_CONVERTER, DEFAULT_TIME_CONVERTER, DEFAULT_TIMESTAMP_CONVERTER, EMPTY_STRINGS, excludedPropertyNames, includedPropertyNames
 
Constructor Summary
CreateAndCopy(Class<T> destClass, Object src)
          Constructor.
 
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
 

Field Detail

destClass

protected Class<T> destClass
The destination class.


src

protected Object src
The source.

Constructor Detail

CreateAndCopy

public CreateAndCopy(Class<T> destClass,
                     Object src)
              throws NullPointerException
Constructor.

Parameters:
destClass - the destination class
src - the source
Throws:
NullPointerException - if the descClass parameter is null or if the src parameter is null
Method Detail

execute

public T execute()
Executes create and copy processes.

Returns:
the executed result


Copyright © 2008-2009 The Slim3 project. All Rights Reserved.