001// ______________________________________________________
002// Generated by sql2java - https://github.com/10km/sql2java 
003// JDBC driver used at code generation time: com.mysql.jdbc.Driver
004// template: constant.java.vm
005// ______________________________________________________
006
007package net.gdface.facedb.db;
008/**
009 * constant declare
010 * @author guyadong
011 */
012public interface Constant extends gu.sql2java.Constant {  
013    //////////////////////////////////////
014    // COLUMN COLUMN CONSTANT
015    //////////////////////////////////////    
016    
017    public static final int FD_FACE_COLUMN_COUNT = 21;
018    public static final int FD_FACE_PK_COUNT = 1;
019    public static final int FD_FEATURE_COLUMN_COUNT = 3;
020    public static final int FD_FEATURE_PK_COUNT = 1;
021    public static final int FD_IMAGE_COLUMN_COUNT = 8;
022    public static final int FD_IMAGE_PK_COUNT = 1;
023    public static final int FD_STORE_COLUMN_COUNT = 3;
024    public static final int FD_STORE_PK_COUNT = 1;
025    //////////////////////////////////////
026    // COLUMN ID DECLARE
027    //////////////////////////////////////    
028    /** Identify the fd_face.id field (ordinal:1). */
029    public static final int FD_FACE_ID_ID = 0;
030    public static final int FD_FACE_ID_ID_MASK = 1 << 0;
031    /** Identify the fd_face.image_md5 field (ordinal:2). */
032    public static final int FD_FACE_ID_IMAGE_MD5 = 1;
033    public static final int FD_FACE_ID_IMAGE_MD5_MASK = 1 << 1;
034    /** Identify the fd_face.feature_md5 field (ordinal:3). */
035    public static final int FD_FACE_ID_FEATURE_MD5 = 2;
036    public static final int FD_FACE_ID_FEATURE_MD5_MASK = 1 << 2;
037    /** Identify the fd_face.face_left field (ordinal:4). */
038    public static final int FD_FACE_ID_FACE_LEFT = 3;
039    public static final int FD_FACE_ID_FACE_LEFT_MASK = 1 << 3;
040    /** Identify the fd_face.face_top field (ordinal:5). */
041    public static final int FD_FACE_ID_FACE_TOP = 4;
042    public static final int FD_FACE_ID_FACE_TOP_MASK = 1 << 4;
043    /** Identify the fd_face.face_width field (ordinal:6). */
044    public static final int FD_FACE_ID_FACE_WIDTH = 5;
045    public static final int FD_FACE_ID_FACE_WIDTH_MASK = 1 << 5;
046    /** Identify the fd_face.face_height field (ordinal:7). */
047    public static final int FD_FACE_ID_FACE_HEIGHT = 6;
048    public static final int FD_FACE_ID_FACE_HEIGHT_MASK = 1 << 6;
049    /** Identify the fd_face.eye_leftx field (ordinal:8). */
050    public static final int FD_FACE_ID_EYE_LEFTX = 7;
051    public static final int FD_FACE_ID_EYE_LEFTX_MASK = 1 << 7;
052    /** Identify the fd_face.eye_lefty field (ordinal:9). */
053    public static final int FD_FACE_ID_EYE_LEFTY = 8;
054    public static final int FD_FACE_ID_EYE_LEFTY_MASK = 1 << 8;
055    /** Identify the fd_face.eye_rightx field (ordinal:10). */
056    public static final int FD_FACE_ID_EYE_RIGHTX = 9;
057    public static final int FD_FACE_ID_EYE_RIGHTX_MASK = 1 << 9;
058    /** Identify the fd_face.eye_righty field (ordinal:11). */
059    public static final int FD_FACE_ID_EYE_RIGHTY = 10;
060    public static final int FD_FACE_ID_EYE_RIGHTY_MASK = 1 << 10;
061    /** Identify the fd_face.mouth_x field (ordinal:12). */
062    public static final int FD_FACE_ID_MOUTH_X = 11;
063    public static final int FD_FACE_ID_MOUTH_X_MASK = 1 << 11;
064    /** Identify the fd_face.mouth_y field (ordinal:13). */
065    public static final int FD_FACE_ID_MOUTH_Y = 12;
066    public static final int FD_FACE_ID_MOUTH_Y_MASK = 1 << 12;
067    /** Identify the fd_face.nose_x field (ordinal:14). */
068    public static final int FD_FACE_ID_NOSE_X = 13;
069    public static final int FD_FACE_ID_NOSE_X_MASK = 1 << 13;
070    /** Identify the fd_face.nose_y field (ordinal:15). */
071    public static final int FD_FACE_ID_NOSE_Y = 14;
072    public static final int FD_FACE_ID_NOSE_Y_MASK = 1 << 14;
073    /** Identify the fd_face.angle_yaw field (ordinal:16). */
074    public static final int FD_FACE_ID_ANGLE_YAW = 15;
075    public static final int FD_FACE_ID_ANGLE_YAW_MASK = 1 << 15;
076    /** Identify the fd_face.angle_pitch field (ordinal:17). */
077    public static final int FD_FACE_ID_ANGLE_PITCH = 16;
078    public static final int FD_FACE_ID_ANGLE_PITCH_MASK = 1 << 16;
079    /** Identify the fd_face.angle_roll field (ordinal:18). */
080    public static final int FD_FACE_ID_ANGLE_ROLL = 17;
081    public static final int FD_FACE_ID_ANGLE_ROLL_MASK = 1 << 17;
082    /** Identify the fd_face.angle_confidence field (ordinal:19). */
083    public static final int FD_FACE_ID_ANGLE_CONFIDENCE = 18;
084    public static final int FD_FACE_ID_ANGLE_CONFIDENCE_MASK = 1 << 18;
085    /** Identify the fd_face.ext_info field (ordinal:20). */
086    public static final int FD_FACE_ID_EXT_INFO = 19;
087    public static final int FD_FACE_ID_EXT_INFO_MASK = 1 << 19;
088    /** Identify the fd_face.create_time field (ordinal:21). */
089    public static final int FD_FACE_ID_CREATE_TIME = 20;
090    public static final int FD_FACE_ID_CREATE_TIME_MASK = 1 << 20;
091    /** Identify the fd_feature.md5 field (ordinal:1). */
092    public static final int FD_FEATURE_ID_MD5 = 0;
093    public static final int FD_FEATURE_ID_MD5_MASK = 1 << 0;
094    /** Identify the fd_feature.feature field (ordinal:2). */
095    public static final int FD_FEATURE_ID_FEATURE = 1;
096    public static final int FD_FEATURE_ID_FEATURE_MASK = 1 << 1;
097    /** Identify the fd_feature.create_time field (ordinal:3). */
098    public static final int FD_FEATURE_ID_CREATE_TIME = 2;
099    public static final int FD_FEATURE_ID_CREATE_TIME_MASK = 1 << 2;
100    /** Identify the fd_image.md5 field (ordinal:1). */
101    public static final int FD_IMAGE_ID_MD5 = 0;
102    public static final int FD_IMAGE_ID_MD5_MASK = 1 << 0;
103    /** Identify the fd_image.format field (ordinal:2). */
104    public static final int FD_IMAGE_ID_FORMAT = 1;
105    public static final int FD_IMAGE_ID_FORMAT_MASK = 1 << 1;
106    /** Identify the fd_image.width field (ordinal:3). */
107    public static final int FD_IMAGE_ID_WIDTH = 2;
108    public static final int FD_IMAGE_ID_WIDTH_MASK = 1 << 2;
109    /** Identify the fd_image.height field (ordinal:4). */
110    public static final int FD_IMAGE_ID_HEIGHT = 3;
111    public static final int FD_IMAGE_ID_HEIGHT_MASK = 1 << 3;
112    /** Identify the fd_image.depth field (ordinal:5). */
113    public static final int FD_IMAGE_ID_DEPTH = 4;
114    public static final int FD_IMAGE_ID_DEPTH_MASK = 1 << 4;
115    /** Identify the fd_image.face_num field (ordinal:6). */
116    public static final int FD_IMAGE_ID_FACE_NUM = 5;
117    public static final int FD_IMAGE_ID_FACE_NUM_MASK = 1 << 5;
118    /** Identify the fd_image.update_time field (ordinal:7). */
119    public static final int FD_IMAGE_ID_UPDATE_TIME = 6;
120    public static final int FD_IMAGE_ID_UPDATE_TIME_MASK = 1 << 6;
121    /** Identify the fd_image.create_time field (ordinal:8). */
122    public static final int FD_IMAGE_ID_CREATE_TIME = 7;
123    public static final int FD_IMAGE_ID_CREATE_TIME_MASK = 1 << 7;
124    /** Identify the fd_store.md5 field (ordinal:1). */
125    public static final int FD_STORE_ID_MD5 = 0;
126    public static final int FD_STORE_ID_MD5_MASK = 1 << 0;
127    /** Identify the fd_store.encoding field (ordinal:2). */
128    public static final int FD_STORE_ID_ENCODING = 1;
129    public static final int FD_STORE_ID_ENCODING_MASK = 1 << 1;
130    /** Identify the fd_store.data field (ordinal:3). */
131    public static final int FD_STORE_ID_DATA = 2;
132    public static final int FD_STORE_ID_DATA_MASK = 1 << 2;
133    //////////////////////////////////////
134    // COLUMN NAME DECLARE
135    //////////////////////////////////////    
136    /////////////////// fd_face ////////////
137    /** Contains all the pk fields name of the fd_face table.*/
138    public static final String FD_FACE_PK_FIELDS ="id";
139    public static final java.util.List<String> FD_FACE_PK_FIELDS_LIST = java.util.Arrays.asList(FD_FACE_PK_FIELDS.split(","));
140    /** Contains all the full fields of the fd_face table.*/
141    public static final String FD_FACE_FULL_FIELDS ="fd_face.id"
142                            + ",fd_face.image_md5"
143                            + ",fd_face.feature_md5"
144                            + ",fd_face.face_left"
145                            + ",fd_face.face_top"
146                            + ",fd_face.face_width"
147                            + ",fd_face.face_height"
148                            + ",fd_face.eye_leftx"
149                            + ",fd_face.eye_lefty"
150                            + ",fd_face.eye_rightx"
151                            + ",fd_face.eye_righty"
152                            + ",fd_face.mouth_x"
153                            + ",fd_face.mouth_y"
154                            + ",fd_face.nose_x"
155                            + ",fd_face.nose_y"
156                            + ",fd_face.angle_yaw"
157                            + ",fd_face.angle_pitch"
158                            + ",fd_face.angle_roll"
159                            + ",fd_face.angle_confidence"
160                            + ",fd_face.ext_info"
161                            + ",fd_face.create_time";
162    /** Field that contains the comma separated fields of the fd_face table. */
163    public static final String FD_FACE_FIELDS = "id"
164                            + ",image_md5"
165                            + ",feature_md5"
166                            + ",face_left"
167                            + ",face_top"
168                            + ",face_width"
169                            + ",face_height"
170                            + ",eye_leftx"
171                            + ",eye_lefty"
172                            + ",eye_rightx"
173                            + ",eye_righty"
174                            + ",mouth_x"
175                            + ",mouth_y"
176                            + ",nose_x"
177                            + ",nose_y"
178                            + ",angle_yaw"
179                            + ",angle_pitch"
180                            + ",angle_roll"
181                            + ",angle_confidence"
182                            + ",ext_info"
183                            + ",create_time";
184    public static final java.util.List<String> FD_FACE_FIELDS_LIST = java.util.Arrays.asList(FD_FACE_FIELDS.split(","));
185    /** Field that contains the comma separated java fields of the fd_face table. */
186    public static final String FD_FACE_JAVA_FIELDS = "id"
187                            + ",imageMd5"
188                            + ",featureMd5"
189                            + ",faceLeft"
190                            + ",faceTop"
191                            + ",faceWidth"
192                            + ",faceHeight"
193                            + ",eyeLeftx"
194                            + ",eyeLefty"
195                            + ",eyeRightx"
196                            + ",eyeRighty"
197                            + ",mouthX"
198                            + ",mouthY"
199                            + ",noseX"
200                            + ",noseY"
201                            + ",angleYaw"
202                            + ",anglePitch"
203                            + ",angleRoll"
204                            + ",angleConfidence"
205                            + ",extInfo"
206                            + ",createTime";
207    public static final java.util.List<String> FD_FACE_JAVA_FIELDS_LIST = java.util.Arrays.asList(FD_FACE_JAVA_FIELDS.split(","));
208    
209    /** Field java types of the fd_face table. */
210    public static final Class<?>[] FD_FACE_FIELD_TYPES = new Class<?>[]{
211        Integer.class,
212        String.class,
213        String.class,
214        Integer.class,
215        Integer.class,
216        Integer.class,
217        Integer.class,
218        Integer.class,
219        Integer.class,
220        Integer.class,
221        Integer.class,
222        Integer.class,
223        Integer.class,
224        Integer.class,
225        Integer.class,
226        Integer.class,
227        Integer.class,
228        Integer.class,
229        Float.class,
230        java.nio.ByteBuffer.class,
231        java.util.Date.class};
232    /** Field SQL types of the fd_face table. */
233    public static final int[] FD_FACE_FIELD_SQL_TYPES = new int[]{
234        4/*Types.INTEGER*/,
235        1/*Types.CHAR*/,
236        1/*Types.CHAR*/,
237        4/*Types.INTEGER*/,
238        4/*Types.INTEGER*/,
239        4/*Types.INTEGER*/,
240        4/*Types.INTEGER*/,
241        4/*Types.INTEGER*/,
242        4/*Types.INTEGER*/,
243        4/*Types.INTEGER*/,
244        4/*Types.INTEGER*/,
245        4/*Types.INTEGER*/,
246        4/*Types.INTEGER*/,
247        4/*Types.INTEGER*/,
248        4/*Types.INTEGER*/,
249        4/*Types.INTEGER*/,
250        4/*Types.INTEGER*/,
251        4/*Types.INTEGER*/,
252        7/*Types.REAL*/,
253        -4/*Types.LONGVARBINARY*/,
254        93/*Types.TIMESTAMP*/};
255    /////////////////// fd_feature ////////////
256    /** Contains all the pk fields name of the fd_feature table.*/
257    public static final String FD_FEATURE_PK_FIELDS ="md5";
258    public static final java.util.List<String> FD_FEATURE_PK_FIELDS_LIST = java.util.Arrays.asList(FD_FEATURE_PK_FIELDS.split(","));
259    /** Contains all the full fields of the fd_feature table.*/
260    public static final String FD_FEATURE_FULL_FIELDS ="fd_feature.md5"
261                            + ",fd_feature.feature"
262                            + ",fd_feature.create_time";
263    /** Field that contains the comma separated fields of the fd_feature table. */
264    public static final String FD_FEATURE_FIELDS = "md5"
265                            + ",feature"
266                            + ",create_time";
267    public static final java.util.List<String> FD_FEATURE_FIELDS_LIST = java.util.Arrays.asList(FD_FEATURE_FIELDS.split(","));
268    /** Field that contains the comma separated java fields of the fd_feature table. */
269    public static final String FD_FEATURE_JAVA_FIELDS = "md5"
270                            + ",feature"
271                            + ",createTime";
272    public static final java.util.List<String> FD_FEATURE_JAVA_FIELDS_LIST = java.util.Arrays.asList(FD_FEATURE_JAVA_FIELDS.split(","));
273    
274    /** Field java types of the fd_feature table. */
275    public static final Class<?>[] FD_FEATURE_FIELD_TYPES = new Class<?>[]{
276        String.class,
277        java.nio.ByteBuffer.class,
278        java.util.Date.class};
279    /** Field SQL types of the fd_feature table. */
280    public static final int[] FD_FEATURE_FIELD_SQL_TYPES = new int[]{
281        1/*Types.CHAR*/,
282        -4/*Types.LONGVARBINARY*/,
283        93/*Types.TIMESTAMP*/};
284    /////////////////// fd_image ////////////
285    /** Contains all the pk fields name of the fd_image table.*/
286    public static final String FD_IMAGE_PK_FIELDS ="md5";
287    public static final java.util.List<String> FD_IMAGE_PK_FIELDS_LIST = java.util.Arrays.asList(FD_IMAGE_PK_FIELDS.split(","));
288    /** Contains all the full fields of the fd_image table.*/
289    public static final String FD_IMAGE_FULL_FIELDS ="fd_image.md5"
290                            + ",fd_image.format"
291                            + ",fd_image.width"
292                            + ",fd_image.height"
293                            + ",fd_image.depth"
294                            + ",fd_image.face_num"
295                            + ",fd_image.update_time"
296                            + ",fd_image.create_time";
297    /** Field that contains the comma separated fields of the fd_image table. */
298    public static final String FD_IMAGE_FIELDS = "md5"
299                            + ",format"
300                            + ",width"
301                            + ",height"
302                            + ",depth"
303                            + ",face_num"
304                            + ",update_time"
305                            + ",create_time";
306    public static final java.util.List<String> FD_IMAGE_FIELDS_LIST = java.util.Arrays.asList(FD_IMAGE_FIELDS.split(","));
307    /** Field that contains the comma separated java fields of the fd_image table. */
308    public static final String FD_IMAGE_JAVA_FIELDS = "md5"
309                            + ",format"
310                            + ",width"
311                            + ",height"
312                            + ",depth"
313                            + ",faceNum"
314                            + ",updateTime"
315                            + ",createTime";
316    public static final java.util.List<String> FD_IMAGE_JAVA_FIELDS_LIST = java.util.Arrays.asList(FD_IMAGE_JAVA_FIELDS.split(","));
317    
318    /** Field java types of the fd_image table. */
319    public static final Class<?>[] FD_IMAGE_FIELD_TYPES = new Class<?>[]{
320        String.class,
321        String.class,
322        Integer.class,
323        Integer.class,
324        Integer.class,
325        Integer.class,
326        java.util.Date.class,
327        java.util.Date.class};
328    /** Field SQL types of the fd_image table. */
329    public static final int[] FD_IMAGE_FIELD_SQL_TYPES = new int[]{
330        1/*Types.CHAR*/,
331        12/*Types.VARCHAR*/,
332        4/*Types.INTEGER*/,
333        4/*Types.INTEGER*/,
334        4/*Types.INTEGER*/,
335        4/*Types.INTEGER*/,
336        93/*Types.TIMESTAMP*/,
337        93/*Types.TIMESTAMP*/};
338    /////////////////// fd_store ////////////
339    /** Contains all the pk fields name of the fd_store table.*/
340    public static final String FD_STORE_PK_FIELDS ="md5";
341    public static final java.util.List<String> FD_STORE_PK_FIELDS_LIST = java.util.Arrays.asList(FD_STORE_PK_FIELDS.split(","));
342    /** Contains all the full fields of the fd_store table.*/
343    public static final String FD_STORE_FULL_FIELDS ="fd_store.md5"
344                            + ",fd_store.encoding"
345                            + ",fd_store.data";
346    /** Field that contains the comma separated fields of the fd_store table. */
347    public static final String FD_STORE_FIELDS = "md5"
348                            + ",encoding"
349                            + ",data";
350    public static final java.util.List<String> FD_STORE_FIELDS_LIST = java.util.Arrays.asList(FD_STORE_FIELDS.split(","));
351    /** Field that contains the comma separated java fields of the fd_store table. */
352    public static final String FD_STORE_JAVA_FIELDS = "md5"
353                            + ",encoding"
354                            + ",data";
355    public static final java.util.List<String> FD_STORE_JAVA_FIELDS_LIST = java.util.Arrays.asList(FD_STORE_JAVA_FIELDS.split(","));
356    
357    /** Field java types of the fd_store table. */
358    public static final Class<?>[] FD_STORE_FIELD_TYPES = new Class<?>[]{
359        String.class,
360        String.class,
361        java.nio.ByteBuffer.class};
362    /** Field SQL types of the fd_store table. */
363    public static final int[] FD_STORE_FIELD_SQL_TYPES = new int[]{
364        1/*Types.CHAR*/,
365        12/*Types.VARCHAR*/,
366        -4/*Types.LONGVARBINARY*/};
367}