All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xblackcat.sjpu.storage.ann.MapRowTo Maven / Gradle / Ivy

Go to download

Service for generating DB access logic in simple way via interfaces and annotations

There is a newer version: 2.0
Show newest version
package org.xblackcat.sjpu.storage.ann;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * This annotation define an object type to be mapped from result row when it is not possible detect target object type automatically.
 * For example, when a method returns a container of objects (List or Set)
 * The annotation could be specified for 
    *
  • method of an interface which extends {@linkplain org.xblackcat.sjpu.storage.IAH IAH} interface
  • *
  • class which extends {@linkplain org.xblackcat.sjpu.storage.consumer.IRowSetConsumer IRowSetConsumer} interface to specify default * converter of result row to object to be consumed by the IRowSetConsumer implementation
  • *
*

* * @see org.xblackcat.sjpu.storage.ann.ToObjectConverter * 07.03.13 12:12 * * @author xBlackCat */ @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.METHOD, ElementType.TYPE}) public @interface MapRowTo { Class value(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy