/** * Synchronize internal order column information with the given field. */ public void syncOrderColumn(FieldMapping field) { if (field.getOrderColumn() != null) _orderCol = syncColumn(field, field.getOrderColumn(), 1, false, field.getTable(), null, null, false); else _orderCol = null; }
public void initialize() { Column order = field.getOrderColumn(); _orderInsert = field.getOrderColumnIO().isInsertable(order, false); _orderUpdate = field.getOrderColumnIO().isUpdatable(order, false); ValueMapping elem = field.getElementMapping(); Log log = field.getRepository().getLog(); if (field.getMappedBy() == null && elem.getUseClassCriteria() && log.isWarnEnabled()) { ForeignKey fk = elem.getForeignKey(); if (elem.getColumnIO().isAnyUpdatable(fk, false)) log.warn(_loc.get("class-crit-owner", field)); } }
/** * Synchronize internal order column information with the given field. */ public void syncOrderColumn(FieldMapping field) { if (field.getOrderColumn() != null) _orderCol = syncColumn(field, field.getOrderColumn(), 1, false, field.getTable(), null, null, false); else _orderCol = null; }
public void initialize() { Column order = field.getOrderColumn(); _orderInsert = field.getOrderColumnIO().isInsertable(order, false); _orderUpdate = field.getOrderColumnIO().isUpdatable(order, false); ValueMapping elem = field.getElementMapping(); Log log = field.getRepository().getLog(); if (field.getMappedBy() == null && elem.getUseClassCriteria() && log.isWarnEnabled()) { ForeignKey fk = elem.getForeignKey(); if (elem.getColumnIO().isAnyUpdatable(fk, false)) log.warn(_loc.get("class-crit-owner", field)); } }
/** * Synchronize internal order column information with the given field. */ public void syncOrderColumn(FieldMapping field) { if (field.getOrderColumn() != null) _orderCol = syncColumn(field, field.getOrderColumn(), 1, false, field.getTable(), null, null, false); else _orderCol = null; }
public void initialize() { Column order = field.getOrderColumn(); _orderInsert = field.getOrderColumnIO().isInsertable(order, false); _orderUpdate = field.getOrderColumnIO().isUpdatable(order, false); ValueMapping elem = field.getElementMapping(); Log log = field.getRepository().getLog(); if (field.getMappedBy() == null && elem.getUseClassCriteria() && log.isWarnEnabled()) { ForeignKey fk = elem.getForeignKey(); if (elem.getColumnIO().isAnyUpdatable(fk, false)) log.warn(_loc.get("class-crit-owner", field)); } }
/** * Synchronize internal order column information with the given field. */ public void syncOrderColumn(FieldMapping field) { if (field.getOrderColumn() != null) _orderCol = syncColumn(field, field.getOrderColumn(), 1, false, field.getTable(), null, null, false); else _orderCol = null; }
@Override public boolean isDelayCapable() { return (getOrderColumn() == null && !isInDefaultFetchGroup() && super.isDelayCapable()); } }
@Override public boolean isDelayCapable() { return (getOrderColumn() == null && !isInDefaultFetchGroup() && super.isDelayCapable()); } }
@Override public boolean isDelayCapable() { return (getOrderColumn() == null && !isInDefaultFetchGroup() && super.isDelayCapable()); } }
@Override public boolean isDelayCapable() { return (getOrderColumn() == null && !isInDefaultFetchGroup() && super.isDelayCapable()); } }
public void appendIndex(SQLBuffer sql, Select sel, Joins joins) { sql.append(sel.getColumnAlias(field.getOrderColumn(), field.getName())); }
public void appendIndex(SQLBuffer sql, Select sel, Joins joins) { sql.append(sel.getColumnAlias(field.getOrderColumn(), field.getName())); }
public LRSProxyCollection(LRSCollectionFieldStrategy strat) { super(strat.getFieldMapping().getElement().getDeclaredType(), strat.getFieldMapping().getOrderColumn() != null); _strat = strat; }
public LRSProxyCollection(LRSCollectionFieldStrategy strat) { super(strat.getFieldMapping().getElement().getDeclaredType(), strat.getFieldMapping().getOrderColumn() != null); _strat = strat; }
public void verifyIndexedField() { Action lastAction = (Action) lastFieldAction(); FieldMapping fm = (FieldMapping) lastAction.data; if (fm.getOrderColumn() == null) throw new UserException(_loc.get("no-order-column", fm.getName())); }
public void verifyIndexedField() { Action lastAction = (Action) lastFieldAction(); FieldMapping fm = (FieldMapping) lastAction.data; if (fm.getOrderColumn() == null) throw new UserException(_loc.get("no-order-column", fm.getName())); }
public void verifyIndexedField() { Action lastAction = (Action) lastFieldAction(); FieldMapping fm = (FieldMapping) lastAction.data; if (fm.getOrderColumn() == null) throw new UserException(_loc.get("no-order-column", fm.getName())); }
public LRSProxyCollection(LRSCollectionFieldStrategy strat) { super(strat.getFieldMapping().getElement().getDeclaredType(), strat.getFieldMapping().getOrderColumn() != null); _strat = strat; }
public LRSProxyCollection(LRSCollectionFieldStrategy strat) { super(strat.getFieldMapping().getElement().getDeclaredType(), strat.getFieldMapping().getOrderColumn() != null); _strat = strat; }