Package com.basiscomponents.bc.config
Class DatabaseConfiguration
- java.lang.Object
-
- com.basiscomponents.bc.config.DatabaseConfiguration
-
public class DatabaseConfiguration extends Object
-
-
Constructor Summary
Constructors Constructor Description DatabaseConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addAutoIncrementKey(String key)
void
addMapping(String fieldname, String mapping)
boolean
addPrimaryKey(String key)
boolean
containsPrimaryKey(String key)
String
getAutoIncrementKey(int i)
List<String>
getAutoIncrementKeys()
String
getDbQuoteString()
String
getDbType()
String
getMapping(String fieldname)
HashMap<String,String>
getMappings()
List<String>
getPrimaryKeys()
String
getSqlStatement()
boolean
isPkPresent(boolean pkPresent, DataRow ret)
boolean
isPrimaryKeyPresent(DataRow r)
boolean
isPrimaryKeysEmpty()
void
setAutoIncrementKeys(List<String> autoIncrementKeys)
void
setDbQuoteString(String dbQuoteString)
void
setDbType(String dbType)
void
setSqlStatement(String sqlStatement)
-
-
-
Method Detail
-
addPrimaryKey
public boolean addPrimaryKey(String key)
-
containsPrimaryKey
public boolean containsPrimaryKey(String key)
-
isPrimaryKeysEmpty
public boolean isPrimaryKeysEmpty()
-
isPrimaryKeyPresent
public boolean isPrimaryKeyPresent(DataRow r)
-
isPkPresent
public boolean isPkPresent(boolean pkPresent, DataRow ret)
-
getDbQuoteString
public String getDbQuoteString()
-
setDbQuoteString
public void setDbQuoteString(String dbQuoteString)
-
getDbType
public String getDbType()
-
setDbType
public void setDbType(String dbType)
-
getAutoIncrementKey
public String getAutoIncrementKey(int i)
-
addAutoIncrementKey
public boolean addAutoIncrementKey(String key)
-
getSqlStatement
public String getSqlStatement()
-
setSqlStatement
public void setSqlStatement(String sqlStatement)
-
-