1 17 package org.apache.ws.jaxme.sqls.oracle; 18 19 import org.apache.ws.jaxme.sqls.ColumnReference; 20 import org.apache.ws.jaxme.sqls.DeleteStatement; 21 import org.apache.ws.jaxme.sqls.InsertStatement; 22 import org.apache.ws.jaxme.sqls.SelectStatement; 23 import org.apache.ws.jaxme.sqls.UpdateStatement; 24 import org.apache.ws.jaxme.sqls.impl.StatementMetaData; 25 26 27 29 public class OraStatementMetaData extends StatementMetaData { 30 33 public OraStatementMetaData(SelectStatement pQuery) { 34 super(pQuery); 35 } 36 37 40 public OraStatementMetaData(DeleteStatement pQuery) { 41 super(pQuery); 42 } 43 44 47 public OraStatementMetaData(InsertStatement pQuery, ColumnReference[] pColumns) { 48 super(pQuery, pColumns); 49 } 50 51 54 public OraStatementMetaData(UpdateStatement pQuery, ColumnReference[] pColumns) { 55 super(pQuery, pColumns); 56 } 57 58 protected void addSelectStatement(SelectStatement pQuery) { 59 super.addSelectStatement(pQuery); 60 if (pQuery instanceof OraSelectStatement) { 61 OraSelectStatement oQuery = (OraSelectStatement) pQuery; 62 addCombinedConstraint(oQuery.getStartWith()); 63 addCombinedConstraint(oQuery.getConnectBy()); 64 } 65 } 66 } 67 | Popular Tags |