1 21 package oracle.toplink.essentials.internal.databaseaccess; 23 24 import java.io.*; 25 import java.util.Map ; 26 import oracle.toplink.essentials.exceptions.*; 27 import oracle.toplink.essentials.queryframework.*; 28 import oracle.toplink.essentials.internal.helper.*; 29 import oracle.toplink.essentials.sequencing.Sequence; 30 import oracle.toplink.essentials.internal.sessions.AbstractSession; 31 import oracle.toplink.essentials.sessions.DatabaseSession; 32 33 45 public interface Platform extends Serializable, Cloneable { 46 public Object clone(); 47 48 56 public Object convertObject(Object sourceObject, Class javaClass) throws ConversionException; 57 58 61 public void copyInto(Platform platform); 62 63 66 public ConversionManager getConversionManager(); 67 68 71 public void setConversionManager(ConversionManager conversionManager); 72 73 77 public String getTableQualifier(); 78 79 82 public java.sql.Timestamp getTimestampFromServer(AbstractSession session, String sessionName); 83 84 89 public ValueReadQuery getTimestampQuery(); 90 91 public boolean isAccess(); 92 93 public boolean isAttunity(); 94 95 public boolean isCloudscape(); 96 97 public boolean isDerby(); 98 99 public boolean isDB2(); 100 101 public boolean isDBase(); 102 103 public boolean isHSQL(); 104 105 public boolean isInformix(); 106 107 public boolean isMySQL(); 108 109 public boolean isODBC(); 110 111 public boolean isOracle(); 112 113 public boolean isPointBase(); 114 115 public boolean isSQLAnywhere(); 116 117 public boolean isSQLServer(); 118 119 public boolean isSybase(); 120 121 public boolean isTimesTen(); 122 123 public boolean isPostgreSQL(); 124 125 129 public void setTableQualifier(String qualifier); 130 131 135 public void setTimestampQuery(ValueReadQuery tsQuery); 136 137 141 public void appendParameter(Call call, Writer writer, Object parameter); 142 143 146 public Object getCustomModifyValueForCall(Call call, Object value, DatabaseField field, boolean shouldBind); 147 148 151 public boolean shouldUseCustomModifyForCall(DatabaseField field); 152 153 158 public Sequence getDefaultSequence(); 159 160 168 public void setDefaultSequence(Sequence sequence); 169 170 176 public void addSequence(Sequence sequence); 177 178 183 public Sequence getSequence(String seqName); 184 185 189 public Sequence removeSequence(String seqName); 190 191 194 public void removeAllSequences(); 195 196 200 public Map getSequences(); 201 202 206 public Map getSequencesToWrite(); 207 208 212 public Sequence getDefaultSequenceToWrite(); 213 214 218 public void setSequences(Map sequences); 219 220 224 public boolean usesPlatformDefaultSequence(); 225 226 231 public void platformSpecificSequencingInitialization(DatabaseSession session); 232 } 233 | Popular Tags |