* @throws PersistenceException
*/
protected String selectFieldString(String fieldName) throws PersistenceException
{
String dbFieldName = myMetaData.getDBFieldName(fieldName);
DatabaseType myDBType = myMetaData.getDatabaseType();
String fieldType = myMetaData.getType(fieldName);
if (fieldType.equalsIgnoreCase("date"))
{
if (! SuperString.notNull(myDBType.getDateSelectFunction()).equals(""))
{
return (SuperString.replace(myDBType.getDateSelectFunction(), "%s", dbFieldName));
}
}
if (fieldType.equalsIgnoreCase("time"))
{
if (! SuperString.notNull(myDBType.getTimeSelectFunction()).equals(""))
{
return (SuperString.replace(myDBType.getTimeSelectFunction(), "%s", dbFieldName));
}
}
if (fieldType.equalsIgnoreCase("datetime"))
{
if (! SuperString.notNull(myDBType.getDateTimeSelectFunction()).equals(""))
{
return (SuperString.replace(myDBType.getDateTimeSelectFunction(), "%s", dbFieldName));
}
}
return dbFieldName;
} /* selectFieldString(String) */