Package com.d3x.core.db
Class DatabaseRecord.Mapping
- java.lang.Object
-
- com.d3x.core.db.DatabaseRecord.Mapping
-
- All Implemented Interfaces:
DatabaseMapping<DatabaseRecord>
- Enclosing class:
- DatabaseRecord
static class DatabaseRecord.Mapping extends java.lang.Object implements DatabaseMapping<DatabaseRecord>
A DatabaseMapping for the DatabaseRecord class
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.d3x.core.db.DatabaseMapping
DatabaseMapping.Binder<T>, DatabaseMapping.Mapper<T>
-
-
Constructor Summary
Constructors Constructor Description Mapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatabaseMapping.Binder<DatabaseRecord>insert()The binder to bind arguments to a PreparedStatement for affecting insertsDatabaseMapping.Mapper<DatabaseRecord>select()The mapper to map a row in a result set to some objectjava.lang.reflect.Typetype()Returns the data type for this mapping-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.d3x.core.db.DatabaseMapping
delete, toIterator, toList, toSet, update
-
-
-
-
Method Detail
-
type
public java.lang.reflect.Type type()
Description copied from interface:DatabaseMappingReturns the data type for this mapping- Specified by:
typein interfaceDatabaseMapping<DatabaseRecord>- Returns:
- the data type
-
select
public DatabaseMapping.Mapper<DatabaseRecord> select()
Description copied from interface:DatabaseMappingThe mapper to map a row in a result set to some object- Specified by:
selectin interfaceDatabaseMapping<DatabaseRecord>- Returns:
- the mapper to map a row in a result set to some object
-
insert
public DatabaseMapping.Binder<DatabaseRecord> insert()
Description copied from interface:DatabaseMappingThe binder to bind arguments to a PreparedStatement for affecting inserts- Specified by:
insertin interfaceDatabaseMapping<DatabaseRecord>- Returns:
- binder to bind arguments to a PreparedStatement for affecting inserts
-
-