Package com.impossibl.postgres.types

Examples of com.impossibl.postgres.types.DomainType


    }

    @Override
    public void encode(Type type, ByteBuf buffer, Object value, Context context) throws IOException {

      DomainType domainType = (DomainType) type;
      Type baseType = domainType.getBase();

      baseType.getBinaryCodec().encoder.encode(baseType, buffer, value, context);
    }
View Full Code Here


    }

    @Override
    public int length(Type type, Object val, Context context) throws IOException {

      DomainType domainType = (DomainType) type;
      Type baseType = domainType.getBase();

      return baseType.getBinaryCodec().encoder.length(baseType, val, context);
    }
View Full Code Here

    }

    @Override
    public void encode(Type type, StringBuilder buffer, Object value, Context context) throws IOException {

      DomainType domainType = (DomainType) type;
      Type baseType = domainType.getBase();

      baseType.getTextCodec().encoder.encode(baseType, buffer, value, context);
    }
View Full Code Here

TOP

Related Classes of com.impossibl.postgres.types.DomainType

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.