1 package org.apache.ojb.broker.accesslayer.sql; 2 3 17 18 import org.apache.ojb.broker.metadata.ClassDescriptor; 19 import org.apache.ojb.broker.platforms.Platform; 20 import org.apache.ojb.broker.query.Query; 21 22 29 public interface SqlGenerator 30 { 31 39 public String getInsertMNStatement(String table, String [] pkColumns1, String [] pkColumns2); 40 41 47 public String getSelectMNStatement(String table, String [] selectColumns, String [] columns); 48 49 57 public String getDeleteMNStatement(String table, String [] pkColumns1, String [] pkColumns2); 58 59 64 public SelectStatement getPreparedSelectStatement(Query query, ClassDescriptor cld); 65 66 71 public SelectStatement getSelectStatementDep(Query query, ClassDescriptor cld); 72 73 78 public SqlStatement getPreparedDeleteStatement(Query query, ClassDescriptor cld); 79 80 85 public SqlStatement getPreparedDeleteStatement(ClassDescriptor cld); 86 87 92 public SqlStatement getPreparedInsertStatement(ClassDescriptor cld); 93 94 99 public SelectStatement getPreparedSelectByPkStatement(ClassDescriptor cld); 100 101 106 public SqlStatement getPreparedUpdateStatement(ClassDescriptor cld); 107 108 109 113 public Platform getPlatform(); 114 115 } 116 | Popular Tags |