/** * INTERNAL: * Return if the expression is for a direct mapped attribute. */ public boolean isAttribute() { if (isAttributeExpression == null) { if (returnMapEntry){ return false; } InterfaceContainerPolicy containerPolicy = getInterfaceContainerPolicy(); return containerPolicy.isMapKeyAttribute(); } return isAttributeExpression.booleanValue(); }
public QueryKey getQueryKeyOrNull() { if (!hasQueryKey) { return null; } InterfaceContainerPolicy cp = getInterfaceContainerPolicy(); if (queryKey == null) { if (returnMapEntry){ return null; } else { queryKey = cp.createQueryKeyForMapKey(); } } return queryKey; }
/** * INTERNAL: * Return if the expression is for a direct mapped attribute. */ @Override public boolean isAttribute() { if (isAttributeExpression == null) { if (returnMapEntry){ return false; } InterfaceContainerPolicy containerPolicy = getInterfaceContainerPolicy(); return containerPolicy.isMapKeyAttribute(); } return isAttributeExpression.booleanValue(); }
@Override public QueryKey getQueryKeyOrNull() { if (!hasQueryKey) { return null; } InterfaceContainerPolicy cp = getInterfaceContainerPolicy(); if (queryKey == null) { if (returnMapEntry){ return null; } else { queryKey = cp.createQueryKeyForMapKey(); } } return queryKey; }
@Override public QueryKey getQueryKeyOrNull() { if (!hasQueryKey) { return null; } InterfaceContainerPolicy cp = getInterfaceContainerPolicy(); if (queryKey == null) { if (returnMapEntry){ return null; } else { queryKey = cp.createQueryKeyForMapKey(); } } return queryKey; }
/** * INTERNAL: * Return if the expression is for a direct mapped attribute. */ @Override public boolean isAttribute() { if (isAttributeExpression == null) { if (returnMapEntry){ return false; } InterfaceContainerPolicy containerPolicy = getInterfaceContainerPolicy(); return containerPolicy.isMapKeyAttribute(); } return isAttributeExpression.booleanValue(); }
/** * INTERNAL: */ @Override public DatabaseField getField() { if (!isAttribute()) { return null; } DatabaseField field = getInterfaceContainerPolicy().getDirectKeyField(getMapping()); return field; }
/** * INTERNAL: */ @Override public DatabaseField getField() { if (!isAttribute()) { return null; } DatabaseField field = getInterfaceContainerPolicy().getDirectKeyField(getMapping()); return field; }
/** * INTERNAL: */ public DatabaseField getField() { if (!isAttribute()) { return null; } DatabaseField field = getInterfaceContainerPolicy().getDirectKeyField(getMapping()); return field; }
/** * INTERNAL: */ @Override public List<DatabaseField> getSelectionFields(ReadQuery query) { ArrayList<DatabaseField> result = new ArrayList<DatabaseField>(); InterfaceContainerPolicy icp = getInterfaceContainerPolicy(); // if this is a map entry get all the fields for both the key and the value if (returnMapEntry || !icp.isMappedKeyMapPolicy()){ result.addAll(getBaseExpression().getSelectionFields(query)); } else if (isAttribute()) { DatabaseField field = getField(); if (field != null) { result.add(field); } } else { result.addAll(getInterfaceContainerPolicy().getAdditionalFieldsForJoin(getMapping())); } return result; }
/** * INTERNAL: * Return all the fields */ public Vector getFields() { Vector result = new Vector(); InterfaceContainerPolicy icp = getInterfaceContainerPolicy(); // if this is a map entry get all the fields for both the key and the value if (returnMapEntry || !icp.isMappedKeyMapPolicy()){ result.addAll(getBaseExpression().getFields()); } else if (isAttribute()) { DatabaseField field = getField(); if (field != null) { result.addElement(field); } } else { result.addAll(getInterfaceContainerPolicy().getAllFieldsForMapKey(getMapping())); } return result; }
/** * INTERNAL: */ @Override public List<DatabaseField> getSelectionFields(ReadQuery query) { ArrayList<DatabaseField> result = new ArrayList<DatabaseField>(); InterfaceContainerPolicy icp = getInterfaceContainerPolicy(); // if this is a map entry get all the fields for both the key and the value if (returnMapEntry || !icp.isMappedKeyMapPolicy()){ result.addAll(getBaseExpression().getSelectionFields(query)); } else if (isAttribute()) { DatabaseField field = getField(); if (field != null) { result.add(field); } } else { result.addAll(getInterfaceContainerPolicy().getAdditionalFieldsForJoin(getMapping())); } return result; }
/** * INTERNAL: * Return all the fields */ @Override public Vector getFields() { Vector result = new Vector(); InterfaceContainerPolicy icp = getInterfaceContainerPolicy(); // if this is a map entry get all the fields for both the key and the value if (returnMapEntry || !icp.isMappedKeyMapPolicy()){ result.addAll(getBaseExpression().getFields()); } else if (isAttribute()) { DatabaseField field = getField(); if (field != null) { result.add(field); } } else { result.addAll(getInterfaceContainerPolicy().getAdditionalFieldsForJoin(getMapping())); } return result; }
/** * INTERNAL: * Return all the fields */ @Override public Vector getFields() { Vector result = new Vector(); InterfaceContainerPolicy icp = getInterfaceContainerPolicy(); // if this is a map entry get all the fields for both the key and the value if (returnMapEntry || !icp.isMappedKeyMapPolicy()){ result.addAll(getBaseExpression().getFields()); } else if (isAttribute()) { DatabaseField field = getField(); if (field != null) { result.add(field); } } else { result.addAll(getInterfaceContainerPolicy().getAdditionalFieldsForJoin(getMapping())); } return result; }