Package org.apache.ws.jaxme.sqls.oracle

Source Code of org.apache.ws.jaxme.sqls.oracle.OraSelectStatementImpl

/*
* Copyright 2003, 2004  The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.

*/
package org.apache.ws.jaxme.sqls.oracle;

import org.apache.ws.jaxme.sqls.CombinedConstraint;
import org.apache.ws.jaxme.sqls.ObjectFactory;
import org.apache.ws.jaxme.sqls.SQLFactory;
import org.apache.ws.jaxme.sqls.impl.SelectStatementImpl;


/**
* @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
*/
public class OraSelectStatementImpl extends SelectStatementImpl
  implements OraSelectStatement {
    private CombinedConstraint startWith, connectByPrior;
   
    public OraSelectStatementImpl(SQLFactory pFactory) {
        super(pFactory);
    }

  public CombinedConstraint getStartWith() {
      if (startWith == null) {
          ObjectFactory f = getSQLFactory().getObjectFactory();
          startWith = f.newCombinedConstraint(this, CombinedConstraint.Type.AND);
      }
      return startWith;
  }

  public CombinedConstraint getConnectByPrior() {
      if (connectByPrior == null) {
          ObjectFactory f = getSQLFactory().getObjectFactory();
          connectByPrior = f.newCombinedConstraint(this, CombinedConstraint.Type.AND);
      }
      return connectByPrior;
  }
}
TOP

Related Classes of org.apache.ws.jaxme.sqls.oracle.OraSelectStatementImpl

TOP
Copyright © 2018 www.massapi.com. 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.