/** * Convenience method to perform cast from * {@link ClassMetaData#getDeclaredField}. */ public FieldMapping getDeclaredFieldMapping(int index) { return (FieldMapping) getDeclaredField(index); }
/** * Convenience method to perform cast from * {@link ClassMetaData#getDeclaredField}. */ public FieldMapping getDeclaredFieldMapping(int index) { return (FieldMapping) getDeclaredField(index); }
/** * Convenience method to perform cast from * {@link ClassMetaData#getDeclaredField}. */ public FieldMapping getDeclaredFieldMapping(String name) { return (FieldMapping) getDeclaredField(name); }
/** * Convenience method to perform cast from * {@link ClassMetaData#getDeclaredField}. */ public FieldMapping getDeclaredFieldMapping(int index) { return (FieldMapping) getDeclaredField(index); }
/** * Convenience method to perform cast from * {@link ClassMetaData#getDeclaredField}. */ public FieldMapping getDeclaredFieldMapping(int index) { return (FieldMapping) getDeclaredField(index); }
/** * Convenience method to perform cast from * {@link ClassMetaData#getDeclaredField}. */ public FieldMapping getDeclaredFieldMapping(String name) { return (FieldMapping) getDeclaredField(name); }
/** * Convenience method to perform cast from * {@link ClassMetaData#getDeclaredField}. */ public FieldMapping getDeclaredFieldMapping(String name) { return (FieldMapping) getDeclaredField(name); }
/** * Convenience method to perform cast from * {@link ClassMetaData#getDeclaredField}. */ public FieldMapping getDeclaredFieldMapping(String name) { return (FieldMapping) getDeclaredField(name); }
/** * Convenience method to perform cast from * {@link ClassMetaData#getDeclaredField}. */ public FieldMapping getDeclaredFieldMapping(int index) { return (FieldMapping) getDeclaredField(index); }
/** * Convenience method to perform cast from * {@link ClassMetaData#getDeclaredField}. */ public FieldMapping getDeclaredFieldMapping(String name) { return (FieldMapping) getDeclaredField(name); }
/** * Modifies the given name as necessary to ensure that it isn't already * taken by a field in the given parent. */ private String getUniqueName(String name, ClassMapping dec) { // make sure the name isn't a keyword if (_javaKeywords.containsKey(name)) name = (String) _javaKeywords.get(name); // this is the same algorithm used in DBDictionary to get unique names String prefix = dec.getDescribedType().getName() + "."; for (int version = 2, chars = 1; dec.getDeclaredField(name) != null || (_abandonedFieldNames != null && _abandonedFieldNames.contains(prefix + name)); version++) { if (version > 2) name = name.substring(0, name.length() - chars); if (version >= Math.pow(10, chars)) chars++; name = name + version; } return name; }
/** * Modifies the given name as necessary to ensure that it isn't already * taken by a field in the given parent. */ private String getUniqueName(String name, ClassMapping dec) { // make sure the name isn't a keyword if (_javaKeywords.containsKey(name)) name = (String) _javaKeywords.get(name); // this is the same algorithm used in DBDictionary to get unique names String prefix = dec.getDescribedType().getName() + "."; for (int version = 2, chars = 1; dec.getDeclaredField(name) != null || (_abandonedFieldNames != null && _abandonedFieldNames.contains(prefix + name)); version++) { if (version > 2) name = name.substring(0, name.length() - chars); if (version >= Math.pow(10, chars)) chars++; name = name + version; } return name; }
/** * Modifies the given name as necessary to ensure that it isn't already * taken by a field in the given parent. */ private String getUniqueName(String name, ClassMapping dec) { // make sure the name isn't a keyword if (_javaKeywords.containsKey(name)) name = (String) _javaKeywords.get(name); // this is the same algorithm used in DBDictionary to get unique names String prefix = dec.getDescribedType().getName() + "."; for (int version = 2, chars = 1; dec.getDeclaredField(name) != null || (_abandonedFieldNames != null && _abandonedFieldNames.contains(prefix + name)); version++) { if (version > 2) name = name.substring(0, name.length() - chars); if (version >= Math.pow(10, chars)) chars++; name = name + version; } return name; }
/** * Modifies the given name as necessary to ensure that it isn't already * taken by a field in the given parent. */ private String getUniqueName(String name, ClassMapping dec) { // make sure the name isn't a keyword if (_javaKeywords.containsKey(name)) name = (String) _javaKeywords.get(name); // this is the same algorithm used in DBDictionary to get unique names String prefix = dec.getDescribedType().getName() + "."; for (int version = 2, chars = 1; dec.getDeclaredField(name) != null || (_abandonedFieldNames != null && _abandonedFieldNames.contains(prefix + name)); version++) { if (version > 2) name = name.substring(0, name.length() - chars); if (version >= Math.pow(10, chars)) chars++; name = name + version; } return name; }
/** * Modifies the given name as necessary to ensure that it isn't already * taken by a field in the given parent. */ private String getUniqueName(String name, ClassMapping dec) { // make sure the name isn't a keyword if (_javaKeywords.containsKey(name)) name = (String) _javaKeywords.get(name); // this is the same algorithm used in DBDictionary to get unique names String prefix = dec.getDescribedType().getName() + "."; for (int version = 2, chars = 1; dec.getDeclaredField(name) != null || (_abandonedFieldNames != null && _abandonedFieldNames.contains(prefix + name)); version++) { if (version > 2) name = name.substring(0, name.length() - chars); if (version >= Math.pow(10, chars)) chars++; name = name + version; } return name; }