1 21 22 package org.apache.derby.impl.store.access.conglomerate; 23 24 import org.apache.derby.iapi.reference.SQLState; 25 26 import org.apache.derby.iapi.services.sanity.SanityManager; 27 28 import org.apache.derby.iapi.error.StandardException; 29 30 import org.apache.derby.iapi.store.access.conglomerate.Conglomerate; 31 32 import org.apache.derby.iapi.types.DataValueDescriptor; 33 import org.apache.derby.iapi.types.Orderable; 34 35 import org.apache.derby.iapi.types.DataType; 36 37 import java.sql.ResultSet ; 38 import java.sql.SQLException ; 39 40 46 47 public abstract class GenericConglomerate 48 extends DataType implements Conglomerate 49 { 50 51 55 56 71 public int getLength() 72 throws StandardException 73 { 74 throw(StandardException.newException( 75 SQLState.HEAP_UNIMPLEMENTED_FEATURE)); 76 } 77 87 public String getString() throws StandardException 88 { 89 throw(StandardException.newException( 90 SQLState.HEAP_UNIMPLEMENTED_FEATURE)); 91 } 92 93 107 public Object getObject() throws StandardException 108 { 109 return(this); 110 } 111 112 126 public DataValueDescriptor getClone() 127 { 128 if (SanityManager.DEBUG) 129 SanityManager.THROWASSERT("Not implemented!."); 130 131 return(null); 132 } 133 134 139 public DataValueDescriptor getNewNull() 140 { 141 if (SanityManager.DEBUG) 142 SanityManager.THROWASSERT("Not implemented!."); 143 144 return(null); 145 } 146 147 161 public void setValueFromResultSet( 162 ResultSet resultSet, 163 int colNumber, 164 boolean isNullable) 165 throws StandardException, SQLException 166 { 167 throw(StandardException.newException( 168 SQLState.HEAP_UNIMPLEMENTED_FEATURE)); 169 } 170 171 172 179 protected void setFrom(DataValueDescriptor theValue) 180 throws StandardException 181 { 182 throw(StandardException.newException( 183 SQLState.HEAP_UNIMPLEMENTED_FEATURE)); 184 } 185 186 193 public String getTypeName() 194 { 195 if (SanityManager.DEBUG) 196 SanityManager.THROWASSERT("Not implemented!."); 197 198 return(null); 199 } 200 201 219 public int compare(DataValueDescriptor other) 220 throws StandardException 221 { 222 throw(StandardException.newException( 223 SQLState.HEAP_UNIMPLEMENTED_FEATURE)); 224 } 225 } 226 | Popular Tags |