com.mycomm.IProtocol.sql.Clz2Sql.AnnotationStructureStrategy Maven / Gradle / Ivy
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.mycomm.IProtocol.sql.Clz2Sql;
import java.lang.reflect.Field;
/**
*
* @author jw362j
*/
public class AnnotationStructureStrategy {
private String tableName;
private String IdColumName;
private Field idField;
private Field simpleFields[];
private String simpleFieldsNames[];
private Field[] fieldOneToOne;
private Field[] fieldOneToMany;
public AnnotationStructureStrategy() {
}
public String getTableName() {
return tableName;
}
public void setTableName(String tableName) {
this.tableName = tableName;
}
public String getIdColumName() {
return IdColumName;
}
public void setIdColumName(String IdColumName) {
this.IdColumName = IdColumName;
}
public Field[] getFieldOneToOne() {
return fieldOneToOne;
}
public void setFieldOneToOne(Field[] fieldOneToOne) {
this.fieldOneToOne = fieldOneToOne;
}
public Field[] getFieldOneToMany() {
return fieldOneToMany;
}
public void setFieldOneToMany(Field[] fieldOneToMany) {
this.fieldOneToMany = fieldOneToMany;
}
public String[] getSimpleFieldsNames() {
return simpleFieldsNames;
}
public void setSimpleFieldsNames(String[] simpleFieldsNames) {
this.simpleFieldsNames = simpleFieldsNames;
}
public Field[] getSimpleFields() {
return simpleFields;
}
public void setSimpleFields(Field[] simpleFields) {
this.simpleFields = simpleFields;
}
public Field getIdField() {
return idField;
}
public void setIdField(Field idField) {
this.idField = idField;
}
@Override
public String toString() {
return "AnnotationStructureStrategy{" + "tableName=" + tableName + ", IdColumName=" + IdColumName + ", simpleFieldsNames=" + simpleFieldsNames + ", fieldOneToOne=" + fieldOneToOne + ", fieldOneToMany=" + fieldOneToMany + '}';
}
}