1 package org.objectstyle.cayenne.modeler.pref; 2 3 8 public class _DBGeneratorDefaults extends org.objectstyle.cayenne.pref.PreferenceDetail { 9 10 public static final String CREATE_FK_PROPERTY = "createFK"; 11 public static final String CREATE_PK_PROPERTY = "createPK"; 12 public static final String CREATE_TABLES_PROPERTY = "createTables"; 13 public static final String DROP_PK_PROPERTY = "dropPK"; 14 public static final String DROP_TABLES_PROPERTY = "dropTables"; 15 16 public static final String ID_PK_COLUMN = "id"; 17 18 public void setCreateFK(Boolean createFK) { 19 writeProperty("createFK", createFK); 20 } 21 public Boolean getCreateFK() { 22 return (Boolean )readProperty("createFK"); 23 } 24 25 26 public void setCreatePK(Boolean createPK) { 27 writeProperty("createPK", createPK); 28 } 29 public Boolean getCreatePK() { 30 return (Boolean )readProperty("createPK"); 31 } 32 33 34 public void setCreateTables(Boolean createTables) { 35 writeProperty("createTables", createTables); 36 } 37 public Boolean getCreateTables() { 38 return (Boolean )readProperty("createTables"); 39 } 40 41 42 public void setDropPK(Boolean dropPK) { 43 writeProperty("dropPK", dropPK); 44 } 45 public Boolean getDropPK() { 46 return (Boolean )readProperty("dropPK"); 47 } 48 49 50 public void setDropTables(Boolean dropTables) { 51 writeProperty("dropTables", dropTables); 52 } 53 public Boolean getDropTables() { 54 return (Boolean )readProperty("dropTables"); 55 } 56 57 58 } 59 | Popular Tags |