aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/iciql/SQLDialect.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/iciql/SQLDialect.java')
-rw-r--r--src/main/java/com/iciql/SQLDialect.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/com/iciql/SQLDialect.java b/src/main/java/com/iciql/SQLDialect.java
index 8937baf..7c45cc2 100644
--- a/src/main/java/com/iciql/SQLDialect.java
+++ b/src/main/java/com/iciql/SQLDialect.java
@@ -32,12 +32,19 @@ import com.iciql.TableDefinition.IndexDefinition;
public interface SQLDialect {
/**
+ * Registers the type adapter instance.
+ *
+ * @param typeAdapter
+ */
+ void registerAdapter(DataTypeAdapter<?> typeAdapter);
+
+ /**
* Returns the registered instance of the type adapter.
*
* @param typeAdapter
* @return the type adapter instance
*/
- DataTypeAdapter<?> getTypeAdapter(Class<? extends DataTypeAdapter<?>> typeAdapter);
+ DataTypeAdapter<?> getAdapter(Class<? extends DataTypeAdapter<?>> typeAdapter);
/**
* Serialize the Java object into a type or format that the database will accept.