Ejemplo n.º 1
0
 @Override
 protected TableSpecification getDefaultTableSpecification(AppContext c, String table) {
   TableSpecification spec = new TableSpecification();
   spec.setField(DummyReference.STRING_FIELD, new StringFieldType(true, null, 32));
   Dummy1.Factory fac = new Dummy1.Factory(c);
   spec.setField(DummyReference.REF_FIELD, fac.getReferenceFieldType());
   spec.setField(DummyReference.NUMBER_FIELD, new IntegerFieldType(false, 99));
   return spec;
 }
 @Override
 protected TableSpecification getDefaultTableSpecification(AppContext c, String table) {
   TableSpecification spec = new TableSpecification("DurationID");
   spec.setField(DURATION, new NumberFieldType<Duration>(Duration.class, true, null));
   return spec;
 }
Ejemplo n.º 3
0
 public static TableSpecification getTableSpecification() {
   TableSpecification spec = new TableSpecification("MessageID");
   spec.setField(MESSAGE, new BlobType());
   // spec.setField(MESSAGE, new StringFieldType(true, null, 4096));
   return spec;
 }