== Primary Key Management == Transfer has several ways of handling primary keys: === Database specific === ==== Microsoft SQL Server ==== Retrieve the last created Identity value for the table, e.g.

==== mySQL ==== Retrieve the last created auto increment value for the table, e.g.

==== PostGreSQL ==== Retrieve the last sequence value mapped to the table, e.g.


 ... 


==== Oracle ====

Retrieve the last sequence value mapped to the table, e.g.



 ...


=== Generic ===

Transfer also has the capabily to generate for you:

==== Numeric Primary Keys ====

Transfer can generate unique numeric keys per table, by setting generate='true' when the type is 'numeric' e.g.


==== UUID Primary Keys ==== Transfer can generate UUID keys, by setting generate='true' when the type is 'UUID' e.g.

==== GUID Primary Keys ==== Transfer can generate GUID keys, by setting generate='true' when the type is 'GUID' e.g.

=== Manual === Lastly, this can all be manually overwritten simply by setting the primary key value via the set() method prior to the TransferObject being created in the database, e.g.
user = getTransfer().new("User");
user.setUserID(1); getTransfer().save(user);
This will attempt to insert the User record into the database with a ID of '1'. [[Category:Configuration]]