Package org.eclipse.persistence.mappings

Examples of org.eclipse.persistence.mappings.DatabaseMapping


                        if (textNodeUnmarshalNodeValue.isMappingNodeValue()) {
                            textNodeUnmarshalNodeValue.endElement(xPathFragment, this);
                        }
                    } else {
                        if(textNodeUnmarshalNodeValue.isMappingNodeValue()) {
                            DatabaseMapping mapping = ((MappingNodeValue)textNodeUnmarshalNodeValue).getMapping();
                            if(mapping.isAbstractDirectMapping()) {
                                Object nullValue = ((AbstractDirectMapping)mapping).getNullValue();
                                if(!(XMLConstants.EMPTY_STRING.equals(nullValue))) {
                                    setAttributeValue(null, mapping);
                                    this.removeNullCapableValue((NullCapableValue)textNodeUnmarshalNodeValue);
                                }
View Full Code Here


  ClassDescriptor resolveDescriptor(Expression expression) {

    PathResolver resolver = pathResolver();

    DatabaseMapping oldMapping    = resolver.mapping;
    ClassDescriptor oldDescriptor = resolver.descriptor;

    try {
      resolver.mapping    = null;
      resolver.descriptor = null;
View Full Code Here

  DatabaseMapping resolveMapping(Expression expression) {

    PathResolver resolver = pathResolver();

    QueryKey oldQueryKey          = resolver.queryKey;
    DatabaseMapping oldMapping    = resolver.mapping;
    ClassDescriptor oldDescriptor = resolver.descriptor;

    try {
      resolver.mapping    = null;
      resolver.descriptor = null;
View Full Code Here

  Object resolveMappingObject(Expression expression) {

    PathResolver resolver = pathResolver();

    QueryKey oldQueryKey          = resolver.queryKey;
    DatabaseMapping oldMapping    = resolver.mapping;
    ClassDescriptor oldDescriptor = resolver.descriptor;

    try {
      resolver.mapping    = null;
      resolver.descriptor = null;
View Full Code Here

  private Class<?> resolveMappingType(AbstractPathExpression expression) {

    PathResolver resolver = pathResolver();

    QueryKey oldQueryKey          = resolver.queryKey;
    DatabaseMapping oldMapping    = resolver.mapping;
    ClassDescriptor oldDescriptor = resolver.descriptor;

    try {
      resolver.mapping    = null;
      resolver.descriptor = null;
View Full Code Here

  QueryKey resolveQueryKey(org.eclipse.persistence.jpa.jpql.parser.Expression expression) {

    PathResolver resolver = pathResolver();

    QueryKey oldQueryKey          = resolver.queryKey;
    DatabaseMapping oldMapping    = resolver.mapping;
    ClassDescriptor oldDescriptor = resolver.descriptor;

    try {
      resolver.mapping    = null;
      resolver.descriptor = null;
View Full Code Here

  @Override
  public void visit(IdentificationVariable expression) {

    PathResolver resolver = pathResolver();

    DatabaseMapping oldMapping    = resolver.mapping;
    ClassDescriptor oldDescriptor = resolver.descriptor;

    try {
      resolver.mapping    = null;
      resolver.descriptor = null;
View Full Code Here

   */
  @Override
  public void visit(KeyExpression expression) {
    IdentificationVariable identificationVariable = (IdentificationVariable) expression.getExpression();
    Declaration declaration = queryContext.findDeclaration(identificationVariable.getVariableName());
    DatabaseMapping mapping = declaration.getMapping();
    MappedKeyMapContainerPolicy mapContainerPolicy = (MappedKeyMapContainerPolicy) mapping.getContainerPolicy();
    type = (Class<?>) mapContainerPolicy.getKeyType();
  }
View Full Code Here

  @Override
  public void visit(ValueExpression expression) {

    IdentificationVariable identificationVariable = (IdentificationVariable) expression.getExpression();
    Declaration declaration = queryContext.findDeclaration(identificationVariable.getVariableName());
    DatabaseMapping mapping = declaration.getMapping();

    if (mapping.isDirectMapMapping()) {
      DirectMapMapping mapMapping = (DirectMapMapping) mapping;
      type = mapMapping.getValueClass();
    }
    else {
      type = calculateMappingType(declaration.getMapping());
View Full Code Here

    @Override
    public void visit(KeyExpression expression) {

      IdentificationVariable identificationVariable = (IdentificationVariable) expression.getExpression();
      Declaration declaration = queryContext.getDeclaration(identificationVariable.getVariableName());
      DatabaseMapping mapping = declaration.getMapping();

      ContainerPolicy containerPolicy = mapping.getContainerPolicy();
      MappedKeyMapContainerPolicy mapPolicy = (MappedKeyMapContainerPolicy) containerPolicy;
      descriptor = mapPolicy.getKeyMapping().getReferenceDescriptor();
    }
View Full Code Here

TOP

Related Classes of org.eclipse.persistence.mappings.DatabaseMapping

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.