1 2 22 23 package org.webdocwf.util.loader.generator; 24 25 26 33 public class RelationshipsAttributes { 34 35 private static String tableName; 36 private static String [] primaryKeys={"This table has no primary keys!"}; 37 private static String [] indexVariables={"This table has no indexes keys!"}; 38 private static String [] foreignVariables={"This table has no foreign keys!"}; 39 40 41 45 public static void setTableName(String table_Name){ 46 tableName=table_Name; 47 } 48 49 53 public static String getTableName(){ 54 return tableName; 55 } 56 57 61 public static void setPrimaryKeys(String [] primary_Keys){ 62 primaryKeys=primary_Keys; 63 } 64 65 69 public static String [] getPrimaryKeys(){ 70 return primaryKeys; 71 } 72 73 77 public static void setIndexVariables(String [] index_Variables){ 78 indexVariables=index_Variables; 79 } 80 81 85 public static String [] getIndexVariables(){ 86 return indexVariables; 87 } 88 89 93 public static void setForeignVariables(String [] foreign_Variables){ 94 95 foreignVariables=foreign_Variables; 96 } 97 98 102 public static String [] getForeignVariables(){ 103 return foreignVariables; 104 } 105 106 109 public static void resetAllVariables(){ 110 tableName=""; 111 primaryKeys=null; 112 indexVariables=null; 113 foreignVariables=null; 114 115 } 116 117 } | Popular Tags |