Table table = getBasicTable();
OraSelectStatement selectStatement = (OraSelectStatement) table.getSelectStatement();
SelectTableReference ref = selectStatement.getSelectTableReference();
CombinedConstraint startWith = selectStatement.getStartWith();
BooleanConstraint bc = startWith.createEQ();
bc.addPart(ref.newColumnReference("MyIndex"));
bc.addPart(1);
CombinedConstraint connectByPrior = selectStatement.getConnectBy();
bc = connectByPrior.createEQ();
OraColumnReference oraRef = (OraColumnReference) ref.newColumnReference("MyIndex");
oraRef.setPrior(true);