// Path: src/main/java/org/yy/mongodb/exception/StatementException.java
// public class StatementException extends RuntimeException {
// 
//   private static final long serialVersionUID = 3988706952509457604L;
// 
//   private static final Logger logger = LoggerFactory.getLogger(StatementException.class);
// 
//   private String message;
// 
//   public StatementException(String message) {
//     super(message);
//     this.message = message;
//     logger.error("Mongodb orm statement error. Cause:  " + message);
//   }
// 
//   public StatementException(String message, Throwable e) {
//     super(message, e);
//     this.message = message;
//     logger.error("Mongodb orm statement error. Cause: " + message, e);
//   }
// 
//   @Override
//   public String getLocalizedMessage() {
//     return message;
//   }
// 
// }


import org.apache.commons.lang3.StringUtils;
import org.yy.mongodb.exception.StatementException;

package org.yy.mongodb.orm.engine.entry;


/**
 * Mongodb column type.
 * 
 * exp:
 * <p>
 *  String, Number, Long, Double, ObjectId ...
 * </p>
 * @author yy
 */
public enum ColumnType {
  
  string("string"), 
  _number("number"), 
  _boolean("boolean"),
  _double("double"), 
  objectid("objectid"), 
  date("date"),

// Path: src/main/java/org/yy/mongodb/exception/StatementException.java
// public class StatementException extends RuntimeException {
// 
//   private static final long serialVersionUID = 3988706952509457604L;
// 
//   private static final Logger logger = LoggerFactory.getLogger(StatementException.class);
// 
//   private String message;
// 
//   public StatementException(String message) {
//     super(message);
//     this.message = message;
//     logger.error("Mongodb orm statement error. Cause:  " + message);
//   }
// 
//   public StatementException(String message, Throwable e) {
//     super(message, e);
//     this.message = message;
//     logger.error("Mongodb orm statement error. Cause: " + message, e);
//   }
// 
//   @Override
//   public String getLocalizedMessage() {
//     return message;
//   }
// 
// }


// Path: src/main/java/org/yy/mongodb/orm/engine/entry/ColumnType.java
import org.apache.commons.lang3.StringUtils;
import org.yy.mongodb.exception.StatementException;

package org.yy.mongodb.orm.engine.entry;


/**
 * Mongodb column type.
 * 
 * exp:
 * <p>
 *  String, Number, Long, Double, ObjectId ...
 * </p>
 * @author yy
 */
public enum ColumnType {
  
  string("string"), 
  _number("number"), 
  _boolean("boolean"),
  _double("double"), 
  objectid("objectid"), 
  date("date"),

  regex("regex"),
