* @deprecated since 3.0
*/
@Override
protected int pkFromDatabase(DataNode node, DbEntity ent) throws Exception {
DbKeyGenerator pkGenerator = ent.getPrimaryKeyGenerator();
String pkGeneratingSequenceName;
if (pkGenerator != null
&& DbKeyGenerator.ORACLE_TYPE.equals(pkGenerator.getGeneratorType())
&& pkGenerator.getGeneratorName() != null)
pkGeneratingSequenceName = pkGenerator.getGeneratorName();
else
pkGeneratingSequenceName = sequenceName(ent);
Connection con = node.getDataSource().getConnection();
try {