This project has retired. For details please refer to its Attic page.
SqlBuilder

org.apache.maven.archiva.database.constraints
Class SqlBuilder

Package class diagram package SqlBuilder
java.lang.Object
  extended by org.apache.maven.archiva.database.constraints.SqlBuilder

public class SqlBuilder
extends java.lang.Object

SqlBuilder - common sql building mechanisms.


Constructor Summary
SqlBuilder()
           
 
Method Summary
static void appendWhereSelectedRepositories(java.lang.StringBuffer sql, java.lang.String fieldId, java.util.List<java.lang.String> selectedRepositoryIds)
          Append a sql specific where clause within "()" braces that selects the specific repository ids provided.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlBuilder

public SqlBuilder()
Method Detail

appendWhereSelectedRepositories

public static void appendWhereSelectedRepositories(java.lang.StringBuffer sql,
                                                   java.lang.String fieldId,
                                                   java.util.List<java.lang.String> selectedRepositoryIds)
Append a sql specific where clause within "()" braces that selects the specific repository ids provided. NOTE: This does not append the "WHERE" statement itself.

Parameters:
sql - the sql buffer to append to.
fieldId - the field id for the repository Id.
selectedRepositoryIds - the list of repository ids to provide.