在EO中获取某字段基于表的列名

  //生成EO的时候自动生成的字段  
  public static final int BRIEFINTRO = 88; String[][] str = null;
str = new String[][] { { "AliasName", getEntityDef().getAliasName() },
{ "ContainerName", getEntityDef().getContainerName() },
{ "DefName", getEntityDef().getDefName() },
{ "FullName", getEntityDef().getFullName() },
{ "Name", getEntityDef().getName() },
{ "Source", getEntityDef().getSource() },
{ "SourceType", getEntityDef().getSourceType() },
{ "getColumnName", getEntityDef().getAttributeDef(BRIEFINTRO).getColumnName() },
{ "getColumnNameForQuery", getEntityDef().getAttributeDef(BRIEFINTRO).getColumnNameForQuery() },
{ "getAttributeDef getName",getEntityDef().getAttributeDef(BRIEFINTRO).getName() },
{ "BriefIntro", getBriefIntro() },
{ "value", value },
                    { "getJavaType().getName()",getEntityDef().getAttributeDef(BRIEFINTRO).getJavaType().getName()} };
 LogUtil.of(str,this).print(this);

输出结果:

& AliasName  is  CuxPosSupplierDetailInfoEO
& ContainerName is server
& DefName is CuxPosSupplierDetailInfoEO
& FullName is cux.oracle.apps.pos.schema.server.CuxPosSupplierDetailInfoEO
& Name is CuxPosSupplierDetailInfoEO
& Source is CUX.CUX_POS_SUPPLIER_DETAIL_INFO
& SourceType is table
& getColumnName is BRIEF_INTRO
& getColumnNameForQuery is CuxPosSupplierDetailInfoEO.BRIEF_INTRO
& getAttributeDef getName is BriefIntro
& BriefIntro is 11AAAAAASS
& value is 11AAAAAASSss
& getJavaType().getName() is oracle.jbo.domain.Number

XvkPosAddrTaxRequestVOImpl vo = this.getXvkPosAddrTaxRequestVO1();
AttributeDef[] sourceAttrDefs = vo.getAttributeDefs();

sourceAttrDefs[i].getColumnName();

上一篇:豪情-CSS解构系列之-新浪页面解构-01


下一篇:DevExpress v18.2新版亮点——Reporting篇(二)