001// ______________________________________________________ 002// Generated by sql2java - https://github.com/10km/sql2java 003// JDBC driver used at code generation time: com.mysql.jdbc.Driver 004// template: metadata.java.vm 005// ______________________________________________________ 006package net.gdface.facedb.db; 007 008import java.util.List; 009import java.util.Arrays; 010import gu.sql2java.RowMetaData; 011import com.google.common.collect.ImmutableMap; 012import com.google.common.collect.ImmutableList; 013 014/** 015 * Class to supply table meta data for the fd_face table.<br> 016 * @author guyadong 017 */ 018public class FaceMetaData extends RowMetaData implements Constant 019{ 020 private static final ImmutableMap<String, String> JUNCTION_TABLE_PK_MAP = ImmutableMap.of(); 021 private static final ImmutableList<String> FOREIGN_KEYS = 022 ImmutableList.<String>builder() 023 .add("fd_face_ibfk_2 (feature_md5) REFERENCES fd_feature(md5) RESTRICT SET_NULL") 024 .add("fd_face_ibfk_1 (image_md5) REFERENCES fd_image(md5) RESTRICT CASCADE") 025 .build(); 026 private static final ImmutableList<String> INDEXS = 027 ImmutableList.<String>builder() 028 .add("feature_md5 (feature_md5) ") 029 .add("image_md5 (image_md5) ") 030 .build(); 031 032 private static final List<String> GETTERS = Arrays.asList("getId","getImageMd5","getFeatureMd5","getFaceLeft","getFaceTop","getFaceWidth","getFaceHeight","getEyeLeftx","getEyeLefty","getEyeRightx","getEyeRighty","getMouthX","getMouthY","getNoseX","getNoseY","getAngleYaw","getAnglePitch","getAngleRoll","getAngleConfidence","getExtInfo","getCreateTime"); 033 034 private static final List<String> SETTERS = Arrays.asList("setId","setImageMd5","setFeatureMd5","setFaceLeft","setFaceTop","setFaceWidth","setFaceHeight","setEyeLeftx","setEyeLefty","setEyeRightx","setEyeRighty","setMouthX","setMouthY","setNoseX","setNoseY","setAngleYaw","setAnglePitch","setAngleRoll","setAngleConfidence","setExtInfo","setCreateTime"); 035 036 private static final String AUTO_INCREMENT_COLUMN = "id"; 037 038 private static final Class<?> LOCK_COLUMN_TYPE = null; 039 private static final String LOCK_COLUMN_NAME = null; 040 public FaceMetaData(){ 041 super( 042 "fd_face", 043 "TABLE", 044 FaceBean.class, 045 "Face", 046 IFaceManager.class, 047 FD_FACE_FIELDS_LIST, 048 FD_FACE_JAVA_FIELDS_LIST, 049 GETTERS, 050 SETTERS, 051 FD_FACE_FIELD_TYPES, 052 FD_FACE_FIELD_SQL_TYPES, 053 FD_FACE_PK_FIELDS_LIST, 054 JUNCTION_TABLE_PK_MAP, 055 LOCK_COLUMN_TYPE, 056 LOCK_COLUMN_NAME, 057 FOREIGN_KEYS, 058 INDEXS, 059 AUTO_INCREMENT_COLUMN 060 ); 061 } 062}