public class DBGeneratorDefaults extends RenamedPreferences
| Modifier and Type | Field and Description |
|---|---|
static String |
CREATE_FK_PROPERTY |
static String |
CREATE_PK_PROPERTY |
static String |
CREATE_TABLES_PROPERTY |
boolean |
createFK |
boolean |
createPK |
boolean |
createTables |
static String |
DROP_PK_PROPERTY |
static String |
DROP_TABLES_PROPERTY |
boolean |
dropPK |
boolean |
dropTables |
CAYENNE_PREFERENCES_PATH, EDITOR, LAST_PROJ_FILES| Constructor and Description |
|---|
DBGeneratorDefaults(Preferences pref) |
| Modifier and Type | Method and Description |
|---|---|
void |
configureGenerator(Collection<DbGenerator> generators)
Updates DbGenerator settings, consulting its own state.
|
boolean |
getCreateFK() |
boolean |
getCreatePK() |
boolean |
getCreateTables() |
boolean |
getDropPK() |
boolean |
getDropTables() |
void |
prePersist()
An initialization callback.
|
void |
setCreateFK(Boolean createFK) |
void |
setCreatePK(Boolean createPK) |
void |
setCreateTables(Boolean createTables) |
void |
setDropPK(Boolean dropPK) |
void |
setDropTables(Boolean dropTables) |
clearPreferences, copyPreferences, copyPreferences, copyPreferences, removeNewPreferences, removeOldPreferencesfilePathToPrefereceNodePath, getCayennePreference, getCurrentPreference, getNode, getRootPreference, saveObjectPreference, setCurrentNodeForPreference, setCurrentPreference, setObjectpublic static final String CREATE_FK_PROPERTY
public static final String CREATE_PK_PROPERTY
public static final String CREATE_TABLES_PROPERTY
public static final String DROP_PK_PROPERTY
public static final String DROP_TABLES_PROPERTY
public boolean createFK
public boolean createPK
public boolean createTables
public boolean dropPK
public boolean dropTables
public DBGeneratorDefaults(Preferences pref)
public void setCreateFK(Boolean createFK)
public boolean getCreateFK()
public void setCreatePK(Boolean createPK)
public boolean getCreatePK()
public void setCreateTables(Boolean createTables)
public boolean getCreateTables()
public void setDropPK(Boolean dropPK)
public boolean getDropPK()
public void setDropTables(Boolean dropTables)
public boolean getDropTables()
public void configureGenerator(Collection<DbGenerator> generators)
public void prePersist()
Copyright © 2001–2015 Apache Cayenne. All rights reserved.