⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jbfielddescriptor.java

📁 OPIAM stands for Open Identity and Access Management. This Suite will provide modules for user & rig
💻 JAVA
字号:
/*
 * OPIAM Suite
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */

package opiam.admin.faare.config.javabeans;

import opiam.admin.faare.MessageUtil;
import opiam.admin.faare.persistence.javabeans.JBTop;

import java.io.Serializable;


/**
 *  Bean representing a mapped attribute defined in faare_mapping.xml.
 */
public class JBFieldDescriptor implements Serializable
{
    /** Type of field : string. */
    private static final String SHORT_STRING_TYPE = "string";

    /** Type of field : bytes. */
    private static final String SHORT_BYTES_TYPE = "bytes";

    /** Type of field : bytes, object format. */
    private static final String FULL_BYTES_TYPE = "java.lang.Byte";

    /** Type of field : string, object format. */
    private static final String FULL_STRING_TYPE = "java.lang.String";

    /** Type of field : int. */
    private static final String SHORT_INTEGER_TYPE = "integer";

    /** Type of field : int, object format. */
    private static final String FULL_INTEGER_TYPE = "java.lang.Integer";

    /** Source attribute descriptor. */
    private JBSrcAttrDesc srcDesc;

    /** Field name. */
    private String name;

    /** Field Java type. */
    private String type;

    /** Collection class, for multivalued attribute. */
    private String collection;

    /** Lazy collection class, for lazy loaded multivalued attribute. */
    private String lazy;

    /** Flag set to true of field inherits from JBTop. */
    private boolean isJbTop = false;

    /**
     * Returns the field Java type.
     * @return type
     */
    public String getType()
    {
        return type;
    }

    /**
     * Sets the field Java type.
     * @param atype The type to set
     */
    public void setType(String atype)
    {
        if (atype.compareToIgnoreCase(SHORT_STRING_TYPE) == 0)
        {
            this.type = FULL_STRING_TYPE;
        }
        else if (atype.compareToIgnoreCase(SHORT_INTEGER_TYPE) == 0)
        {
            this.type = FULL_INTEGER_TYPE;
        }
        else if (atype.compareToIgnoreCase(SHORT_BYTES_TYPE) == 0)
        {
            this.type = FULL_BYTES_TYPE;
        }
        else
        {
            this.type = atype;
        }

        // obligation d'avoir la classe d'objet dans la classePath
        // 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -