public String getTable() { return getInternal().getTable(); }
/** * Method to return the kind name for a class. * @param idFactory IdentifierFactory * @param cmd Metadata for the class * @return The kind name to use in the datastore. */ public static String getKindName(IdentifierFactory idFactory, AbstractClassMetaData cmd) { String kindName = null; if (cmd.getTable() != null) { // User specified a table name as part of the mapping so use that as the kind. kindName = cmd.getTable(); } else { kindName = idFactory.newDatastoreContainerIdentifier(cmd).getIdentifierName(); } return kindName; }
String specifiedName = cmd.getTable(); String[] parts = getIdentifierNamePartsFromName(specifiedName); if (parts != null)
String specifiedName = cmd.getTable(); String[] parts = getIdentifierNamePartsFromName(specifiedName); if (parts != null)
UniqueMetaData unimd = new UniqueMetaData(null, cmd.getTable(), null); // Columns are in subelement cmd.addUniqueConstraint(unimd); pushStack(unimd);
unimd.setTable(cmd.getTable()); // Columns are in subelement cmd.addUniqueConstraint(unimd); pushStack(unimd);
if (cmd.getTable() != null) { throw new NucleusUserException("@Table is only supported for base entity classes. " + "Offending entity: " + cmd.getFullClassName() + " Super class: " + superClass.getFullClassName()); if (cmd.isEmbeddedOnly() && cmd.getTable() != null) { throw new NucleusUserException("Embedded objects cannot have table specification." + " Offending entity: " + cmd.getFullClassName());
if (cmd.getTable() != null) { throw new NucleusUserException("@Table is only supported for base entity classes. " + "Offending entity: " + cmd.getFullClassName() + " Super class: " + superClass.getFullClassName()); if (cmd.isEmbeddedOnly() && cmd.getTable() != null) { throw new NucleusUserException("Embedded objects cannot have table specification." + " Offending entity: " + cmd.getFullClassName());