Package com.tll.common.model

Examples of com.tll.common.model.EnumPropertyValue


   * @return new instance
   */
  private static Model stubAccount(Model parentAccount, TestEntityType accountType, int num) {
    final Model m = stubModel(accountType, null, true, accountType.descriptor() + " " + num);
    m
    .set(new EnumPropertyValue("status", new PropertyMetadata(PropertyType.ENUM, false, true, 16),
        AccountStatus.OPEN));
    m.set(new BooleanPropertyValue("persistPymntInfo", new PropertyMetadata(PropertyType.BOOL, false, true, -1),
        Boolean.TRUE));
    m.set(new StringPropertyValue("billingModel", new PropertyMetadata(PropertyType.STRING, false, true, 32),
    "a billing model"));
View Full Code Here


   * @param num
   * @return new instance
   */
  public static Model stubAccountAddress(Model account, Model address, int num) {
    final Model m = stubModel(TestEntityType.ACCOUNT_ADDRESS, null, true, ("Adrs " + num));
    m.set(new EnumPropertyValue("type", new PropertyMetadata(PropertyType.ENUM, false, true, 8),
        AddressType.values()[num - 1]));
    m.set(new RelatedOneProperty(TestEntityType.ACCOUNT, account, "account", true));
    m.set(new RelatedOneProperty(TestEntityType.ADDRESS, address, "address", false));
    return m;
  }
View Full Code Here

        16), "0005543"));
    m.set(new StringPropertyValue("paymentData_bankName", new PropertyMetadata(PropertyType.STRING, false, false, 16),
    "bank name"));
    m.set(new StringPropertyValue("paymentData_bankRoutingNo", new PropertyMetadata(PropertyType.STRING, false, false,
        16), "77777"));
    m.set(new EnumPropertyValue("paymentData_ccType", new PropertyMetadata(PropertyType.ENUM, false, false, 16),
        CreditCardType.VISA));
    m.set(new StringPropertyValue("paymentData_ccNum", new PropertyMetadata(PropertyType.STRING, false, false, 16),
    "4111111111111111"));
    m.set(new StringPropertyValue("paymentData_ccCvv2", new PropertyMetadata(PropertyType.STRING, false, false, 16),
    "834"));
View Full Code Here

  @Override
  protected void doInitialization(final AccountInterfaceViewInitializer initializer) {
    final SmbizEntityType at = SmbizAdmin.getAdminContextCmd().getAdminContext().getAccountType();
    final NamedQuerySearch nqs = new NamedQuerySearch(SmbizEntityType.INTERFACE, "acntIntf.smry", true);
    nqs.addParam(new EnumPropertyValue("accountType", at));
    intfStack =
      new InterfaceStack(nqs,
          auxDataRequest, new InterfaceStack.IFieldPanelResolver() {

        @Override
View Full Code Here

  @Override
  protected void doInitialization(final AccountInterfaceViewInitializer initializer) {
    final SmbizEntityType at = SmbizAdmin.getAdminContextCmd().getAdminContext().getAccountType();
    final NamedQuerySearch nqs = new NamedQuerySearch(SmbizEntityType.INTERFACE, "acntIntf.smry", true);
    nqs.addParam(new EnumPropertyValue("accountType", at));
    intfStack =
      new InterfaceStack(nqs,
          auxDataRequest, new InterfaceStack.IFieldPanelResolver() {

        @Override
View Full Code Here

      final Date d = obj == null ? null : new Date(((Date) obj).getTime());
      prop = new DatePropertyValue(pname, pdata, d);
    }

    else if(ptype.isEnum()) {
      prop = new EnumPropertyValue(pname, pdata, obj == null ? null : (Enum<?>) obj);
    }

    else if(long.class == ptype || Long.class == ptype) {
      prop = new LongPropertyValue(pname, pdata, (Long) obj);
    }
View Full Code Here

TOP

Related Classes of com.tll.common.model.EnumPropertyValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.