public Object getObjectColumnByName(IMetaField columnName) { try { return _grset.getObject(columnName.getAlias()); } catch (SQLException e) { logger.error(e.getMessage(), e); throw new GhostRuntimeException(e); } }
public IGDate getDateColumnByName(IMetaField columnName) { try { return new GDate(_grset.getTimestamp(columnName.getAlias())); } catch (SQLException e) { logger.error(e.getMessage(), e); throw new GhostRuntimeException(e); } }
public BigDecimal getNumberColumnByName(IMetaField columnName) { try { return getGrset().getBigDecimal(columnName.getAlias()); } catch (SQLException e) { logger.error(e.getMessage(), e); throw new GhostRuntimeException(e); } }
public String getStringColumnByName(IMetaField columnName) { try { return getGrset().getString(columnName.getAlias()); } catch (SQLException e) { logger.error(e.getMessage(), e); throw new GhostRuntimeException(e); } }
private String constructFullyQuaifiedTableAliasColumnNameUsingFields() { StringBuilder result = new StringBuilder(); String seperatorString = GhostDBStaticVariables.EMPTY_STR; int substringLength = STRING_CONCAT_LENGTH; if (isPrefixAndSeperatorSet()) { result.append(getPrefix()); seperatorString = GhostDBStaticVariables.STRINGCONCAT + getSeperator(); substringLength = 0; } for (IMetaField imf : getFieldsThatConstructField()) { result.append(seperatorString); result.append(GhostDBStaticVariables.STRINGCONCAT); result.append(imf.getFullyQualifiedTableAliaisWithColumnName()); } return result.substring(substringLength); }