use of org.datanucleus.store.rdbms.mapping.java.JavaTypeMapping in project datanucleus-rdbms by datanucleus.
the class AppIDObjectIdFieldManager method storeLongField.
/**
* Method to store a long in a field.
* @param fieldNumber Number of the field
* @param value The value to use
*/
public void storeLongField(int fieldNumber, long value) {
JavaTypeMapping mapping = javaTypeMappings[mappingNum++];
mapping.setLong(ec, statement, getParamsForField(mapping), value);
}
use of org.datanucleus.store.rdbms.mapping.java.JavaTypeMapping in project datanucleus-rdbms by datanucleus.
the class AppIDObjectIdFieldManager method storeStringField.
/**
* Method to store a String in a field.
* @param fieldNumber Number of the field
* @param value The value to use
*/
public void storeStringField(int fieldNumber, String value) {
JavaTypeMapping mapping = javaTypeMappings[mappingNum++];
mapping.setString(ec, statement, getParamsForField(mapping), value);
}
use of org.datanucleus.store.rdbms.mapping.java.JavaTypeMapping in project datanucleus-rdbms by datanucleus.
the class AppIDObjectIdFieldManager method storeBooleanField.
/**
* Method to store a boolean in a field.
* @param fieldNumber Number of the field
* @param value The value to use
*/
public void storeBooleanField(int fieldNumber, boolean value) {
JavaTypeMapping mapping = javaTypeMappings[mappingNum++];
mapping.setBoolean(ec, statement, getParamsForField(mapping), value);
}
use of org.datanucleus.store.rdbms.mapping.java.JavaTypeMapping in project datanucleus-rdbms by datanucleus.
the class AppIDObjectIdFieldManager method storeByteField.
/**
* Method to store a byte in a field.
* @param fieldNumber Number of the field
* @param value The value to use
*/
public void storeByteField(int fieldNumber, byte value) {
JavaTypeMapping mapping = javaTypeMappings[mappingNum++];
mapping.setByte(ec, statement, getParamsForField(mapping), value);
}
use of org.datanucleus.store.rdbms.mapping.java.JavaTypeMapping in project datanucleus-rdbms by datanucleus.
the class AppIDObjectIdFieldManager method storeObjectField.
/**
* Method to store an object in a field.
* @param fieldNumber Number of the field
* @param value The value to use
*/
public void storeObjectField(int fieldNumber, Object value) {
ApiAdapter api = ec.getApiAdapter();
if (api.isPersistable(value)) {
api.copyKeyFieldsFromIdToObject(value, new AppIdObjectIdFieldConsumer(api, this), api.getIdForObject(value));
} else {
JavaTypeMapping mapping = javaTypeMappings[mappingNum++];
mapping.setObject(ec, statement, getParamsForField(mapping), value);
}
}
Aggregations