Package org.apache.ws.jaxme.sqls

Examples of org.apache.ws.jaxme.sqls.ColumnSet


         }
      };
  }

   public ColumnSet getReferencedColumns() {
     return new ColumnSet(){
       public Table getTable() { return getReferencedTable(); }
       public Iterator getColumns() {
         return new Iterator() {
            private Iterator inner = getColumnLinks();
            public Object next() {
View Full Code Here


  }

  public DeleteStatement getDeleteStatement() {
    DeleteStatement result = getSchema().getSQLFactory().newDeleteStatement();
    result.setTable(this);
    ColumnSet primaryKey = getPrimaryKey();
    if (primaryKey == null) {
      throw new IllegalStateException("Cannot create a default delete statement without a primary key.");
    }
    result.getWhere().addColumnSetQuery(primaryKey, result.getTableReference());
    return result;
View Full Code Here

  }

  public DeleteStatement getDeleteStatement() {
    DeleteStatement result = getSchema().getSQLFactory().newDeleteStatement();
    result.setTable(this);
    ColumnSet primaryKey = getPrimaryKey();
    if (primaryKey == null) {
      throw new IllegalStateException("Cannot create a default delete statement without a primary key.");
    }
    result.getWhere().addColumnSetQuery(primaryKey, result.getTableReference());
    return result;
View Full Code Here

         }
      };
  }

   public ColumnSet getReferencedColumns() {
     return new ColumnSet(){
       public Table getTable() { return getReferencedTable(); }
       public Iterator getColumns() {
         return new Iterator() {
            private Iterator inner = getColumnLinks();
            public Object next() {
View Full Code Here

  }

  public DeleteStatement getDeleteStatement() {
    DeleteStatement result = getSchema().getSQLFactory().newDeleteStatement();
    result.setTable(this);
    ColumnSet primaryKey = getPrimaryKey();
    if (primaryKey == null) {
      throw new IllegalStateException("Cannot create a default delete statement without a primary key.");
    }
    result.getWhere().addColumnSetQuery(primaryKey, result.getTableReference());
    return result;
View Full Code Here

TOP

Related Classes of org.apache.ws.jaxme.sqls.ColumnSet

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.