当前位置: 首页>>代码示例>>Java>>正文


Java Column类代码示例

本文整理汇总了Java中javax.jdo.annotations.Column的典型用法代码示例。如果您正苦于以下问题:Java Column类的具体用法?Java Column怎么用?Java Column使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Column类属于javax.jdo.annotations包,在下文中一共展示了Column类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getNombre

import javax.jdo.annotations.Column; //导入依赖的package包/类
@Property(editing = Editing.DISABLED)
@Column(allowsNull = "false",length = 40)
@MemberOrder(name="Equipo", sequence= "1")
public String getNombre() 
{
	return nombre;
}
 
开发者ID:TesisTarjetasMejorar,项目名称:TarjetasISIS,代码行数:8,代码来源:Equipo.java

示例2: copyParametersFromValueAnnotation

import javax.jdo.annotations.Column; //导入依赖的package包/类
private void copyParametersFromValueAnnotation(FieldMetadata fmd, Value valueAnnotation) {
    ValueMetadata valueMetadata = fmd.newValueMetadata();
    for (Column column : valueAnnotation.columns()) {
        ColumnMetadata colMd = valueMetadata.newColumnMetadata();
        colMd.setName(column.name());
        colMd.setLength(column.length());
        colMd.setAllowsNull(Boolean.parseBoolean(column.allowsNull()));
        colMd.setDefaultValue(column.defaultValue());
        colMd.setInsertValue(column.insertValue());
        colMd.setJDBCType(column.jdbcType());
        colMd.setSQLType(column.sqlType());
    }
}
 
开发者ID:motech,项目名称:motech,代码行数:14,代码来源:EntityMetadataBuilderImpl.java

示例3: createStringSettings

import javax.jdo.annotations.Column; //导入依赖的package包/类
private List<SettingDto> createStringSettings(AccessibleObject ac, boolean isTextArea) {
    List<SettingDto> list = new ArrayList<>();
    // get length from jdo @Column annotation
    Column columnAnnotation = ReflectionsUtil.getAnnotation(ac, Column.class);

    // try getting the annotation from the private field if this is a getter/setter
    if (columnAnnotation == null && ac instanceof Method) {
        String fieldName = MemberUtil.getFieldName(ac);
        Method method = (Method) ac;
        Class<?> entityClass = method.getDeclaringClass();

        java.lang.reflect.Field referencedField = FieldUtils.getDeclaredField(entityClass, fieldName, true);
        if (referencedField != null) {
            columnAnnotation = ReflectionsUtil.getAnnotation(referencedField, Column.class);
        }
    }

    if (columnAnnotation != null) {
        int length = columnAnnotation.length();
        if (length >= 0) {
            list.add(new SettingDto(Constants.Settings.STRING_MAX_LENGTH, length));
        }
    }

    if (isTextArea) {
        list.add(new SettingDto(Constants.Settings.STRING_TEXT_AREA, true));
    }

    return list;
}
 
开发者ID:motech,项目名称:motech,代码行数:31,代码来源:FieldProcessor.java

示例4: getNombre

import javax.jdo.annotations.Column; //导入依赖的package包/类
/**
 * Obtiene el nombre de una nueva Factura
 * @return nombre String
 */
@Title
@Hidden(where = Where.ALL_TABLES)
@MemberOrder(sequence = "1")
@Column(allowsNull = "false")
public String getNombre() {
	return nombre;
}
 
开发者ID:resto-tesis,项目名称:resto-tesis,代码行数:12,代码来源:ItemFactura.java

示例5: getNumero

import javax.jdo.annotations.Column; //导入依赖的package包/类
/**
 * Obtiene el numero de una nueva Factura, el cual se genera en forma
 * automatica
 * 
 * @return numero long
 */
@Title(prepend = "Factura Nº ")
@Persistent(valueStrategy = IdGeneratorStrategy.INCREMENT, sequence = "secuenciaNumeroFactura")
@Named("Número")
@TypicalLength(3)
@Disabled
@MemberOrder(sequence = "1")
@Column(allowsNull = "false")
public long getNumero() {
	return numero;
}
 
开发者ID:resto-tesis,项目名称:resto-tesis,代码行数:17,代码来源:Factura.java

示例6: getTotal

import javax.jdo.annotations.Column; //导入依赖的package包/类
/**
 * Obtiene el total de la Factura que se va a crear.
 * 
 * @return total double
 */
@Named("Total ($)")
@Disabled
@MemberOrder(sequence = "1")
@Column(allowsNull = "false")
public double getTotal() {
	return total;
}
 
开发者ID:resto-tesis,项目名称:resto-tesis,代码行数:13,代码来源:Factura.java

示例7: getDireccion

import javax.jdo.annotations.Column; //导入依赖的package包/类
/**
 * Pemite obtener una direccion de la Persona
 * @return direccion String
 */
@Hidden(where = Where.ALL_TABLES)
@Optional
@MultiLine(numberOfLines = 2)
@Named("Dirección")
@Column(allowsNull = "true")
@MemberOrder(sequence = "7")
public String getDireccion() {
	return direccion;
}
 
开发者ID:resto-tesis,项目名称:resto-tesis,代码行数:14,代码来源:Persona.java

示例8: getUsuario

import javax.jdo.annotations.Column; //导入依赖的package包/类
/**
 * Permite obtener un nombre de usuario
 * @return
 */
@Hidden
@Persistent(dependent = "true")
@Column(allowsNull = "false")
public Usuario getUsuario() {
	return usuario;
}
 
开发者ID:resto-tesis,项目名称:resto-tesis,代码行数:11,代码来源:Persona.java

示例9: getNumero

import javax.jdo.annotations.Column; //导入依赖的package包/类
/**
 * Obtiene el numero de la Mesa que se va a crear.
 * @return numero int
 */
@Named("Número")
@Disabled
@Title(prepend = "Mesa Nro. ")
@Column(allowsNull = "false")
@MemberOrder(sequence = "2")
public int getNumero() {
	return numero;
}
 
开发者ID:resto-tesis,项目名称:resto-tesis,代码行数:13,代码来源:Mesa.java

示例10: getPermiso

import javax.jdo.annotations.Column; //导入依赖的package包/类
/**
 * Obtiene un permiso 
 * @return permiso Strig
 */
@Title
@MemberOrder(sequence = "1")
@Column(allowsNull = "false")
public String getPermiso() {
	return permiso;
}
 
开发者ID:resto-tesis,项目名称:resto-tesis,代码行数:11,代码来源:Permiso.java

示例11: getDescuento

import javax.jdo.annotations.Column; //导入依赖的package包/类
/**
 * Obtiene un descuento para el Menu
 * @return descuento int
 */
@Named("Descuento (%)")
@MemberOrder(sequence = "8")
@Column(allowsNull = "false")
public int getDescuento() {
	return descuento;
}
 
开发者ID:resto-tesis,项目名称:resto-tesis,代码行数:11,代码来源:Menu.java

示例12: getMozo

import javax.jdo.annotations.Column; //导入依赖的package包/类
/**
 * Obtiene un Mozo
 * @return mozo Empleado
 */
@Disabled
@MemberOrder(sequence = "3")
@Column(allowsNull = "false")
public Empleado getMozo() {
	return mozo;
}
 
开发者ID:resto-tesis,项目名称:resto-tesis,代码行数:11,代码来源:Comanda.java

示例13: getEnEspera

import javax.jdo.annotations.Column; //导入依赖的package包/类
/**
 * Obtiene el estado particular EnEspera para la Comanda
 * @return enEspera EnEspera
 */
@Persistent(dependent = "true")
@Hidden
@MemberOrder(sequence = "1")
@Column(allowsNull = "false")
public EnEspera getEnEspera() {
	return enEspera;
}
 
开发者ID:resto-tesis,项目名称:resto-tesis,代码行数:12,代码来源:Comanda.java

示例14: getFechaHora

import javax.jdo.annotations.Column; //导入依赖的package包/类
/**
 * Permite cargar una hora a la Reserva
 * @return fechaHora Date
 */
@Disabled
@Named("Fecha y Hora")
@MemberOrder(sequence = "4")
@Column(allowsNull = "false")
public Date getFechaHora() {
	return fechaHora;
}
 
开发者ID:resto-tesis,项目名称:resto-tesis,代码行数:12,代码来源:Reserva.java

示例15: getNumero

import javax.jdo.annotations.Column; //导入依赖的package包/类
/**
 * Obtiene el numero de la Oferta
 * @return numero int 
 */
@Hidden(where = Where.ALL_TABLES)
@Named("Número")
@TypicalLength(3)
@Persistent(valueStrategy = IdGeneratorStrategy.INCREMENT, sequence = "secuenciaNumeroOferta")
@Disabled
@Column(allowsNull = "false")
@MemberOrder(sequence = "1")
public int getNumero() {
	return numero;
}
 
开发者ID:resto-tesis,项目名称:resto-tesis,代码行数:15,代码来源:Oferta.java


注:本文中的javax.jdo.annotations.Column类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。