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

sirius.biz.i5.Transform Maven / Gradle / Ivy

There is a newer version: 9.6
Show newest version
/*
 * Made with all the love in the world
 * by scireum in Remshalden, Germany
 *
 * Copyright by scireum GmbH
 * http://www.scireum.de - [email protected]
 */

package sirius.biz.i5;

import com.ibm.as400.access.AS400Bin4;
import com.ibm.as400.access.AS400Text;
import com.ibm.as400.access.AS400ZonedDecimal;

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

/**
 * Marks a field as auto transformed by the {@link Transformer}.
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Transform {

    /**
     * Byte position in the record. This has to be filled correctly, as the order of fields in a Java class is
     * undetermined.
     *
     * @return the byte position on the record
     */
    int position();

    /**
     * AS400 target type.
     *
     * @return the target type as defined by jt400
     * @see AS400Text
     * @see AS400ZonedDecimal
     * @see AS400Bin4
     */
    Class targetType();

    /**
     * Length in the byte array.
     *
     * @return the length in bytes
     */
    int length() default 0;

    /**
     * Number of decimal places for AS400ZonedDecimal
     *
     * @return the number of decimal places
     */
    int decimal() default 0;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy