Package de.iritgo.aktera.persist

Examples of de.iritgo.aktera.persist.DatabaseType


   * @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) */
 
View Full Code Here

TOP

Related Classes of de.iritgo.aktera.persist.DatabaseType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.