Package com.alvazan.orm.api.base.anno

Examples of com.alvazan.orm.api.base.anno.NoSqlColumn


          " a call to just getting the id", e);
    }
  }

  public MetaField processColumn(DboTableMeta t, Field field) {
    NoSqlColumn col = field.getAnnotation(NoSqlColumn.class);
    MetaCommonField metaField = metaProvider.get();
    String colName = field.getName();
    if(col != null) {
      if(!"".equals(col.columnName()))
        colName = col.columnName();
    }

    boolean isIndexed = false;
    if(field.isAnnotationPresent(NoSqlIndexed.class))
      isIndexed = true;
   
    boolean isPartitioned = false;
    if(field.isAnnotationPresent(NoSqlPartitionByThisField.class))
      isPartitioned = true;
     
    Class<?> type = field.getType();
    Converter converter = null;
    if(col != null && !NoConversion.class.isAssignableFrom(col.customConverter()))
      converter = ReflectionUtil.create(col.customConverter());

    converter = lookupConverter(field, type, converter);
    if(converter == null)
      throw throwInvalidConverter(field);
    metaField.setup(t, field, colName, converter, isIndexed, isPartitioned);
View Full Code Here


          " a call to just getting the id", e);
    }
  }

  public MetaField processColumn(DboTableMeta t, Field field) {
    NoSqlColumn col = field.getAnnotation(NoSqlColumn.class);
    MetaCommonField metaField = metaProvider.get();
    String colName = field.getName();
    if(col != null) {
      if(!"".equals(col.columnName()))
        colName = col.columnName();
    }

    boolean isIndexed = false;
    if(field.isAnnotationPresent(NoSqlIndexed.class))
      isIndexed = true;
   
    boolean isPartitioned = false;
    if(field.isAnnotationPresent(NoSqlPartitionByThisField.class))
      isPartitioned = true;
     
    Class<?> type = field.getType();
    Converter converter = null;
    if(col != null && !NoConversion.class.isAssignableFrom(col.customConverter()))
      converter = ReflectionUtil.create(col.customConverter());

    try {
      converter = lookupConverter(type, converter);
      metaField.setup(t, field, colName, converter, isIndexed, isPartitioned);
      return metaField;     
View Full Code Here

          " a call to just getting the id", e);
    }
  }

  public MetaField processColumn(DboTableMeta t, Field field) {
    NoSqlColumn col = field.getAnnotation(NoSqlColumn.class);
    MetaCommonField metaField = metaProvider.get();
    String colName = field.getName();
    if(col != null) {
      if(!"".equals(col.columnName()))
        colName = col.columnName();
    }

    boolean isIndexed = false;
    if(field.isAnnotationPresent(NoSqlIndexed.class))
      isIndexed = true;
   
    boolean isPartitioned = false;
    if(field.isAnnotationPresent(NoSqlPartitionByThisField.class))
      isPartitioned = true;
     
    Class<?> type = field.getType();
    Converter converter = null;
    if(col != null && !NoConversion.class.isAssignableFrom(col.customConverter()))
      converter = ReflectionUtil.create(col.customConverter());

    converter = lookupConverter(field, type, converter);
    if(converter == null)
      throw throwInvalidConverter(field);
    metaField.setup(t, field, colName, converter, isIndexed, isPartitioned);
View Full Code Here

          " a call to just getting the id", e);
    }
  }

  public MetaField processColumn(DboTableMeta t, Field field) {
    NoSqlColumn col = field.getAnnotation(NoSqlColumn.class);
    MetaCommonField metaField = metaProvider.get();
    String colName = field.getName();
    if(col != null) {
      if(!"".equals(col.columnName()))
        colName = col.columnName();
    }

    boolean isIndexed = false;
    if(field.isAnnotationPresent(NoSqlIndexed.class))
      isIndexed = true;
   
    boolean isPartitioned = false;
    if(field.isAnnotationPresent(NoSqlPartitionByThisField.class))
      isPartitioned = true;
     
    Class<?> type = field.getType();
    Converter converter = null;
    if(col != null && !NoConversion.class.isAssignableFrom(col.customConverter()))
      converter = ReflectionUtil.create(col.customConverter());

    converter = lookupConverter(field, type, converter);
    if(converter == null)
      throw throwInvalidConverter(field);
    metaField.setup(t, field, colName, converter, isIndexed, isPartitioned);
View Full Code Here

          " a call to just getting the id", e);
    }
  }

  public MetaField processColumn(DboTableMeta t, Field field) {
    NoSqlColumn col = field.getAnnotation(NoSqlColumn.class);
    MetaCommonField metaField = metaProvider.get();
    String colName = field.getName();
    if(col != null) {
      if(!"".equals(col.columnName()))
        colName = col.columnName();
    }

    boolean isIndexed = false;
    if(field.isAnnotationPresent(NoSqlIndexed.class))
      isIndexed = true;
   
    boolean isPartitioned = false;
    if(field.isAnnotationPresent(NoSqlPartitionByThisField.class))
      isPartitioned = true;
     
    Class<?> type = field.getType();
    Converter converter = null;
    if(col != null && !NoConversion.class.isAssignableFrom(col.customConverter()))
      converter = ReflectionUtil.create(col.customConverter());

    converter = lookupConverter(field, type, converter);
    if(converter == null)
      throw throwInvalidConverter(field);
    metaField.setup(t, field, colName, converter, isIndexed, isPartitioned);
View Full Code Here

          " a call to just getting the id", e);
    }
  }

  public MetaField processColumn(DboTableMeta t, Field field) {
    NoSqlColumn col = field.getAnnotation(NoSqlColumn.class);
    MetaCommonField metaField = metaProvider.get();
    String colName = field.getName();
    if(col != null) {
      if(!"".equals(col.columnName()))
        colName = col.columnName();
    }

    boolean isIndexed = false;
    boolean byKeyOnly = false;
    if(field.isAnnotationPresent(NoSqlIndexed.class)) {
      isIndexed = true;
      NoSqlIndexed indexAnno = field.getAnnotation(NoSqlIndexed.class);
      byKeyOnly = indexAnno.byKeyOnly();
    }     
   
    boolean isPartitioned = false;
    if(field.isAnnotationPresent(NoSqlPartitionByThisField.class))
      isPartitioned = true;
     
    Class<?> type = field.getType();
    Converter converter = null;
    if(col != null && !NoConversion.class.isAssignableFrom(col.customConverter()))
      converter = ReflectionUtil.create(col.customConverter());

    converter = lookupConverter(field, type, converter);
    if(converter == null)
      throw throwInvalidConverter(field);
    metaField.setup(t, field, colName, converter, isIndexed, isPartitioned, byKeyOnly);
View Full Code Here

          " a call to just getting the id", e);
    }
  }

  public MetaField processColumn(DboTableMeta t, Field field) {
    NoSqlColumn col = field.getAnnotation(NoSqlColumn.class);
    MetaCommonField metaField = metaProvider.get();
    String colName = field.getName();
    if(col != null) {
      if(!"".equals(col.columnName()))
        colName = col.columnName();
    }

    boolean isIndexed = false;
    if(field.isAnnotationPresent(NoSqlIndexed.class))
      isIndexed = true;
   
    boolean isPartitioned = false;
    if(field.isAnnotationPresent(NoSqlPartitionByThisField.class))
      isPartitioned = true;
     
    Class<?> type = field.getType();
    Converter converter = null;
    if(col != null && !NoConversion.class.isAssignableFrom(col.customConverter()))
      converter = ReflectionUtil.create(col.customConverter());

    converter = lookupConverter(field, type, converter);
    if(converter == null)
      throw throwInvalidConverter(field);
    metaField.setup(t, field, colName, converter, isIndexed, isPartitioned);
View Full Code Here

TOP

Related Classes of com.alvazan.orm.api.base.anno.NoSqlColumn

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.