Package com.avaje.ebeaninternal.server.type.reflect

Examples of com.avaje.ebeaninternal.server.type.reflect.CheckImmutable


  @Test
  public void test() {

    SimpleKnownImmutable known = new SimpleKnownImmutable();

    CheckImmutable check = new CheckImmutable(known);

    CheckImmutableResponse response = check.checkImmutable(Money.class);

    Assert.assertTrue(response.isImmutable());
    Assert.assertTrue(!response.isCompoundType());
  }
View Full Code Here


  public DefaultTypeManager(ServerConfig config, BootupClasses bootupClasses) {

    int clobType = config == null ? Types.CLOB : config.getDatabasePlatform().getClobDbType();
    int blobType = config == null ? Types.BLOB : config.getDatabasePlatform().getBlobDbType();

    this.checkImmutable = new CheckImmutable(this);
    this.reflectScalarBuilder = new ReflectionBasedTypeBuilder(this);

    this.compoundTypeMap = new ConcurrentHashMap<Class<?>, CtCompoundType<?>>();
    this.typeMap = new ConcurrentHashMap<Class<?>, ScalarType<?>>();
    this.nativeMap = new ConcurrentHashMap<Integer, ScalarType<?>>();
View Full Code Here

TOP

Related Classes of com.avaje.ebeaninternal.server.type.reflect.CheckImmutable

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.